ACPI: processor: Fix NULL-pointer dereference in acpi_processor_errata_piix4()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.15.202, Kernel 6.1.165, Kernel 6.18.16 and 10 more.
In the Linux kernel, the following vulnerability has been resolved: ACPI: processor: Fix NULL-pointer dereference in acpi_processor_errata_piix4() In acpi_processor_errata_piix4(), the pointer dev is first assigned an IDE device and then reassigned an ISA device: dev = pci_get_subsys(..., PCI_DEVICE_ID_INTEL_82371AB, ...); dev = pci_get_subsys(..., PCI_DEVICE_ID_INTEL_82371AB_0, ...); If the first lookup succeeds but the second fails, dev becomes NULL. This leads to a potential null-pointer dereference when dev_dbg() is called: if (errata.piix4.bmisx) dev_dbg(&dev->dev, ...); To prevent this, use two temporary pointers and retrieve each device independently, avoiding overwriting dev with a possible NULL value. [ rjw: Subject adjustment, added an empty code line ]
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=2.6.12.1 <5.15.202, >=5.16 <6.1.165, >=6.13 <6.18.16, >=6.19 <6.19.6, >=6.2 <6.6.128, >=6.7 <6.12.75, =2.6.12, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <0398b641be2b66c2fc7e0163c606ef19372e7ad5, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <06724a60cfa9767ea90b0f5d3dfb5cdd251b64f5, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <29f60d3d06818d40118a30d663231f027ae87a05, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <ad86ac604f8391c0212a91412d4f764c7a85f254, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <b803811485ac0b2f774b6bf3abc8b999ba3b7033, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <f132e089fe89cadc2098991f0a3cb05c3f824ac6, >=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <01e8751b37a366b1ca561add0042f2ceb18c03bf | 5.15.202, 6.1.165, 6.18.16, 6.19.6, 6.6.128, 6.12.75, 0398b641be2b66c2fc7e0163c606ef19372e7ad5, 06724a60cfa9767ea90b0f5d3dfb5cdd251b64f5, 29f60d3d06818d40118a30d663231f027ae87a05, ad86ac604f8391c0212a91412d4f764c7a85f254, b803811485ac0b2f774b6bf3abc8b999ba3b7033, f132e089fe89cadc2098991f0a3cb05c3f824ac6, 01e8751b37a366b1ca561add0042f2ceb18c03bf |
| linux-kernel: Kernel | >=2.6.12 <5.15.202, >=5.16.0 <6.1.165, >=6.13.0 <6.18.16, >=6.19.0 <6.19.6, >=6.2.0 <6.6.128, >=6.7.0 <6.12.75 | 5.15.202, 6.1.165, 6.18.16, 6.19.6, 6.6.128, 6.12.75 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket