ACPI: driver: Check ACPI_COMPANION() against NULL during probe
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ACPI: driver: Check ACPI_COMPANION() against NULL during probe
Since every platform driver can be forced to match a device that doesn't match its list of device IDs because of device_match_driver_override(), platform drivers that rely on the existence of a device's ACPI companion object should verify its presence.
Accordingly, add requisite ACPI_COMPANION() or ACPI_HANDLE() checks against NULL to 13 platform drivers handling core ACPI devices.
Also change the value returned by the ACPI thermal zone driver when the device's ACPI companion is not present to -ENODEV for consistency with the other drivers.
From the CVE record · Linux
Thirteen Linux kernel platform drivers handling core ACPI devices did not check whether a device had an ACPI companion during probe. A forced driver match through device_match_driver_override() can trigger a NULL pointer dereference when the device lacks that companion. The input does not specify attacker access or authentication requirements.
Engineers running Linux kernels with the affected ACPI platform drivers should check their versions against the vendor advisory; affected versions are not specified.