CVE-2024-40945: iommu: Return right value in iommu_sva_bind_device()

Published Jul 12, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

iommu: Return right value in iommusvabinddevice()

iommusvabinddevice() should return either a sva bond handle or an ERRPTR value in error cases. Existing drivers (idxd and uacce) only check the return value with ISERR(). 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 iommusvabinddevice() only returns NULL when the kernel is not configured with CONFIGIOMMUSVA. In this case, iommudevenablefeature(dev, IOMMUDEVFEATSVA) will return an error, and the device drivers won't call iommusvabinddevice() at all.

Affected Software

15 affected componentsFixes available
redhat/kernel<5.4.279
5.4.279
redhat/kernel<5.10.221
5.10.221
redhat/kernel<5.15.162
5.15.162
redhat/kernel<6.6.35
6.6.35
redhat/kernel<6.9.6
6.9.6
redhat/kernel<6.10
6.10
Linux Linux kernel>=5.2<5.4.279
Linux Linux kernel>=5.5<5.10.221
Linux Linux kernel>=5.11<5.15.162
Linux Linux kernel>=5.16<6.6.35
Linux Linux kernel>=6.7<6.9.6
Linux Linux kernel=6.10-rc1
Linux Linux kernel=6.10-rc2
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.25-16.12.27-1
debian/linux-6.1
6.1.129-1~deb11u1

Event History

Jul 12, 2024
CVE Published
via MITRE·12:25 PM
Data Sourced
via MITRE·12:25 PM
Description
Data Sourced
via NVD·01:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Apr 27, 2025
Data Sourced
via Ubuntu·05:24 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-40945?

CVE-2024-40945 is classified as a high severity vulnerability in the Linux kernel.

2

How do I fix CVE-2024-40945?

To fix CVE-2024-40945, upgrade to the latest kernel versions specified in the remediation list.

3

Which Linux kernel versions are affected by CVE-2024-40945?

CVE-2024-40945 affects Linux kernel versions prior to 5.4.279, 5.10.221, 5.15.162, 6.6.35, 6.9.6, and 6.10.

4

What impact does CVE-2024-40945 have on my system?

CVE-2024-40945 could potentially lead to improper handling of device binding in the kernel, causing system instability or security issues.

5

Is there a known exploit for CVE-2024-40945?

As of now, there are no publicly known exploits specifically targeting CVE-2024-40945.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203