AZL-117739: CVE-2026-142927 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
ACPI: glue: Carry out companion lookup under bustypesem
When acpidevicenotify() looks up an ACPI companion for the given device, it invokes callbacks from struct acpibustype() without synchronization which may lead to a use-after-free if the driver module containing those callbacks is unloaded at the same time.
Address this by holding bustypesem throughout the entire ACPI companion lookup and the execution of the .setup() callback in struct acpibustype (if present) instead of dropping the semaphore (prematurely) after finding a matching struct acpibustype.
For this purpose, rename acpigetbustype() to acpicompanionlookup(), make it return a struct acpidevice pointer, and move the relevant code from acpidevicenotify() to it.
Also notice that the only case in which the .bind() callback from an ACPI scan handler may need to be invoked is when the given device is a platform one, so adjust acpidevicenotify() accordingly and drop the "done" label that is not used any more from it.
Affected Software
Event History
Frequently Asked Questions
What condition is required to trigger the use-after-free?
The race occurs when ACPI companion lookup invokes callbacks from an ACPI bus type while the driver module containing those callbacks is unloaded concurrently.
Which systems are most relevant to triage?
Systems using the affected Azure Linux kernel package and ACPI device handling are relevant, particularly where driver modules can be unloaded while ACPI device notifications or companion lookups are occurring.
What does the fix change?
The fix holds bus_type_sem for the full ACPI companion lookup and any associated .setup() callback execution, preventing callback access after a concurrently unloaded driver module has been freed.