CVE-2024-40945
iommu: Return right value in iommu_sva_bind_device()
Check your servers for CVE-2024-40945
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-40945 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
iommu: Return right value in iommu_sva_bind_device()
iommu_sva_bind_device() should return either a sva bond handle or an ERR_PTR value in error cases. Existing drivers (idxd and uacce) only check the return value with IS_ERR(). This could potentially lead to a kernel NULL pointer dereference issue if the function returns NULL instead of an error pointer.
In reality, this doesn't cause any problems because iommu_sva_bind_device() only returns NULL when the kernel is not configured with CONFIG_IOMMU_SVA. In this case, iommu_dev_enable_feature(dev, IOMMU_DEV_FEAT_SVA) will return an error, and the device drivers won't call iommu_sva_bind_device() at all.
Exploitation
EPSS 0.26%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 18.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 26b25a2b98e45aeb40eedcedc586ad5034cbd984, before 700f564758882db7c039dfba9443fe762561a3f8 affected from 26b25a2b98e45aeb40eedcedc586ad5034cbd984, before cf34f8f66982a36e5cba0d05781b21ec9606b91e affected from 26b25a2b98e45aeb40eedcedc586ad5034cbd984, before 2973b8e7d127754de9013177c41c0b5547406998 affected from 26b25a2b98e45aeb40eedcedc586ad5034cbd984, before 6325eab6c108fed27f60ff51852e3eac0ba23f3f affected from 26b25a2b98e45aeb40eedcedc586ad5034cbd984, before 7388ae6f26c0ba95f70cc96bf9c5d5cb06c908b6 affected from 26b25a2b98e45aeb40eedcedc586ad5034cbd984, before 61a96da9649a6b6a1a5d5bde9374b045fdb5c12e affected from 26b25a2b98e45aeb40eedcedc586ad5034cbd984, before 89e8a2366e3bce584b6c01549d5019c5cda1205e
Other versions: unaffected
|
| Linux |
affected 5.2 unaffected before 5.2 unaffected from 5.4.279 up to and including 5.4.* unaffected from 5.10.221 up to and including 5.10.* unaffected from 5.15.162 up to and including 5.15.* unaffected from 6.1.129 up to and including 6.1.* unaffected from 6.6.35 up to and including 6.6.* unaffected from 6.9.6 up to and including 6.9.* unaffected 6.10 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-40945 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-40945
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-40945
trivy image --scanners vuln IMAGE | grep CVE-2024-40945
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/700f564758882db7c039dfba9443fe762561a3f8 git.kernel.org
- https://git.kernel.org/stable/c/cf34f8f66982a36e5cba0d05781b21ec9606b91e git.kernel.org
- https://git.kernel.org/stable/c/2973b8e7d127754de9013177c41c0b5547406998 git.kernel.org
- https://git.kernel.org/stable/c/6325eab6c108fed27f60ff51852e3eac0ba23f3f git.kernel.org
- https://git.kernel.org/stable/c/7388ae6f26c0ba95f70cc96bf9c5d5cb06c908b6 git.kernel.org
- https://git.kernel.org/stable/c/61a96da9649a6b6a1a5d5bde9374b045fdb5c12e git.kernel.org
- https://git.kernel.org/stable/c/89e8a2366e3bce584b6c01549d5019c5cda1205e git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-613116.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-355557.html cert-portal.siemens.com
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html cert-portal.siemens.com
Source: the record CVE-2024-40945 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse