{"id":"CVE-2026-138946","summary":"cxl/acpi: Check ACPI companion before use","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ncxl/acpi: Check ACPI companion before use\n\nPlatform drivers can be forced to match devices outside their ID tables\nthrough driver_override.  cxl_acpi_probe() assumes that every bound device\nhas an ACPI companion and dereferences adev-\u003edev.bus without checking the\nresult of ACPI_COMPANION().  Force-binding cxl_acpi to a platform device\nwithout a companion therefore causes a NULL pointer dereference.\n\nThis was reproduced by setting the driver override for the pcspkr platform\ndevice to cxl_acpi and binding it through sysfs:\n\n  BUG: kernel NULL pointer dereference, address: 0000000000000280\n  #PF: supervisor read access in kernel mode\n  RIP: cxl_acpi_probe+0xf4/0x220\n  Call Trace:\n   platform_probe+0x4d/0x80\n   really_probe+0x106/0x370\n   device_driver_attach+0x4c/0xa0\n   bind_store+0xd0/0x100\n\nCommit 2b3a5dabe89e (\"platform/surface: acpi-notify: Check ACPI\ncompanion before use\") fixed the same force-binding issue in another\nplatform driver.  Check the companion before setting up the CXL root and\nreturn -ENODEV when it is absent.","modified":"2026-11-30T15:01:36.938051687Z","published":"2026-11-30T13:26:27.116Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138946.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2e68745508945b9df5ad6715e89c3b9ecf3a6fa3"},{"type":"WEB","url":"https://git.kernel.org/stable/c/371c2ad1624283b6c7a62a28199f5161d388a738"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b0f54c804cc0f8ea47ffef685de9c01666233e43"},{"type":"WEB","url":"https://git.kernel.org/stable/c/db31479fa303799673a0dfa4134a98ee953eef59"},{"type":"WEB","url":"https://git.kernel.org/stable/c/de1140a7619e6d056378fc2dccc1a5bc54d3572e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ebbda0b1d5fdce1db828504afcff87badaeac284"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f0dd015ed8ced512f64b1fa320600b24c5161712"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138946.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138946"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"7d4b5ca2e2cb5d28db628ec79c706bcfa832feea"},{"fixed":"de1140a7619e6d056378fc2dccc1a5bc54d3572e"},{"fixed":"2e68745508945b9df5ad6715e89c3b9ecf3a6fa3"},{"fixed":"db31479fa303799673a0dfa4134a98ee953eef59"},{"fixed":"ebbda0b1d5fdce1db828504afcff87badaeac284"},{"fixed":"b0f54c804cc0f8ea47ffef685de9c01666233e43"},{"fixed":"f0dd015ed8ced512f64b1fa320600b24c5161712"},{"fixed":"371c2ad1624283b6c7a62a28199f5161d388a738"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138946.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.14.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138946.json"}}],"schema_version":"1.9.2"}