{"id":"CVE-2026-99455","aliases":["CVE-2026-99455"],"related":[],"kind":"vulnerability","state":"published","title":"serial: core: shut down initialized port on removal","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nserial: core: shut down initialized port on removal\n\nWhen a serial port configured as a console is opened and subsequently\nclosed, tty_port_shutdown() skips invoking port->ops->shutdown() because\nport->console is true. As a result, tty_port_initialized() remains true\nand the port's interrupt handler stays registered in the irq subsystem.\n\nIf the underlying device is later unbound or removed (e.g. via sysfs\ndriver unbind or device hot-unplug), serial_core_remove_one_port()\nunregisters the console, frees uport->name via kfree(), and tears down\nthe port without shutting it down or freeing its IRQ. Consequently, the\nirqaction descriptor remains registered in genirq with action->name\npointing to freed memory.\n\nThis triggers a use-after-free read whenever genirq accesses action->name,\nsuch as when reading /proc/interrupts:\n\n  BUG: KASAN: slab-use-after-free in string+0x476/0x570\n  Call Trace:\n   string+0x476/0x570\n   vsnprintf+0x422/0x1300\n   seq_printf+0x...\n   show_interrupts+...\n\nFix this by acquiring port->mutex in serial_core_remove_one_port() after\nconsole unregistration, clearing port->console under the mutex to prevent\ndata races with concurrent tty_port_shutdown(), and invoking\nuart_shutdown(NULL, state) if the port remains initialized. This ensures\nthat port->ops->shutdown() is called and the IRQ is freed before\nkfree(uport->name).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nserial: core: shut down initialized port on removal\n\nWhen a serial port configured as a console is opened and subsequently\nclosed, tty_port_shutdown() skips invoking port->ops->shutdown() because\nport->console is true. As a result, tty_port_initialized() remains true\nand the port's interrupt handler stays registered in the irq subsystem.\n\nIf the underlying device is later unbound or removed (e.g. via sysfs\ndriver unbind or device hot-unplug), serial_core_remove_one_port()\nunregisters the console, frees uport->name via kfree(), and tears down\nthe port without shutting it down or freeing its IRQ. Consequently, the\nirqaction descriptor remains registered in genirq with action->name\npointing to freed memory.\n\nThis triggers a use-after-free read whenever genirq accesses action->name,\nsuch as when reading /proc/interrupts:\n\n  BUG: KASAN: slab-use-after-free in string+0x476/0x570\n  Call Trace:\n   string+0x476/0x570\n   vsnprintf+0x422/0x1300\n   seq_printf+0x...\n   show_interrupts+...\n\nFix this by acquiring port->mutex in serial_core_remove_one_port() after\nconsole unregistration, clearing port->console under the mutex to prevent\ndata races with concurrent tty_port_shutdown(), and invoking\nuart_shutdown(NULL, state) if the port remains initialized. This ensures\nthat port->ops->shutdown() is called and the IRQ is freed before\nkfree(uport->name).","source":"cvelist"}],"published":"2026-11-19T14:41:55.354Z","modified":"2026-11-23T08:17:49.427Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"761ed4a94582ab291aa24dcbea4e01e8936488c8","fixed":"ab8b95daebb4109e454e1f10364aa38d978ca330","status":"affected"},{"type":"git","introduced":"761ed4a94582ab291aa24dcbea4e01e8936488c8","fixed":"8afa64b162759edfd491d1d768e0a020fcd05853","status":"affected"},{"type":"git","introduced":"761ed4a94582ab291aa24dcbea4e01e8936488c8","fixed":"fe1ed96339693654e96d99c980b122b6c4d65712","status":"affected"},{"type":"git","introduced":"761ed4a94582ab291aa24dcbea4e01e8936488c8","fixed":"1dcfb3e31d56deafddb8d0fea849838497581e62","status":"affected"},{"type":"git","introduced":"761ed4a94582ab291aa24dcbea4e01e8936488c8","fixed":"b05d5ed61e84ad15536e4e51db79a1d1c221c6f1","status":"affected"},{"type":"git","introduced":"761ed4a94582ab291aa24dcbea4e01e8936488c8","fixed":"0f332cce4d592d751aad89b404f68463099167c8","status":"affected"},{"type":"git","introduced":"761ed4a94582ab291aa24dcbea4e01e8936488c8","fixed":"928335263daf58e8c0e14d860091e57791693ea0","status":"affected"},{"type":"git","introduced":"761ed4a94582ab291aa24dcbea4e01e8936488c8","fixed":"810d467c11f0c85107874d08dfdd11acba6aa0c0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.9","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.9","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/ab8b95daebb4109e454e1f10364aa38d978ca330","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8afa64b162759edfd491d1d768e0a020fcd05853","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fe1ed96339693654e96d99c980b122b6c4d65712","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1dcfb3e31d56deafddb8d0fea849838497581e62","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b05d5ed61e84ad15536e4e51db79a1d1c221c6f1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0f332cce4d592d751aad89b404f68463099167c8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/928335263daf58e8c0e14d860091e57791693ea0","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/810d467c11f0c85107874d08dfdd11acba6aa0c0","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99455","url":"https://www.cve.org/CVERecord?id=CVE-2026-99455","licence":"CVE Terms of Use","modified":"2026-11-23T08:03:03.939Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99455","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99455","licence":"Public domain","modified":"2026-11-23T08:17:49.427Z"}],"updatedAt":"2026-11-25T22:59:52.076Z","epss":{"score":0.00211,"percentile":0.1202,"date":"2026-12-01T12:00:22.000Z"}}