Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-40945

MEDIUM 5.5EPSS 18%

iommu: Return right value in iommu_sva_bind_device()

Mitigation

  • Upgrade Linux to 89e8a2366e3bce584b6c01549d5019c5cda1205e or later.

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

Vulnerability facts

Affected
Linux >= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, < 700f564758882db7c039dfba9443fe762561a3f8; >= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, < cf34f8f66982a36e5cba0d05781b21ec9606b91e; >= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, < 2973b8e7d127754de9013177c41c0b5547406998; >= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, < 6325eab6c108fed27f60ff51852e3eac0ba23f3f; >= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, < 7388ae6f26c0ba95f70cc96bf9c5d5cb06c908b6; >= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, < 61a96da9649a6b6a1a5d5bde9374b045fdb5c12e; >= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, < 89e8a2366e3bce584b6c01549d5019c5cda1205e; Linux 5.2
Fixed in
Linux 700f564758882db7c039dfba9443fe762561a3f8, Linux 2973b8e7d127754de9013177c41c0b5547406998, Linux 6325eab6c108fed27f60ff51852e3eac0ba23f3f, Linux 7388ae6f26c0ba95f70cc96bf9c5d5cb06c908b6, Linux 61a96da9649a6b6a1a5d5bde9374b045fdb5c12e, Linux 89e8a2366e3bce584b6c01549d5019c5cda1205e
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.32% chance of exploitation in 30 days (percentile 18, 2026-11-26)
CWE
CWE-476
Published
Modified

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

Package / productAffectedFixedSource
Linux>= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, < 700f564758882db7c039dfba9443fe762561a3f8; >= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, < cf34f8f66982a36e5cba0d05781b21ec9606b91e; >= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, < 2973b8e7d127754de9013177c41c0b5547406998; >= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, < 6325eab6c108fed27f60ff51852e3eac0ba23f3f; >= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, < 7388ae6f26c0ba95f70cc96bf9c5d5cb06c908b6; >= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, < 61a96da9649a6b6a1a5d5bde9374b045fdb5c12e; >= 26b25a2b98e45aeb40eedcedc586ad5034cbd984, < 89e8a2366e3bce584b6c01549d5019c5cda1205e—cvelist
Linux5.2—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors