In the Linux kernel, the following vulnerability has been resolved: serial: core: fix NULL pointer dereference in serial_core_unregister_port()… (CVE-2026-98747)
Description
A NULL pointer dereference vulnerability in the Linux kernel's serial core subsystem was resolved. The issue occurs in the function serial_core_unregister_port() when port->port_dev is NULL, leading to a potential kernel crash. The flaw arises because port->port_dev can be cleared on teardown or never set if registration fails, but the function attempts to dereference it without checking. The fix involves returning early if no port device is present and ensuring proper synchronization with port_mutex. Additionally, port->port_dev is cleared on error paths during registration to prevent this condition.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in the Linux kernel's serial core involves a NULL pointer dereference in serial_core_unregister_port(). Specifically, port->port_dev can be NULL if no port device is installed or if registration failed before serial_core_port_device_add(). The function serial_core_unregister_port() calls serial_core_get_ctrl_dev() with this NULL pointer, causing a kernel NULL pointer dereference detected by KASAN. The patch adds an early return when port->port_dev is NULL and ensures port->port_dev is read under port_mutex. It also clears port->port_dev on error paths during registration to prevent stale pointers.
Potential Impact
This vulnerability can cause a kernel NULL pointer dereference, leading to a denial of service via kernel crash. There is no indication of privilege escalation or code execution. The impact is limited to system stability and availability.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to address this issue by adding checks for NULL pointers and proper synchronization. Users should apply the official kernel updates containing this fix. No additional mitigations are indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-6854-f26p-xx8r
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98747"]
Threat ID: 6ad520ab2cdf04f6569939c9
Added to database: 10/18/2026, 19:40:27 UTC
Last enriched: 10/18/2026, 22:23:32 UTC
Last updated: 10/18/2026, 22:23:32 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.