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-98008 Overview
CVE-2026-98008 is a NULL pointer dereference vulnerability in the Linux kernel's Cadence MACB Ethernet driver (drivers/net/ethernet/cadence/macb_main.c). When a device tree describes a fixed-link interface without an mdio child node, macb_mii_init() returns early without allocating the MDIO bus. This leaves the bp->mii_bus pointer set to NULL. Two cleanup paths subsequently dereference this NULL pointer: the macb_remove() function on driver unbind, and the err_out_unregister_mdio label in the probe error path. Both call mdiobus_unregister() and mdiobus_free() without guarding against a NULL bus, triggering a kernel oops.
Critical Impact
Local users with sufficient privileges to unbind the macb driver can trigger a kernel oops on systems using fixed-link Ethernet configurations, resulting in denial of service.
Affected Products
- Linux kernel versions containing the vulnerable macb_main.c driver code
- Systems using the Cadence MACB Ethernet controller with fixed-link device tree configuration
- Embedded platforms with MACB-based network interfaces lacking an mdio child node
Discovery Timeline
- 2026-09-25 - CVE-2026-98008 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-98008
Vulnerability Analysis
The vulnerability resides in the Cadence MACB Ethernet driver initialization and cleanup logic. When a device tree declares a fixed-link PHY and omits the mdio child node, macb_mii_init() takes an early-return path that never allocates an MDIO bus structure. The bp->mii_bus field remains NULL as a result.
Two distinct cleanup paths assume the MDIO bus was allocated successfully. The macb_remove() function unconditionally invokes mdiobus_unregister(bp->mii_bus) on driver unbind. The probe error-handling path reaches the err_out_unregister_mdio label when macb_mii_init() succeeds but a later probe step fails, invoking the same unconditional cleanup.
Neither mdiobus_unregister() nor mdiobus_free() guards against a NULL bus argument. Dereferencing the NULL pointer at offset 0x4a8 produces a kernel oops, as shown in the reported call trace involving mdiobus_unregister+0x14/0xa4 called from macb_remove+0x38/0xa4 via platform_remove and unbind_store.
Root Cause
The root cause is a missing NULL check in two cleanup paths of the macb driver. The code assumed that bp->mii_bus would always be populated after macb_mii_init() returned successfully, but the fixed-link code path bypasses MDIO bus allocation entirely while still returning success. This classifies as a NULL Pointer Dereference [CWE-476] in kernel code.
Attack Vector
An attacker requires local access with privileges to unbind the macb driver via sysfs (for example, writing to /sys/bus/platform/drivers/macb/unbind). On affected embedded systems with fixed-link Ethernet configurations, triggering unbind produces a kernel oops. The condition is also reachable during boot if the macb probe fails after macb_mii_init() succeeds, causing the error cleanup path to crash the kernel during driver initialization.
The vulnerability does not enable code execution or privilege escalation. Impact is limited to denial of service through kernel oops on affected hardware configurations.
Detection Methods for CVE-2026-98008
Indicators of Compromise
- Kernel oops messages referencing mdiobus_unregister+0x14/0xa4 in the call trace
- NULL pointer dereference at virtual address 0x00000000000004a8 originating from macb_remove
- System crashes or hangs following macb driver unbind operations on fixed-link platforms
Detection Strategies
- Audit device tree sources for macb nodes that declare fixed-link without an mdio child node
- Review kernel versions deployed on embedded Linux platforms using Cadence MACB Ethernet controllers
- Correlate kernel panic logs with recent driver unbind events on affected hardware
Monitoring Recommendations
- Collect kernel ring buffer output (dmesg) from embedded devices and forward to centralized logging
- Alert on kernel oops or panic events referencing macb_remove or mdiobus_unregister symbols
- Monitor sysfs write activity targeting platform driver unbind interfaces on production systems
How to Mitigate CVE-2026-98008
Immediate Actions Required
- Apply the upstream kernel patches to affected systems as soon as vendor-supported builds are available
- Restrict root and privileged shell access to systems running vulnerable macb driver versions
- Avoid driver unbind operations on fixed-link macb configurations until patches are deployed
Patch Information
The fix adds NULL guards around mdiobus_unregister() and mdiobus_free() calls in both macb_remove() and the probe error path. Upstream patches are available in the stable kernel tree: Kernel Patch 38b6be101006, Kernel Patch 5710f6a74f63, Kernel Patch edb39c7666bb, and Kernel Patch f737d999fcb8.
Workarounds
- Restrict write access to /sys/bus/platform/drivers/macb/unbind through filesystem permissions or Linux Security Module policy
- Modify affected device trees to include a minimal mdio child node where feasible, forcing the MDIO bus allocation path
- Disable or remove unbind capability for the macb driver on production embedded systems that do not require runtime driver removal
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

