ACPI: platform: Use acpi_bus_get_primary_device()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.160, 6.12.114, 7.2.6
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
In the Linux kernel, the following vulnerability has been resolved: ACPI: platform: Use acpi_bus_get_primary_device() The acpi_get_first_physical_node() usage in acpi_platform_fill_resource() and acpi_create_platform_device() is generally unsafe because in theory the device returned by it may be freed at any time [1]. It is also inefficient because acpi_get_first_physical_node() is called multiple times for the same argument which can be avoided. Address these issues by using acpi_bus_get_primary_device() instead of acpi_get_first_physical_node() and adjusting the code to call it just once at the beginning of and acpi_create_platform_device() and drop the device reference acquired by it upon the return from that function.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 3b95bd160547f56a68aeb972c33ae9511e7a8380 · fixed in a75e5de593ef158feb17989bff7730c5a3d82503; From 3b95bd160547f56a68aeb972c33ae9511e7a8380 · fixed in 527a497fb2ef77a95170eefe2007e2c4c957bd2c; From 3b95bd160547f56a68aeb972c33ae9511e7a8380 · fixed in c9d202d3b6c28e8c779cd2f2b10d2f7ab665ca71; From 3b95bd160547f56a68aeb972c33ae9511e7a8380 · fixed in a9ba4dd2f18bf3f439d9ef0d8f375f90360ba1bd
- Linux Linux
4.6
- KernelLinux
From 4.6.0 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.114; From 6.13.0 · fixed in 7.2.6