# CVE-2026-139639: serial: 8250_mxpcie: only unregister the ports that were registered

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-11-30T13:36:36.456Z
- Modified: 2026-11-30T14:19:47.253Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

serial: 8250_mxpcie: only unregister the ports that were registered

When serial8250_register_8250_port() fails the loop stops and the probe
keeps the ports registered so far, like pciserial_init_ports() in
8250_pci.c this driver was split from.  What the split lost is that
function's priv->nr: mxpcie8250_remove() walks all num_ports entries,
but the ones the loop never reached keep the zero devm_kzalloc() left
there, and the one that failed keeps a negative error code.

serial8250_unregister_port() checks neither, so removal unregisters
line 0 - a port this driver does not own - and indexes
serial8250_ports[] with a negative line number.

Record how many ports were registered and unregister only those.

(As written by CVE List.)

## Affected

- Linux Linux: from 0481a041e9569dfc2448ba4c6cb30335fcb8430f before 634489424217836868b6c7c379c8b1470f6f9c61; from 0481a041e9569dfc2448ba4c6cb30335fcb8430f before 39eaa90b6bd1dbe147c90c345796bc042080d80e; 7.3 (not affected: before 7.3; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/634489424217836868b6c7c379c8b1470f6f9c61>
- <https://git.kernel.org/stable/c/39eaa90b6bd1dbe147c90c345796bc042080d80e>

## Sources

- CVE List: [CVE-2026-139639](https://www.cve.org/CVERecord?id=CVE-2026-139639), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139639](https://nvd.nist.gov/vuln/detail/CVE-2026-139639), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139639 · Whole record: https://cve.day/CVE-2026-139639.json · Rebuilt by cve.day 2026-11-30T14:33:08.561Z
