serial: 8250_bcm7271: fix use-after-free in brcmuart_remove()
In the Linux kernel, the following vulnerability has been resolved: serial: 8250_bcm7271: fix use-after-free in brcmuart_remove() brcmuart_handle_irq() starts priv->hrt to work around a receive-timeout quirk of the 8250 core when hardware flow control is enabled; the timer callback brcmuart_hrtimer_func() dereferences priv. brcmuart_remove() cancels the hrtimer before it unregisters the port, so a receive-timeout interrupt that arrives in between re-arms the timer. After devm frees priv, the callback runs on freed memory. Unregister the port before cancelling the hrtimer. serial8250_unregister_port() shuts the port down and frees its IRQ, so brcmuart_handle_irq() can no longer restart the timer, and the final hrtimer_cancel() drains any timer that was armed before or during the unregister. This issue was found by an in-house static analysis tool.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.224, 6.1.191, 6.12.113, 6.18.56, 6.6.160, 7.2.10
- CVEs
- CVE-2026-98748
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 23:53 UTC · Revision 1
Source evidence
serial: 8250_bcm7271: fix use-after-free in brcmuart_remove()
core-osv · Original sourcePublished 18 Oct 2026, 15:47 UTC
In the Linux kernel, the following vulnerability has been resolved: serial: 8250_bcm7271: fix use-after-free in brcmuart_remove() brcmuart_handle_irq() starts priv->hrt to work around a receive-timeout quirk of the 8250 core when hardware flow control is enabled; the timer callback brcmuart_hrtimer_func() dereferences priv. brcmuart_remove() cancels the hrtimer before it unregisters the port, so a receive-timeout interrupt that arrives in between re-arms the timer. After devm frees priv, the callback runs on freed memory. Unregister the port before cancelling the hrtimer. serial8250_unregister_port() shuts the port down and frees its IRQ, so brcmuart_handle_irq() can no longer restart the timer, and the final hrtimer_cancel() drains any timer that was armed before or during the unregister. This issue was found by an in-house static analysis tool.
osv:CVE-2026-98748
Kernel
Fixed versions: 5.15.224, 6.1.191, 6.6.160, 6.12.113, 6.18.56, 7.2.10
Complete source record
{
"id": "97fa20e80effb25b37783bdcb201b97a5f4314c363432ab5b5621eef760747ab",
"url": "https://osv.dev/vulnerability/CVE-2026-98748",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "serial: 8250_bcm7271: fix use-after-free in brcmuart_remove()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: serial: 8250_bcm7271: fix use-after-free in brcmuart_remove() brcmuart_handle_irq() starts priv->hrt to work around a receive-timeout quirk of the 8250 core when hardware flow control is enabled; the timer callback brcmuart_hrtimer_func() dereferences priv. brcmuart_remove() cancels the hrtimer before it unregisters the port, so a receive-timeout interrupt that arrives in between re-arms the timer. After devm frees priv, the callback runs on freed memory. Unregister the port before cancelling the hrtimer. serial8250_unregister_port() shuts the port down and frees its IRQ, so brcmuart_handle_irq() can no longer restart the timer, and the final hrtimer_cancel() drains any timer that was armed before or during the unregister. This issue was found by an in-house static analysis tool.",
"evidence": "osv:CVE-2026-98748",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.224",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.191",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.160",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.113",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.56",
"evidence": "/affected/1/ranges"
},
{
"value": "7.2.10",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-98748",
"aliases": [
"CVE-2026-98748"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "41a469482de257ea8db43cf74b6311bd055de030"
},
{
"fixed": "134d239558f2ac2602fad2392ec3e6d8d76af7d8"
},
{
"fixed": "dad9fb86829ee96bbc6315d7209ceb24820ef889"
},
{
"fixed": "dd81650bec58ac70e5dfde2ec390acc1f0d1ed76"
},
{
"fixed": "f5ce06e648d775cc1ccf66f4f594bb8b559a7d8e"
},
{
"fixed": "e32440fa536af96bdbc61d933a7c3a920b965edc"
},
{
"fixed": "0794ba5332754866b2f1c0cca668775be3ffcf0a"
},
{
"fixed": "189b9dc8c96ec9486482f27c1372b04a7152175e"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98748.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.13.0"
},
{
"fixed": "5.15.224"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.191"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.160"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.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"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98748.json"
}
}
],
"modified": "2026-11-01T02:30:47.095713197Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0794ba5332754866b2f1c0cca668775be3ffcf0a",
"https://git.kernel.org/stable/c/134d239558f2ac2602fad2392ec3e6d8d76af7d8",
"https://git.kernel.org/stable/c/189b9dc8c96ec9486482f27c1372b04a7152175e",
"https://git.kernel.org/stable/c/dad9fb86829ee96bbc6315d7209ceb24820ef889",
"https://git.kernel.org/stable/c/dd81650bec58ac70e5dfde2ec390acc1f0d1ed76",
"https://git.kernel.org/stable/c/e32440fa536af96bdbc61d933a7c3a920b965edc",
"https://git.kernel.org/stable/c/f5ce06e648d775cc1ccf66f4f594bb8b559a7d8e",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98748.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-98748",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98748.json"
}
},
"related_cves": [
{
"value": "CVE-2026-98748",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 508169,
"published_at": "2026-10-18T15:47:33.446+00:00"
}