CVE Catalog

CVE-2026-92521

Unknown
Published: Translated: NVD NIST

Summary

In the Linux kernel, the ACPI PCI module's acpi_pci_root_add() assigns the freshly allocated root to device->driver_data before dmar_device_add() and pci_acpi_scan_root(). Only the pci_acpi_scan_root() path clears driver_data before freeing root, so when dmar_device_add() fails a dangling pointer remains. acpi_pci_root_remove() has the same problem.

Risk Assessment

A dangling pointer in device->driver_data may be dereferenced by a later acpi_pci_find_root() call, leading to a use-after-free and kernel crash or potential code execution.

Recommendation

Update the Linux kernel to a version with the fix that clears driver_data on all error paths in acpi_pci_root_add() and in acpi_pci_root_remove() before freeing root.

Other vulnerabilities in Linux kernel

See all
Original NVD description (English source)

In the Linux kernel, the following vulnerability has been resolved: ACPI: PCI: Clear driver_data on all paths that free the acpi_pci_root acpi_pci_root_add() assigns the freshly allocated root to device->driver_data before dmar_device_add() and pci_acpi_scan_root(). Both failure paths reach the end: label where root is kfree()'d, but only the pci_acpi_scan_root() path clears driver_data first. When dmar_device_add() fails during a hot-add, root is freed while device->driver_data still points at it. The ACPI core does not clear driver_data on attach failure, so a later acpi_pci_find_root() call may dereference this dangling pointer. acpi_pci_root_remove() has the same problem: it frees root without clearing device->driver_data, leaving a dangling pointer behind after the root bridge is removed. Move the NULL assignment to the shared end: label so every error path in acpi_pci_root_add() clears driver_data before freeing root, and clear it in acpi_pci_root_remove() as well, so the object is never left reachable through driver_data after being freed.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS