Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: ACPI: scan: fix bus ID cleanup on device_add() failures When device_add() fails after acpi_device_set_name() has allocated an instance ID and a new acpi_device_bus_id has been linked into acpi_bus_id_list, the rollback path only removes wakeup_list and detaches the ACPI handle data. That leaves the bus-ID bookkeeping behind and keeps the allocated instance number consumed. Move the bus-ID cleanup and wakeup-list removal into a single helper. Use it from both the normal device teardown path and the device_add() rollback path. The wakeup list node is initialized before registration, so it can be deleted without checking whether the device is wakeup- capable like in the original teardown path. [ rjw: Rename acpi_device_del_list() to acpi_device_cleanup() ] [ rjw: Subject and changelog edits ]
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected d783156ea38431b20af0d4f910a6f9f9054d33b9 before 8cc2017aa804f157e717b5fd471e50fbddfec654; affected d783156ea38431b20af0d4f910a6f9f9054d33b9 before f30379b8a4e24623594235dd5aefb2957e0cc228; affected d783156ea38431b20af0d4f910a6f9f9054d33b9 before 83ee65feadc88de681abc6e977d54eceda95abd7; affected d783156ea38431b20af0d4f910a6f9f9054d33b9 before 15512c6b5dea72fb5f1f41c1aa96f3f32531ca03; affected d783156ea38431b20af0d4f910a6f9f9054d33b9 before 0b9053cd0955c7cd66d71a8442be33926d70e197; affected d783156ea38431b20af0d4f910a6f9f9054d33b9 before a414485ebc2aa50907d0ce97cde2b1a353696897 |
| Linux / Linux | affected 3.14; unaffected 0 before 3.14; unaffected 6.1.188 through 6.1.*; unaffected 6.6.157 through 6.6.*; unaffected 6.12.110 through 6.12.*; unaffected 6.18.52 through 6.18.*; unaffected 7.2.6 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/8cc2017aa804f157e717b5fd471e50fbddfec654
- https://git.kernel.org/stable/c/f30379b8a4e24623594235dd5aefb2957e0cc228
- https://git.kernel.org/stable/c/83ee65feadc88de681abc6e977d54eceda95abd7
- https://git.kernel.org/stable/c/15512c6b5dea72fb5f1f41c1aa96f3f32531ca03
- https://git.kernel.org/stable/c/0b9053cd0955c7cd66d71a8442be33926d70e197
- https://git.kernel.org/stable/c/a414485ebc2aa50907d0ce97cde2b1a353696897