Bug 2297529 (CVE-2024-40945) - CVE-2024-40945 kernel: iommu: Return right value in iommu_sva_bind_device()
Summary: CVE-2024-40945 kernel: iommu: Return right value in iommu_sva_bind_device()
Keywords:
Status: NEW
Alias: CVE-2024-40945
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-12 13:37 UTC by OSIDB Bzimport
Modified: 2024-11-12 09:36 UTC (History)
4 users (show)

Fixed In Version: kernel 5.4.279, kernel 5.10.221, kernel 5.15.162, kernel 6.6.35, kernel 6.9.6, kernel 6.10-rc3
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2024:9315 0 None None None 2024-11-12 09:36:15 UTC

Description OSIDB Bzimport 2024-07-12 13:37:50 UTC
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.

Comment 11 errata-xmlrpc 2024-11-12 09:36:14 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2024:9315 https://access.redhat.com/errata/RHSA-2024:9315


Note You need to log in before you can comment on or make changes to this bug.