GHSA-QMCQ-GJPG-537P
Vulnerability from github – Published: 2026-11-19 15:31 – Updated: 2026-11-19 15:31In the Linux kernel, the following vulnerability has been resolved:
serial: core: shut down initialized port on removal
When a serial port configured as a console is opened and subsequently closed, tty_port_shutdown() skips invoking port->ops->shutdown() because port->console is true. As a result, tty_port_initialized() remains true and the port's interrupt handler stays registered in the irq subsystem.
If the underlying device is later unbound or removed (e.g. via sysfs driver unbind or device hot-unplug), serial_core_remove_one_port() unregisters the console, frees uport->name via kfree(), and tears down the port without shutting it down or freeing its IRQ. Consequently, the irqaction descriptor remains registered in genirq with action->name pointing to freed memory.
This triggers a use-after-free read whenever genirq accesses action->name, such as when reading /proc/interrupts:
BUG: KASAN: slab-use-after-free in string+0x476/0x570 Call Trace: string+0x476/0x570 vsnprintf+0x422/0x1300 seq_printf+0x... show_interrupts+...
Fix this by acquiring port->mutex in serial_core_remove_one_port() after console unregistration, clearing port->console under the mutex to prevent data races with concurrent tty_port_shutdown(), and invoking uart_shutdown(NULL, state) if the port remains initialized. This ensures that port->ops->shutdown() is called and the IRQ is freed before kfree(uport->name).
{
"affected": [],
"aliases": [
"CVE-2026-99455"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-19T15:17:59Z",
"severity": null
},
"details": "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-\u003eops-\u003eshutdown() because\nport-\u003econsole is true. As a result, tty_port_initialized() remains true\nand the port\u0027s 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-\u003ename 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-\u003ename\npointing to freed memory.\n\nThis triggers a use-after-free read whenever genirq accesses action-\u003ename,\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-\u003emutex in serial_core_remove_one_port() after\nconsole unregistration, clearing port-\u003econsole 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-\u003eops-\u003eshutdown() is called and the IRQ is freed before\nkfree(uport-\u003ename).",
"id": "GHSA-qmcq-gjpg-537p",
"modified": "2026-11-19T15:31:25Z",
"published": "2026-11-19T15:31:25Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99455"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/0f332cce4d592d751aad89b404f68463099167c8"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/810d467c11f0c85107874d08dfdd11acba6aa0c0"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/928335263daf58e8c0e14d860091e57791693ea0"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/b05d5ed61e84ad15536e4e51db79a1d1c221c6f1"
}
],
"schema_version": "1.4.0",
"severity": []
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.