{"id":"CVE-2026-98748","summary":"serial: 8250_bcm7271: fix use-after-free in brcmuart_remove()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nserial: 8250_bcm7271: fix use-after-free in brcmuart_remove()\n\nbrcmuart_handle_irq() starts priv-\u003ehrt to work around a receive-timeout\nquirk of the 8250 core when hardware flow control is enabled; the timer\ncallback brcmuart_hrtimer_func() dereferences priv.\n\nbrcmuart_remove() cancels the hrtimer before it unregisters the port, so\na receive-timeout interrupt that arrives in between re-arms the timer.\nAfter devm frees priv, the callback runs on freed memory.\n\nUnregister the port before cancelling the hrtimer.\nserial8250_unregister_port() shuts the port down and frees its IRQ, so\nbrcmuart_handle_irq() can no longer restart the timer, and the final\nhrtimer_cancel() drains any timer that was armed before or during the\nunregister.\n\nThis issue was found by an in-house static analysis tool.","modified":"2026-10-20T02:30:50.912972400Z","published":"2026-10-18T15:47:33.446Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98748.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0794ba5332754866b2f1c0cca668775be3ffcf0a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/189b9dc8c96ec9486482f27c1372b04a7152175e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e32440fa536af96bdbc61d933a7c3a920b965edc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f5ce06e648d775cc1ccf66f4f594bb8b559a7d8e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98748.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98748"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"41a469482de257ea8db43cf74b6311bd055de030"},{"fixed":"f5ce06e648d775cc1ccf66f4f594bb8b559a7d8e"},{"fixed":"e32440fa536af96bdbc61d933a7c3a920b965edc"},{"fixed":"0794ba5332754866b2f1c0cca668775be3ffcf0a"},{"fixed":"189b9dc8c96ec9486482f27c1372b04a7152175e"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98748.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.13.0"},{"fixed":"6.12.113"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.56"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.10"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98748.json"}}],"schema_version":"1.9.0"}