{"id":"CVE-2026-139639","summary":"serial: 8250_mxpcie: only unregister the ports that were registered","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nserial: 8250_mxpcie: only unregister the ports that were registered\n\nWhen serial8250_register_8250_port() fails the loop stops and the probe\nkeeps the ports registered so far, like pciserial_init_ports() in\n8250_pci.c this driver was split from.  What the split lost is that\nfunction's priv-\u003enr: mxpcie8250_remove() walks all num_ports entries,\nbut the ones the loop never reached keep the zero devm_kzalloc() left\nthere, and the one that failed keeps a negative error code.\n\nserial8250_unregister_port() checks neither, so removal unregisters\nline 0 - a port this driver does not own - and indexes\nserial8250_ports[] with a negative line number.\n\nRecord how many ports were registered and unregister only those.","modified":"2026-12-01T21:02:34.608550043Z","published":"2026-11-30T13:36:36.456Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139639.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/39eaa90b6bd1dbe147c90c345796bc042080d80e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/634489424217836868b6c7c379c8b1470f6f9c61"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139639.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139639"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0481a041e9569dfc2448ba4c6cb30335fcb8430f"},{"fixed":"634489424217836868b6c7c379c8b1470f6f9c61"},{"fixed":"39eaa90b6bd1dbe147c90c345796bc042080d80e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139639.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.3.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139639.json"}}],"schema_version":"1.9.2"}