CVE-2024-35957: iommu/vt-d: Fix WARN_ON in iommu probe path

Published May 20, 2024
·
Updated

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

iommu/vt-d: Fix WARNON in iommu probe path

Commit 1a75cc710b95 ("iommu/vt-d: Use rbtree to track iommu probed devices") adds all devices probed by the iommu driver in a rbtree indexed by the source ID of each device. It assumes that each device has a unique source ID. This assumption is incorrect and the VT-d spec doesn't state this requirement either.

The reason for using a rbtree to track devices is to look up the device with PCI bus and devfunc in the paths of handling ATS invalidation time out error and the PRI I/O page faults. Both are PCI ATS feature related.

Only track the devices that have PCI ATS capabilities in the rbtree to avoid unnecessary WARNON in the iommu probe path. Otherwise, on some platforms below kernel splat will be displayed and the iommu probe results in failure.

WARNING: CPU: 3 PID: 166 at drivers/iommu/intel/iommu.c:158 inteliommuprobedevice+0x319/0xd90 Call Trace: <TASK> ? warn+0x7e/0x180 ? inteliommuprobedevice+0x319/0xd90 ? reportbug+0x1f8/0x200 ? handlebug+0x3c/0x70 ? excinvalidop+0x18/0x70 ? asmexcinvalidop+0x1a/0x20 ? inteliommuprobedevice+0x319/0xd90 ? debugmutexinit+0x37/0x50 iommuprobedevice+0xf2/0x4f0 iommuprobedevice+0x22/0x70 iommubusnotifier+0x1e/0x40 notifiercallchain+0x46/0x150 blockingnotifiercallchain+0x42/0x60 busnotify+0x2f/0x50 deviceadd+0x5ed/0x7e0 platformdeviceadd+0xf5/0x240 mfdadddevices+0x3f9/0x500 ? preemptcountadd+0x4c/0xa0 ? upwrite+0xa2/0x1b0 ? debugfscreatefile+0xe3/0x150 intellpssprobe+0x49f/0x5b0 ? pciconf1write+0xa3/0xf0 intellpsspciprobe+0xcf/0x110 [intellpsspci] pcideviceprobe+0x95/0x120 reallyprobe+0xd9/0x370 ? pfxdriverattach+0x10/0x10 driverprobedevice+0x73/0x150 driverprobedevice+0x19/0xa0 driverattach+0xb6/0x180 ? pfxdriverattach+0x10/0x10 busforeachdev+0x77/0xd0 busadddriver+0x114/0x210 driverregister+0x5b/0x110 ? pfxintellpsspcidriverinit+0x10/0x10 [intellpsspci] dooneinitcall+0x57/0x2b0 ? kmalloctrace+0x21e/0x280 ? doinitmodule+0x1e/0x210 doinitmodule+0x5f/0x210 loadmodule+0x1d37/0x1fc0 ? initmodulefromfile+0x86/0xd0 initmodulefromfile+0x86/0xd0 idempotentinitmodule+0x17c/0x230 x64sysfinitmodule+0x56/0xb0 dosyscall64+0x6e/0x140 entrySYSCALL64afterhwframe+0x71/0x79

Other sources

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

iommu/vt-d: Fix WARNON in iommu probe path

The Linux kernel CVE team has assigned CVE-2024-35957 to this issue.

Upstream advisory: https://lore.kernel.org/linux-cve-announce/2024052019-CVE-2024-35957-8c83@gregkh/T

Red Hat

Affected Software

3 affected componentsFixes available
debian/linux
5.10.223-15.10.234-16.1.129-16.1.135-16.12.22-16.12.25-1
redhat/kernel<6.8.7
6.8.7
Linux Linux kernel>=6.8.2<6.8.7

Event History

May 20, 2024
CVE Published
via MITRE·09:41 AM
Data Sourced
via MITRE·09:41 AM
Description
Data Sourced
via NVD·10:15 AM
DescriptionSeverity
Data Sourced
via NVD·10:15 AM
RemedyWeaknessAffected Software
Data Sourced
via Red Hat·05:11 PM
DescriptionSeverityAffected Software
Jul 11, 2024
Data Sourced
via Launchpad·07:47 PM
Description
Dec 2, 2024
Data Sourced
via Ubuntu·08:18 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2024-35957?

CVE-2024-35957 is considered a low-severity vulnerability in the Linux kernel.

2

How do I fix CVE-2024-35957?

To fix CVE-2024-35957, update the affected Linux kernel to the patched versions specified in relevant distributions.

3

Which systems are affected by CVE-2024-35957?

CVE-2024-35957 affects specific versions of the Linux kernel in Red Hat and Debian distributions.

4

What components are primarily involved in CVE-2024-35957?

CVE-2024-35957 involves the IOMMU driver and its functionality within the Linux kernel.

5

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

As of now, there are no publicly known exploits for CVE-2024-35957.

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