{"id":"CVE-2026-99455","state":"PUBLISHED","title":"serial: core: shut down initialized port on removal","description":"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).","publishedAt":"2026-11-19T14:41:55.354Z","updatedAt":"2026-11-19T14:41:55.354Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"761ed4a94582ab291aa24dcbea4e01e8936488c8","status":"affected","lessThan":"b05d5ed61e84ad15536e4e51db79a1d1c221c6f1","versionType":"git"},{"version":"761ed4a94582ab291aa24dcbea4e01e8936488c8","status":"affected","lessThan":"0f332cce4d592d751aad89b404f68463099167c8","versionType":"git"},{"version":"761ed4a94582ab291aa24dcbea4e01e8936488c8","status":"affected","lessThan":"928335263daf58e8c0e14d860091e57791693ea0","versionType":"git"},{"version":"761ed4a94582ab291aa24dcbea4e01e8936488c8","status":"affected","lessThan":"810d467c11f0c85107874d08dfdd11acba6aa0c0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/serial/serial_core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.9","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/serial/serial_core.c"]}],"references":["https://git.kernel.org/stable/c/b05d5ed61e84ad15536e4e51db79a1d1c221c6f1","https://git.kernel.org/stable/c/0f332cce4d592d751aad89b404f68463099167c8","https://git.kernel.org/stable/c/928335263daf58e8c0e14d860091e57791693ea0","https://git.kernel.org/stable/c/810d467c11f0c85107874d08dfdd11acba6aa0c0"],"weaknesses":[],"ingestedAt":"2026-11-19T14:48:06.147Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99455.json","commit":"783f6d4140a34eaf92c5bfee971cfe497fa6394e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99455","state":"PUBLISHED","datePublished":"2026-11-19T14:41:55.354Z","dateUpdated":"2026-11-19T14:41:55.354Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.416Z"},"containers":{"cna":{"title":"serial: core: shut down initialized port on removal","descriptions":[{"lang":"en","value":"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)."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"761ed4a94582ab291aa24dcbea4e01e8936488c8","status":"affected","lessThan":"b05d5ed61e84ad15536e4e51db79a1d1c221c6f1","versionType":"git"},{"version":"761ed4a94582ab291aa24dcbea4e01e8936488c8","status":"affected","lessThan":"0f332cce4d592d751aad89b404f68463099167c8","versionType":"git"},{"version":"761ed4a94582ab291aa24dcbea4e01e8936488c8","status":"affected","lessThan":"928335263daf58e8c0e14d860091e57791693ea0","versionType":"git"},{"version":"761ed4a94582ab291aa24dcbea4e01e8936488c8","status":"affected","lessThan":"810d467c11f0c85107874d08dfdd11acba6aa0c0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/serial/serial_core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.9","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.9","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/tty/serial/serial_core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b05d5ed61e84ad15536e4e51db79a1d1c221c6f1"},{"url":"https://git.kernel.org/stable/c/0f332cce4d592d751aad89b404f68463099167c8"},{"url":"https://git.kernel.org/stable/c/928335263daf58e8c0e14d860091e57791693ea0"},{"url":"https://git.kernel.org/stable/c/810d467c11f0c85107874d08dfdd11acba6aa0c0"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-19T14:41:55.354Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}