Skip to main content
Vulnerability Database/CVE-2026-97972

CVE-2026-97972: Linux Kernel Privilege Escalation Vulnerability

CVE-2026-97972 is a privilege escalation flaw in the Linux kernel affecting the macb network driver, causing memory leaks through improper node reference handling. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-97972 Overview

CVE-2026-97972 is a resource management vulnerability in the Linux kernel's Cadence MACB Ethernet driver (drivers/net/ethernet/cadence/macb_main.c). The macb_mii_init() function obtains a reference to the mdio child device-tree node via of_get_child_by_name() but releases it only on error paths. Every successful probe leaks one device-tree node reference. The leak becomes observable when drivers using device-tree overlays are repeatedly bound and unbound, producing OF (Open Firmware) refcount warnings and preventing clean overlay removal.

Critical Impact

Repeated bind cycles of the macb driver through device-tree overlays leak node references, blocking overlay teardown and exhausting kernel object references over time.

Affected Products

  • Linux kernel versions containing the macb Ethernet driver prior to the fix commits
  • Platforms using Cadence MACB/GEM Ethernet controllers such as the Raspberry Pi Compute Module 5 (CM5)
  • Systems relying on device-tree overlays to bind and unbind the macb driver

Discovery Timeline

  • 2026-09-25 - CVE-2026-97972 published to the National Vulnerability Database (NVD)
  • 2026-09-25 - Last updated in NVD database

Technical Details for CVE-2026-97972

Vulnerability Analysis

The defect is a kernel memory leak classified as a device-tree node reference leak. In macb_mii_init(), the driver calls of_get_child_by_name() to locate the mdio subnode and passes it to macb_mdiobus_register(). Once __mdiobus_register() returns successfully, it holds its own reference to the node for the lifetime of the bus. The original reference taken by macb_mii_init() is never released on the success path.

On a CM5, repeated overlay bind and unbind cycles exposed the leak with the kernel log message OF: ERROR: memory leak, expected refcount 1 instead of 5 after four bind cycles. The imbalance prevents the device-tree node from being freed and blocks clean overlay removal.

Root Cause

The root cause is unbalanced reference counting on a kernel object. of_get_child_by_name() increments the reference count of the returned device_node, and callers must release that reference with of_node_put() when they no longer need direct access. The original code only invoked of_node_put() along error paths, so every successful probe left one surplus reference held by the driver.

Attack Vector

Triggering the condition requires local privileges to load, unload, or re-bind the macb driver, typically through device-tree overlay operations. The vulnerability does not provide code execution or privilege escalation. The practical impact is resource exhaustion and functional breakage of overlay management on affected platforms. No remote attack vector exists.

See the upstream fixes for the exact code change: Kernel Git Commit 382a373d, Kernel Git Commit 5fba3008, and Kernel Git Commit 7d60dc7f.

Detection Methods for CVE-2026-97972

Indicators of Compromise

  • Kernel log entries of the form OF: ERROR: memory leak, expected refcount 1 instead of N referencing an mdio child node.
  • Failed or incomplete device-tree overlay removal after repeated bind cycles of the macb driver.
  • Growing kernel object counts tied to device_node references on platforms using Cadence MACB controllers.

Detection Strategies

  • Audit running kernel versions against the fixed stable branches listed in the kernel.org commits.
  • Inspect dmesg for OF refcount warnings following macb driver bind, unbind, or overlay operations.
  • On development and test rigs, exercise overlay bind cycles and monitor for refcount drift to confirm whether the fix is present.

Monitoring Recommendations

  • Forward kernel logs from embedded and edge devices to a centralized logging system and alert on OF: ERROR strings.
  • Track kernel package versions across fleets to confirm patch adoption on devices built around Cadence MACB Ethernet IP.
  • Include driver bind and unbind telemetry in long-running soak tests for platforms that rely on device-tree overlays.

How to Mitigate CVE-2026-97972

Immediate Actions Required

  • Upgrade affected systems to a Linux kernel release that includes the upstream fix for macb_mii_init() reference handling.
  • On embedded platforms such as the Raspberry Pi CM5, apply the vendor kernel update that backports the fix.
  • Avoid repeated overlay bind and unbind cycles on unpatched kernels where the leak would accumulate.

Patch Information

The fix drops the mdio child node reference after macb_mdiobus_register() succeeds, mirroring the error-path cleanup. The patch is available in the following upstream commits: Kernel Git Commit 382a373d, Kernel Git Commit 5fba3008, and Kernel Git Commit 7d60dc7f.

Workarounds

  • Reboot affected devices to reset leaked node references when overlay removal fails.
  • Restrict device-tree overlay operations to maintenance windows until patched kernels are deployed.
  • Where feasible, keep the macb driver statically bound rather than cycling it through overlays on unpatched kernels.
bash
# Verify the running kernel version and check for the fix
uname -r

# Inspect kernel logs for OF reference-count warnings
dmesg | grep -i "OF: ERROR"

# After updating, confirm the macb driver loads cleanly
modprobe macb && dmesg | tail -n 20

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.