# CVE-2024-40945: iommu: Return right value in iommu\_sva\_bind\_device()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-07-12T12:25:19.164Z
- **Modified:** 2026-10-15T01:18:38.130Z

## Who should check

- Anyone running Linux \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< 700f564758882db7c039dfba9443fe762561a3f8; \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< cf34f8f66982a36e5cba0d05781b21ec9606b91e; \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< 2973b8e7d127754de9013177c41c0b5547406998; \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< 6325eab6c108fed27f60ff51852e3eac0ba23f3f; \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< 7388ae6f26c0ba95f70cc96bf9c5d5cb06c908b6; \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< 61a96da9649a6b6a1a5d5bde9374b045fdb5c12e; \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< 89e8a2366e3bce584b6c01549d5019c5cda1205e
- Anyone running Linux 5.2

## 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.

## Affected and fixed versions

- Linux: \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< 700f564758882db7c039dfba9443fe762561a3f8; \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< cf34f8f66982a36e5cba0d05781b21ec9606b91e; \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< 2973b8e7d127754de9013177c41c0b5547406998; \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< 6325eab6c108fed27f60ff51852e3eac0ba23f3f; \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< 7388ae6f26c0ba95f70cc96bf9c5d5cb06c908b6; \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< 61a96da9649a6b6a1a5d5bde9374b045fdb5c12e; \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< 89e8a2366e3bce584b6c01549d5019c5cda1205e (cvelist)
- Linux: 5.2 (cvelist)

## Mitigation

- Upgrade Linux to 89e8a2366e3bce584b6c01549d5019c5cda1205e or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-40945. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-40945.md
Affected: Linux >= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, < 700f564758882db7c039dfba9443fe762561a3f8; >= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, < cf34f8f66982a36e5cba0d05781b21ec9606b91e; >= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, < 2973b8e7d127754de9013177c41c0b5547406998; >= 26b25a2b98e45aeb40eedce…
Fixed in: Linux 700f564758882db7c039dfba9443fe762561a3f8, Linux 2973b8e7d127754de9013177c41c0b5547406998, Linux 6325eab6c108fed27f60ff51852e3eac0ba23f3f, Linux 7388ae6f26c0ba95f70cc96bf9c5d5cb06c908b6, Linux 61a96da9649a6b6a1a5d5bde9374b045fdb5c12e, Linux 89e8a2366e3bce584b6c01549d5019c5cda1205e

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-40945 being exploited?

There is no confirmed exploitation: CVE-2024-40945 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-40945?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-40945?

Linux \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< 700f564758882db7c039dfba9443fe762561a3f8; \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< cf34f8f66982a36e5cba0d05781b21ec9606b91e; \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< 2973b8e7d127754de9013177c41c0b5547406998; \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< 6325eab6c108fed27f60ff51852e3eac0ba23f3f; \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< 7388ae6f26c0ba95f70cc96bf9c5d5cb06c908b6; \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< 61a96da9649a6b6a1a5d5bde9374b045fdb5c12e; \>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, \< 89e8a2366e3bce584b6c01549d5019c5cda1205e; Linux 5.2.

### Is there a fix for CVE-2024-40945?

Yes. Fixed in Linux 700f564758882db7c039dfba9443fe762561a3f8, Linux 2973b8e7d127754de9013177c41c0b5547406998, Linux 6325eab6c108fed27f60ff51852e3eac0ba23f3f, Linux 7388ae6f26c0ba95f70cc96bf9c5d5cb06c908b6, Linux 61a96da9649a6b6a1a5d5bde9374b045fdb5c12e, Linux 89e8a2366e3bce584b6c01549d5019c5cda1205e. Upgrade Linux to 89e8a2366e3bce584b6c01549d5019c5cda1205e or later.

### How do I check if I'm affected by CVE-2024-40945?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/700f564758882db7c039dfba9443fe762561a3f8>
- patch: <https://git.kernel.org/stable/c/cf34f8f66982a36e5cba0d05781b21ec9606b91e>
- patch: <https://git.kernel.org/stable/c/2973b8e7d127754de9013177c41c0b5547406998>
- patch: <https://git.kernel.org/stable/c/7388ae6f26c0ba95f70cc96bf9c5d5cb06c908b6>
- patch: <https://git.kernel.org/stable/c/61a96da9649a6b6a1a5d5bde9374b045fdb5c12e>
- patch: <https://git.kernel.org/stable/c/89e8a2366e3bce584b6c01549d5019c5cda1205e>
- other: <https://git.kernel.org/stable/c/6325eab6c108fed27f60ff51852e3eac0ba23f3f>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-613116.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-355557.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-40945>

HTML: <https://flawdb.com/CVE-2024-40945> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-40945>
