usb: cdns3: Fix NULL pointer dereference in cdns3_pci_probe
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel fc13243658da9ed3c4c94aaff77c36a10f441b89, Kernel 399b18b18f54495eeeda8d88e039e6af27d020c9, Kernel 45b606418bae73c7cde9f0e57e5b0977c816a7c0 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: usb: cdns3: Fix NULL pointer dereference in cdns3_pci_probe The Cadence USBSS controller is a two-function PCI device. The first probed function allocates the driver data and stores it with pci_set_drvdata(), while the second function reuses it via pci_get_drvdata() when pci_is_enabled() reports that the first function has already been probed. When the second function is probed while the first one has been enabled but has not yet set its driver data, pci_get_drvdata() returns NULL, and the subsequent wrap->devfn assignment dereferences a NULL pointer and crashes the kernel. logs: Call trace: cdns3_pci_probe+0xa4/0x300 local_pci_probe+0x44/0xa8 pci_call_probe+0x54/0x158 pci_device_probe+0x84/0x100 really_probe+0x184/0x3d0 __driver_probe_device+0x80/0x178 driver_probe_device+0x44/0xe8 __driver_attach+0xec/0x1f8 bus_for_each_dev+0x7c/0xe0 driver_attach+0x28/0x38 bus_add_driver+0x110/0x238 driver_register+0x64/0x128 __pci_register_driver+0x50/0x60 cdns3_pci_driver_init+0x28/0x38 do_one_initcall+0x5c/0x280 do_initcalls+0x104/0x1d8 kernel_init_freeable+0x140/0x218 kernel_init+0x28/0x1f8 ret_from_fork+0x10/0x20 Return -EPROBE_DEFER in this case so that probing is retried after the first function has completed its probe.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=7733f6c32e36ff9d7adadf40001039bf219b1cbe <fc13243658da9ed3c4c94aaff77c36a10f441b89, >=7733f6c32e36ff9d7adadf40001039bf219b1cbe <399b18b18f54495eeeda8d88e039e6af27d020c9, >=7733f6c32e36ff9d7adadf40001039bf219b1cbe <45b606418bae73c7cde9f0e57e5b0977c816a7c0, >=7733f6c32e36ff9d7adadf40001039bf219b1cbe <549c04df02f1bb5a10342f32e2c87f5d27c97279, >=7733f6c32e36ff9d7adadf40001039bf219b1cbe <88b473800ae11397e2e169aff2e17b041c040409, >=7733f6c32e36ff9d7adadf40001039bf219b1cbe <d16046f1ace2691b6a946f022fe6dc215936880b, >=7733f6c32e36ff9d7adadf40001039bf219b1cbe <dbdd0ca9a7eac140697a366f698a0e2bb02a06a1, >=7733f6c32e36ff9d7adadf40001039bf219b1cbe <e5052f2c5c73c1dcca42bafc0bc737af2b2af059, =5.4 | fc13243658da9ed3c4c94aaff77c36a10f441b89, 399b18b18f54495eeeda8d88e039e6af27d020c9, 45b606418bae73c7cde9f0e57e5b0977c816a7c0, 549c04df02f1bb5a10342f32e2c87f5d27c97279, 88b473800ae11397e2e169aff2e17b041c040409, d16046f1ace2691b6a946f022fe6dc215936880b, dbdd0ca9a7eac140697a366f698a0e2bb02a06a1, e5052f2c5c73c1dcca42bafc0bc737af2b2af059 |
| linux-kernel: Kernel | >=5.16.0 <6.1.191, >=5.4.0 <5.10.273, >=6.13.0 <6.18.56, >=6.19.0 <7.2.10, >=6.2.0 <6.6.160, >=6.7.0 <6.12.113, >=5.11.0 <5.15.224 | 6.1.191, 5.10.273, 6.18.56, 7.2.10, 6.6.160, 6.12.113, 5.15.224 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket