CVE-2026-138946: cxl/acpi: Check ACPI companion before use
In the Linux kernel, the following vulnerability has been resolved:
cxl/acpi: Check ACPI companion before use
Platform drivers can be forced to match devices outside their ID tables through driveroverride. cxlacpiprobe() assumes that every bound device has an ACPI companion and dereferences adev->dev.bus without checking the result of ACPICOMPANION(). Force-binding cxlacpi to a platform device without a companion therefore causes a NULL pointer dereference.
This was reproduced by setting the driver override for the pcspkr platform device to cxlacpi and binding it through sysfs:
BUG: kernel NULL pointer dereference, address: 0000000000000280 #PF: supervisor read access in kernel mode RIP: cxlacpiprobe+0xf4/0x220 Call Trace: platformprobe+0x4d/0x80 reallyprobe+0x106/0x370 devicedriverattach+0x4c/0xa0 bindstore+0xd0/0x100
Commit 2b3a5dabe89e ("platform/surface: acpi-notify: Check ACPI companion before use") fixed the same force-binding issue in another platform driver. Check the companion before setting up the CXL root and return -ENODEV when it is absent.