# CVE-2026-98747: serial: core: fix NULL pointer dereference in serial\_core\_unregister\_port()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 5, 2026-11-26)
- **Published:** 2026-10-18T15:47:32.607Z
- **Modified:** 2026-10-19T10:19:38.883Z

## Who should check

- Anyone running Linux \>= 84a9582fd203063cd4d301204971ff2cd8327f1a, \< 54abbb862366dcaf1f22f1e968358147b7d0547d; \>= 84a9582fd203063cd4d301204971ff2cd8327f1a, \< 499485a67fbacf4d9afbdb43522388c64f853428
- Anyone running Linux 6.5

## Description

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 and fixed versions

- Linux: \>= 84a9582fd203063cd4d301204971ff2cd8327f1a, \< 54abbb862366dcaf1f22f1e968358147b7d0547d; \>= 84a9582fd203063cd4d301204971ff2cd8327f1a, \< 499485a67fbacf4d9afbdb43522388c64f853428 (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- Upgrade Linux to 499485a67fbacf4d9afbdb43522388c64f853428 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98747. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98747.md
Affected: Linux >= 84a9582fd203063cd4d301204971ff2cd8327f1a, < 54abbb862366dcaf1f22f1e968358147b7d0547d; >= 84a9582fd203063cd4d301204971ff2cd8327f1a, < 499485a67fbacf4d9afbdb43522388c64f853428; Linux 6.5
Fixed in: Linux 54abbb862366dcaf1f22f1e968358147b7d0547d, Linux 499485a67fbacf4d9afbdb43522388c64f853428

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98747 being exploited?

There is no confirmed exploitation: CVE-2026-98747 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98747?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98747?

Linux \>= 84a9582fd203063cd4d301204971ff2cd8327f1a, \< 54abbb862366dcaf1f22f1e968358147b7d0547d; \>= 84a9582fd203063cd4d301204971ff2cd8327f1a, \< 499485a67fbacf4d9afbdb43522388c64f853428; Linux 6.5.

### Is there a fix for CVE-2026-98747?

Yes. Fixed in Linux 54abbb862366dcaf1f22f1e968358147b7d0547d, Linux 499485a67fbacf4d9afbdb43522388c64f853428. Upgrade Linux to 499485a67fbacf4d9afbdb43522388c64f853428 or later.

### How do I check if I'm affected by CVE-2026-98747?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/54abbb862366dcaf1f22f1e968358147b7d0547d>
- other: <https://git.kernel.org/stable/c/499485a67fbacf4d9afbdb43522388c64f853428>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98747>

HTML: <https://flawdb.com/CVE-2026-98747> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98747>
