CVE-2024-26718
dm-crypt, dm-verity: disable tasklets
Reported by linux · Published April 3, 2024
In the Linux kernel, the following vulnerability has been resolved: dm-crypt, dm-verity: disable tasklets Tasklets have an inherent problem with memory corruption. The function tasklet_action_common calls tasklet_trylock, then it calls the tasklet callback and then it calls tasklet_unlock. If the tasklet callback frees the structure that contains the tasklet or if it calls some code that may free it, tasklet_unlock will write into free memory. The commits 8e14f610159d and d9a02e016aaf try to fix it for dm-crypt, but it is not a sufficient fix and the data corruption can still happen [1]. There is no fix for dm-verity and dm-verity will write into free memory with every tasklet-processed bio. There will be atomic workqueues implemented in the kernel 6.9 [2]. They will have better interface and they will not suffer from the memory corruption problem. But we need something that stops the memory corruption now and that can be backported to the stable kernels. So, I'm proposing this commit that disables tasklets in both dm-crypt and dm-verity. This commit doesn't remove the tasklet support, because the tasklet code will be reused when atomic workqueues will be implemented. [1] https://lore.kernel.org/all/d390d7ee-f142-44d3-822a-87949e14608b@suse.de/T/ [2] https://lore.kernel.org/lkml/20240130091300.2968534-1-tj@kernel.org/
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-modules-extra | Amazon Linux | 6.1.79-99.164.amzn2023 |
| bpftool | Amazon Linux | 6.1.79-99.164.amzn2023 |
| perf | Amazon Linux | 6.1.79-99.164.amzn2023 |
| kernel-devel | Amazon Linux | 6.1.79-99.164.amzn2023 |
| kernel-libbpf-static | Amazon Linux | 6.1.79-99.164.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.1.79-99.164.amzn2023 |
| linux_kernel | linux | 6.7.6, 6.6.18, 6.1.79 |
| Linux | Linux | b825e0f9d68c178072bffd32dd34c39e3d2d597a, 5735a2671ffb70ea29ca83969fe01316ee2ed6fc, 5.9, 30884a44e0cedc3dfda8c22432f3ba4078ec2d94, 0c45a20cbe68bc4d681734f5c03891124a274257, 0a9bab391e336489169b95cb0d4553d921302189 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877, 39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877, 39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877 |
| Linux | Linux | 5.9, 0, 5.15.169 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-devel | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| Linux | Linux | 39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877, 6.6.18, 6.1.79 |
| amazon:2023 | python3-perf | 0 |
| linux | linux_kernel | 5.9, 5.9, 5.9 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-livepatch-6.1.79-99.164 | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-libbpf | 0 |
Timeline
- Mar 5, 2024 CVE Published
- Apr 4, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (9 in total, the first dated here)
- Feb 13, 2025 PoC Published (3 in total, the first dated here)
- Jan 15, 2026 Security Advisory (313 in total, the first dated here)
- Mar 31, 2026 Distribution Patch (276 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-26718
vulnetix vdb fixes CVE-2024-26718
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-26718/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart