VDB

CVE-2024-26718

CVE-2024-26718 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
kernel-modules-extraAmazon Linux6.1.79-99.164.amzn2023
bpftoolAmazon Linux6.1.79-99.164.amzn2023
perfAmazon Linux6.1.79-99.164.amzn2023
kernel-develAmazon Linux6.1.79-99.164.amzn2023
kernel-libbpf-staticAmazon Linux6.1.79-99.164.amzn2023
kernel-modules-extra-commonAmazon Linux6.1.79-99.164.amzn2023
linux_kernellinux6.7.6, 6.6.18, 6.1.79
LinuxLinuxb825e0f9d68c178072bffd32dd34c39e3d2d597a, 5735a2671ffb70ea29ca83969fe01316ee2ed6fc, 5.9, 30884a44e0cedc3dfda8c22432f3ba4078ec2d94, 0c45a20cbe68bc4d681734f5c03891124a274257, 0a9bab391e336489169b95cb0d4553d921302189

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877, 39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877, 39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877
LinuxLinux5.9, 0, 5.15.169
amazon:2023kernel-modules-extra0
amazon:2023bpftool0
amazon:2023perf0
amazon:2023kernel-devel0
amazon:2023kernel-libbpf-static0
amazon:2023kernel-modules-extra-common0
LinuxLinux39d42fa96ba1b7d2544db3f8ed5da8fb0d5cb877, 6.6.18, 6.1.79
amazon:2023python3-perf0
linuxlinux_kernel5.9, 5.9, 5.9
amazon:2023kernel-headers0
amazon:2023kernel0
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-livepatch-6.1.79-99.1640
amazon:2023kernel-tools-devel0
amazon:2023kernel-tools0
amazon:2023kernel-libbpf0

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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›