{"id":"CVE-2026-139639","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-11-30T14:19:47.253","lastModified":"2026-11-30T14:19:47.253","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"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->nr: 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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/tty/serial/8250/8250_mxpcie.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"0481a041e9569dfc2448ba4c6cb30335fcb8430f","lessThan":"634489424217836868b6c7c379c8b1470f6f9c61","versionType":"git","status":"affected"},{"version":"0481a041e9569dfc2448ba4c6cb30335fcb8430f","lessThan":"39eaa90b6bd1dbe147c90c345796bc042080d80e","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/tty/serial/8250/8250_mxpcie.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"7.3","status":"affected"},{"version":"0","lessThan":"7.3","versionType":"semver","status":"unaffected"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/39eaa90b6bd1dbe147c90c345796bc042080d80e","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/634489424217836868b6c7c379c8b1470f6f9c61","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}