CVE-2026-53120: PCI: use generic driver_override infrastructure
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
PCI: use generic driver_override infrastructure
When a driver is probed through __driver_attach(), the bus' match() callback is called without the device lock held, thus accessing the driver_override field without a lock, which can cause a UAF.
Fix this by using the driver-core driver_override infrastructure taking care of proper locking internally.
Note that calling match() from __driver_attach() without the device lock held is intentional. [1]
The Linux kernel CVE team has assigned CVE-2026-53120 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.16 with commit 782a985d7af26db39e86070d28f987cad21313c0 and fixed in 6.12.91 with commit dfe950d9464cad609f3b118c6203e2708055bc61 Issue introduced in 3.16 with commit 782a985d7af26db39e86070d28f987cad21313c0 and fixed in 6.18.33 with commit 58a42be0d70307d765594fc581f5f5e5ef059712 Issue introduced in 3.16 with commit 782a985d7af26db39e86070d28f987cad21313c0 and fixed in 7.0.10 with commit c5b2c5755495507e14f310c2653c85de0a309b1f Issue introduced in 3.16 with commit 782a985d7af26db39e86070d28f987cad21313c0 and fixed in 7.1 with commit 10a4206a24013be4d558d476010cbf2eb4c9fa64
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-53120
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/pci/pci-driver.c
drivers/pci/pci-sysfs.c
drivers/pci/probe.c
drivers/vfio/pci/vfio_pci_core.c
drivers/xen/xen-pciback/pci_stub.c
include/linux/pci.h
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/dfe950d9464cad609f3b118c6203e2708055bc61 https://git.kernel.org/stable/c/58a42be0d70307d765594fc581f5f5e5ef059712 https://git.kernel.org/stable/c/c5b2c5755495507e14f310c2653c85de0a309b1f https://git.kernel.org/stable/c/10a4206a24013be4d558d476010cbf2eb4c9fa64