CVE-2026-98747
NoneCVSS
—
EPSS
0.2%
Published
Oct 18, 2026
CISA due date
—
Cloudanix analysis
A flaw in how Linux manages certain hardware ports can make the system crash when that hardware is added or removed incorrectly.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- OS kernel
- Class
- Memory Corruption
- Remediation
- Patch
- Effort
- Low
- Patch risk
- Low
What it actually does
NULL pointer dereference in serial_core_unregister_port when port->port_dev is NULL due to registration failure or teardown, leading to kernel crash via KASAN null-ptr-deref.
Why it matters to the business
Potential denial-of-service through system instability or crashes on Linux systems handling serial ports, though low exploitability and recent publication limit immediate operational risk.
How an attack unfolds
An attacker with local access triggers a serial port registration failure path followed by unregistration (e.g., via unbind_store or device removal) to dereference a cleared port_dev pointer under serial8250 handling.
How to fix it
Apply the upstream kernel patch that adds an early return for NULL port_dev, clears port_dev on register error paths, and reads under port_mutex; rebuild and deploy updated kernel images.
How to confirm the fix worked
Verify kernel source contains the early-return and mutex-protected checks in serial_core_unregister_port; test with serial8250 registration failure scenarios and confirm absence of KASAN reports.
Typical attack path
- Cause serial_core_register_port to fail before serial_core_port_device_add
- Invoke serial_core_unregister_port via device unbind or driver removal
- Trigger NULL dereference in serial_core_get_ctrl_dev under missing port_mutex protection
How to detect it
Inspect kernel logs and KASAN reports for mentions of serial_core_unregister_port, serial8250_unregister_port, serial8250_remove, or null-ptr-deref at low addresses; correlate with device unbind events.
- KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047]
- RIP: serial_core_unregister_port
- Call Trace: serial8250_unregister_port
- serial_core_get_ctrl_dev
What your security team should do
- Monitor for kernel updates addressing serial core NULL dereference
- Prioritize patching on systems exposing serial devices to untrusted users
- Review device driver unbind paths for similar port handling issues
The record
In the Linux kernel, the following vulnerability has been resolved: serial: core: fix NULL pointer dereference in serial_core_unregister_port() port->port_dev is NULL when no port device is installed: it is cleared on teardown, and never set if registration failed before serial_core_port_device_add(). serial_core_unregister_port() passes it straight to serial_core_get_ctrl_dev(), which dereferences it: KASAN: null-ptr-deref in range [0x0000000000000040-0x0000000000000047] RIP: serial_core_unregister_port Call Trace: serial8250_unregister_port serial8250_remove unbind_store Return early when there is no port device, and read port->port_dev under port_mutex. Also clear port->port_dev on the serial_core_register_port() error path, where the port device has already been removed.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|