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-97480 Overview
CVE-2026-97480 is a NULL pointer dereference vulnerability in the Linux kernel's 8250 serial driver. The flaw resides in serial8250_register_8250_port() within drivers/tty/serial/8250/8250_core.c. The function conditionally copies up->port.dev to uart->port.dev only when the source is non-NULL. A subsequent call to has_acpi_companion(uart->port.dev) dereferences the pointer unconditionally, reading dev->fwnode without a NULL guard. When both the existing uart slot and the incoming up structure contain a NULL ->dev, the kernel crashes rather than skipping the intended mctrl_gpio_init() initialization. The issue affects legacy non-OF and non-ACPI registrations.
Critical Impact
Local triggering of this NULL dereference crashes the kernel, resulting in denial of service for systems registering 8250 serial ports without a parent device.
Affected Products
- Linux kernel (upstream, affected versions pending stable backport metadata)
- Linux distributions shipping the 8250 serial driver (drivers/tty/serial/8250/8250_core.c)
- Systems performing legacy non-OpenFirmware (OF) or non-ACPI serial port registrations
Discovery Timeline
- 2026-09-24 - CVE-2026-97480 published to NVD
- 2026-09-28 - Last updated in NVD database
Technical Details for CVE-2026-97480
Vulnerability Analysis
The defect lives in the 8250 UART registration path. serial8250_register_8250_port() manages a global pool of UART slots. When a caller requests registration via a populated uart_8250_port structure, the function updates fields on the matching slot. The parent device assignment is guarded:
If up->port.dev is non-NULL, the code copies the pointer into uart->port.dev and performs related setup. If up->port.dev is NULL, the slot retains whatever value it previously held, which can also be NULL.
The immediate next step calls has_acpi_companion(uart->port.dev) to decide whether to initialize modem-control GPIOs. That helper, defined in include/linux/acpi.h, dereferences dev->fwnode without checking the pointer. The result is a kernel NULL pointer dereference on the no-device path. The static analyzer smatch flagged the inconsistency at drivers/tty/serial/8250/8250_core.c:767, warning that uart->port.dev could be null based on the branch at line 719.
Root Cause
The root cause is a missing NULL guard on uart->port.dev between the conditional assignment and the ACPI companion check. The author of the ACPI check assumed the preceding block had unconditionally populated uart->port.dev, but the assignment only runs when the source pointer is non-NULL. Legacy platform code paths that register 8250 ports without binding a parent struct device therefore reach the dereference with a NULL pointer.
Attack Vector
Triggering the fault requires local kernel-mode activity. A loadable kernel module or in-tree driver that calls serial8250_register_8250_port() with a uart_8250_port containing a NULL port.dev, targeting a slot that also has no device, will crash the host. Standard distributions with device-tree or ACPI enumeration are not reached by the vulnerable path, which narrows exposure to legacy or embedded configurations.
The vulnerability is a kernel-side logic error with no verified public exploit code. See the upstream fix at Linux Kernel Commit 5cbab666 and Linux Kernel Commit 941c9f84.
Detection Methods for CVE-2026-97480
Indicators of Compromise
- Kernel oops or panic logs referencing serial8250_register_8250_port in the call stack.
- BUG: unable to handle kernel NULL pointer dereference messages pointing to has_acpi_companion or drivers/tty/serial/8250/8250_core.c.
- Unexpected reboots on systems that load drivers depending on 8250 registration shortly after boot.
Detection Strategies
- Audit loaded kernel modules that call serial8250_register_8250_port() and verify they populate a non-NULL parent device.
- Run smatch or equivalent static analyzers against the kernel tree to confirm the fix is applied and no regression reintroduces the branch inconsistency.
- Compare running kernel version and patch level against the upstream stable commits linked in the advisory.
Monitoring Recommendations
- Forward /var/log/kern.log and dmesg output to a centralized log platform and alert on NULL pointer dereference signatures.
- Track kernel version drift across the fleet so unpatched hosts become visible after upstream backports land.
- Monitor crash dumps (kdump, pstore) for repeated faults in the 8250 code path, which can indicate exposure.
How to Mitigate CVE-2026-97480
Immediate Actions Required
- Apply vendor-supplied kernel updates that include the upstream fix guarding the ACPI companion check with a NULL test.
- Inventory systems using legacy 8250 serial registration paths without OF or ACPI enumeration and prioritize them for patching.
- Restrict loading of untrusted kernel modules that can call the affected registration function.
Patch Information
The upstream fix adds a NULL check before invoking has_acpi_companion(uart->port.dev), preserving the intent that systems without a parent device simply skip mctrl_gpio_init(). The change produces no functional change for callers passing a non-NULL ->dev. Patches are available at Linux Kernel Commit 5cbab666 and Linux Kernel Commit 941c9f84. Rebuild and deploy kernels incorporating these commits, or install distribution packages that backport them.
Workarounds
- Ensure every caller of serial8250_register_8250_port() supplies a non-NULL port.dev, which avoids the vulnerable branch.
- Disable or avoid loading drivers that perform legacy non-OF/non-ACPI 8250 registrations until the patch is applied.
- Where feasible, build kernels without CONFIG_SERIAL_8250 on systems that do not require 8250 UART support.
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

