⚠️

Disclaimer & Liability

The content provided on this website is for educational, research, and security awareness purposes only. Any unauthorized, illegal, or abusive use of the information, tools, and techniques discussed is solely the responsibility of the user. The author and publisher assume no liability for any damages, injuries, or consequences resulting from the misuse of this content.

CVE-2026-138946: Linux Kernel cxl/acpi NULL Pointer Dereference | Alireza Bolbolabadi - Red Team Security
LOADING

CVE-2026-138946: Linux Kernel cxl/acpi NULL Pointer Dereference

Executive summary

CVE-2026-138946 is a missing NULL check in the Linux kernel's CXL ACPI support. The cxl_acpi_probe() callback assumes that every platform device bound to the driver has an ACPI companion object. It retrieves that companion with ACPI_COMPANION() and then accesses adev->dev.bus without validating the result.

When cxl_acpi is force-bound to a platform device that lacks an ACPI companion, the lookup returns NULL and the kernel faults while probing the device. The described trigger uses the platform bus's driver_override and binding interfaces, both of which require privileged access in a default Linux configuration. The practical impact is a local denial of service rather than memory corruption, privilege escalation, or information disclosure.

Upstream has resolved the flaw by checking for the ACPI companion before configuring the CXL root and returning -ENODEV if it is absent. The supplied advisory was published on 2026-11-30 14:17:55.793 and does not enumerate the affected kernel releases or provide the hash of the specific cxl/acpi fix.

Detailed analysis

Root cause

Linux platform drivers can be forced to match devices outside their normal ID tables through the driver_override sysfs attribute. The cxl_acpi probe path fails to account for that flexibility.

The vulnerable sequence is:

  1. A privileged actor writes cxl_acpi to the driver_override attribute of an unrelated platform device.

  1. The device is bound through the platform bus sysfs interface.

  1. cxl_acpi_probe() obtains the device's ACPI companion using ACPI_COMPANION().

  1. The companion is absent, so the lookup returns NULL.

  1. The probe callback dereferences adev->dev.bus, producing a kernel NULL pointer dereference.

The upstream report reproduces the issue by overriding the pcspkr platform device with cxl_acpi and binding it through sysfs. The reported fault includes:

BUG: kernel NULL pointer dereference, address: 0000000000000280

#PF: supervisor read access in kernel mode

RIP: cxl_acpi_probe+0xf4/0x220

Call Trace:

platform_probe+0x4d/0x80

really_probe+0x106/0x370

device_driver_attach+0x4c/0xa0

bind_store+0xd0+0x100

Affected systems

  • Product: Linux kernel

  • Component: drivers/cxl/acpi.c

  • Driver: cxl_acpi

  • Affected functionality: CXL ACPI support and the cxl_acpi_probe() initialization path

  • Affected version range: Not stated in the supplied advisory

  • Exposed surface: A platform device with write access to its driver_override attribute and access to the corresponding sysfs binding path

The source material does not identify a CVSS vector or score and does not list the kernel releases containing the flaw. Determining release-specific exposure therefore requires the relevant stable branches and distributor security advisories.

Impact and exploitability

The demonstrated consequence is a kernel oops during device probing. Depending on the host's panic_on_oops configuration, this can terminate the affected execution context or bring down the system. The available evidence does not indicate controllable memory corruption, privilege escalation, or information disclosure.

Exploitation requires local write access to root-gated platform-driver interfaces. In a default configuration, an unauthenticated remote attacker cannot directly reach this path. The supplied intelligence also records no CISA KEV listing and no evidence of exploitation campaigns or public exploit code beyond the upstream reproduction procedure.

These constraints support a low severity assessment. The flaw is a confirmed denial-of-service condition, but its trigger is privileged and local, and the affected CXL ACPI path is most relevant on systems with compatible ACPI-described CXL devices.

Upstream resolution

The corrected behavior is to verify that the ACPI companion exists before setting up the CXL root and to return -ENODEV when it does not. The advisory cites commit 2b3a5dabe89e (platform/surface: acpi-notify: Check ACPI companion before use) as an analogous fix in another platform driver. That commit is a precedent, not the identified fix for the cxl/acpi issue.

Mitigation

Apply the upstream cxl/acpi correction through the relevant stable kernel or vendor kernel update. Because the provided context does not enumerate affected versions or the specific fixing commit hash, administrators should consult their distribution's security advisory and source package when confirming whether the companion check is present.

Until an update is available, limit write access to platform-device driver_override attributes and sysfs binding interfaces. Incorrect overrides—such as cxl_acpi assigned to pcspkr—should be removed. Environments that do not require manual driver matching can remove or mask write access to the relevant driver_override attributes.

Detection

Potential indicators include:

  • Kernel logs containing BUG: kernel NULL pointer dereference together with RIP: cxl_acpi_probe.

  • Call traces containing bind_store, really_probe, or device_driver_attach.

  • The reported fault address 0000000000000280.

  • Unexpected cxl_acpi values under /sys/bus/platform/devices/*/driver_override on devices that are not ACPI CXL root devices.

A crash in cxl_acpi_probe shortly after a platform-device override or bind operation is a stronger indicator than the oops signature alone.

Expert insight

This issue illustrates why driver binding code should treat platform-device relationships as untrusted input. driver_override is intended for administrative flexibility, but it also lets an authorized actor bypass normal hardware ID matching. A robust probe callback must validate every device association it assumes, especially when that assumption leads to pointer dereferences.

The upstream remedy is appropriately narrow: reject a device without the required ACPI companion instead of attempting CXL root initialization. Its relevance is nevertheless broader than CXL. Commit 2b3a5dabe89e addressed the same pattern in platform/surface: acpi-notify, showing that unchecked ACPI_COMPANION() results have appeared across multiple platform drivers. Reviewing similar probe paths can identify related failure modes even when they are not assigned separate CVE identifiers.

Actionable recommendations

  1. Confirm with the kernel distributor whether the installed or available stable release contains the cxl/acpi ACPI-companion check.

  1. Review /sys/bus/platform/devices/*/driver_override for unexpected assignments, particularly cxl_acpi on non-CXL devices.

  1. Restrict privileged write access to platform driver_override and binding interfaces where operational requirements allow.

  1. Monitor kernel logs for NULL pointer dereferences associated with cxl_acpi_probe, bind_store, and the reported address 0000000000000280.

  1. Treat the absence of a published CVSS score and version range as missing data rather than evidence of safety, while recognizing that the confirmed trigger requires privileged local access.

References

·
← News