CVE-2024-40945
MEDIUMLinux Kernel - NULL Pointer Dereference in iommu_sva_bind_device()
Title source: llmDescription
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.
References (11)
Core 11
Core References
Vendor Advisory
https://cert-portal.siemens.com/productcert/html/ssa-265688.html
Vendor Advisory
https://cert-portal.siemens.com/productcert/html/ssa-355557.html
Vendor Advisory
https://cert-portal.siemens.com/productcert/html/ssa-613116.html
Scores
CVSS v3
5.5
EPSS
0.0026
EPSS Percentile
16.9%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
partial
Details
CWE
CWE-476
Status
published
Products (24)
linux/Kernel
5.11.0 - 5.15.162linux
linux/Kernel
5.16.0 - 6.1.129linux
linux/Kernel
5.2.0 - 5.4.279linux
linux/Kernel
5.5.0 - 5.10.221linux
linux/Kernel
6.2.0 - 6.6.35linux
linux/Kernel
6.7.0 - 6.9.6linux
Linux/Linux
< 5.2
Linux/Linux
26b25a2b98e45aeb40eedcedc586ad5034cbd984 - 2973b8e7d127754de9013177c41c0b5547406998
Linux/Linux
26b25a2b98e45aeb40eedcedc586ad5034cbd984 - 61a96da9649a6b6a1a5d5bde9374b045fdb5c12e
Linux/Linux
26b25a2b98e45aeb40eedcedc586ad5034cbd984 - 6325eab6c108fed27f60ff51852e3eac0ba23f3f
... and 14 more
Published
Jul 12, 2024
Tracked Since
Feb 18, 2026