bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-100072

7.8high

linux6.18.60 · 6.18.54 · 6.18.8 · 6.12.21in 4 of 4 releases

Reach linux · 8 builds in 4 of 4 releases

full reviewcross-check✓ a member decided

Description · NVD

ACPI: platform: Use acpi_bus_get_primary_device()

The acpi_get_first_physical_node() usage in acpi_platform_fill_resource() and acpi_create_platform_device() is generally unsafe because in theory the device returned by it may be freed at any time [1].

It is also inefficient because acpi_get_first_physical_node() is called multiple times for the same argument which can be avoided.

Address these issues by using acpi_bus_get_primary_device() instead of acpi_get_first_physical_node() and adjusting the code to call it just once at the beginning of and acpi_create_platform_device() and drop the device reference acquired by it upon the return from that function.

Published 2026-09-25NVD

CVSS 3.1Local · low privileges · no user interaction

How it is reached

Attack vector
Local
Attack complexity
Low
Privileges required
Low
User interaction
None

What it costs

Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

References 4
Review Bv26.10.0x86_64Exposed by default✓ accepted by a member, 2026-11-18 · settles 4 of 8

Fable 5.1 · high confidence · 2026-11-12

The fix is not in this tree: output/build/linux-6.18.60/drivers/acpi/acpi_platform.c still calls acpi_get_first_physical_node() in both acpi_platform_fill_resource() (line 122) and acpi_create_platform_device() (line 209), and none of the 139 applied patches touch ACPI. The prerequisite helper acpi_bus_get_primary_device() already exists in drivers/acpi/bus.c:774, so the upstream fix commit should apply cleanly as a backport.

The file is compiled unconditionally under CONFIG_ACPI=y (drivers/acpi/Makefile:53, output/build/linux-6.18.60/.config:530) and acpi_create_platform_device() is invoked for every ACPI namespace device during the boot-time scan (drivers/acpi/scan.c:2209 via acpi_default_enumeration() from acpi_scan_init() / acpi_bus_scan(ACPI_ROOT_OBJECT) at scan.c:2736), so the affected code path runs on every boot of the x86_64 image with no configuration involved. It is also re-entered on ACPI hotplug rescans (CONFIG_ACPI_HOTPLUG_CPU, CONFIG_ACPI_CONTAINER enabled).

The bug is a theoretical use-after-free race: the parent physical device returned without a reference could be unbound/freed concurrently with platform device creation. Triggering it requires local privileged interaction (device unbind/hotplug) and it is not reachable from any network interface, which is reflected in the CVSS AV:L/PR:L vector.

Evidence 10
  1. acpi_platform_fill_resource() still uses acpi_get_first_physical_node() — vulnerable pre-fix code

    output/build/linux-6.18.60/drivers/acpi/acpi_platform.c:122

  2. acpi_create_platform_device() still uses acpi_get_first_physical_node() for pdevinfo.parent — vulnerable pre-fix code

    output/build/linux-6.18.60/drivers/acpi/acpi_platform.c:209

  3. acpi_bus_get_primary_device() helper exists, so the fix commit is a straightforward backport

    output/build/linux-6.18.60/drivers/acpi/bus.c:774

  4. No applied patch mentions ACPI or acpi_platform.c

    output/build/linux-6.18.60/.applied_patches_list

  5. BR2_LINUX_KERNEL=y, version 6.18.60 — kernel is a target package

    output/.config:445, output/.config:455

  6. CONFIG_ACPI=y (x86_64 default; board/x86_64/linux_defconfig does not disable it)

    output/build/linux-6.18.60/.config:530

  7. acpi-y += acpi_platform.o — compiled unconditionally with ACPI; also listed in output/objects.txt

    output/build/linux-6.18.60/drivers/acpi/Makefile:53

  8. acpi_default_enumeration() calls acpi_create_platform_device() for every enumerated ACPI device

    output/build/linux-6.18.60/drivers/acpi/scan.c:2209

  9. acpi_scan_init() runs acpi_bus_scan(ACPI_ROOT_OBJECT) at boot, so the path executes on every boot without any operator configuration

    output/build/linux-6.18.60/drivers/acpi/scan.c:2736

  10. CONFIG_ACPI_HOTPLUG_CPU=y, CONFIG_ACPI_CONTAINER=y — hotplug rescans also re-enter the path

    output/build/linux-6.18.60/.config:554, :562

Version and patches

Upstream fix: "ACPI: platform: Use acpi_bus_get_primary_device()" (stable refs 527a497f, a75e5de5, a9ba4dd2, c9d202d3). Not present in linux 6.18.60 as unpacked and patched in this tree; no Buildroot or Infix patch addresses it (no ACPI entries in .applied_patches_list, no IGNORE_CVES). NVD CPE match on 6.18.60 is correct.

Recommendation

Backport the upstream fix commit to drivers/acpi/acpi_platform.c (the acpi_bus_get_primary_device() helper is already in the tree, so the patch should apply cleanly), or move to the next 6.18.y stable release that includes it. Severity in practice is moderate: the race needs local privileged device unbind/hotplug activity concurrent with ACPI enumeration and has no network exposure, so this can ride the regular kernel bump rather than an emergency release.

Open questions

Which 6.18.y stable release first ships the fix could not be determined from the tree (only the stable commit hashes are referenced). Whether the race is practically winnable on the shipped hardware was not assessed, per scope.

Review Av26.10.0aarch64_minimalNot exposedAccepted by a member, 2026-11-18. The fix is absent: drivers/acpi/acpi_platform.c in this tree still calls acpi_get_first_physical_node() in acpi_platform_fill_resource() and acpi_create_platform_device(), no applied patch touches ACPI, and CONFIG_ACPI=y so acpi_platform.o is compiled in.Open the review →

Members of Kernel Kit decide. Sign in if you are one.