In the Linux kernel, the following vulnerability has been resolved: serial: 8250_bcm7271: fix use-after-free in brcmuart_remove()… (CVE-2026-98748)
Description
A use-after-free vulnerability in the Linux kernel's serial driver for 8250_bcm7271 was resolved by changing the order of operations in the brcmuart_remove() function. The flaw allowed a timer callback to access freed memory due to a race condition between unregistering the port and cancelling a high-resolution timer. This issue was identified via static analysis and fixed by unregistering the port before cancelling the timer to prevent the callback from running on freed memory.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel's serial driver for the 8250_bcm7271 chipset contained a use-after-free vulnerability in the brcmuart_remove() function. The brcmuart_handle_irq() function starts a high-resolution timer (hrt) to handle a receive-timeout quirk when hardware flow control is enabled. The timer callback brcmuart_hrtimer_func() dereferences a pointer to private data (priv). The vulnerability arises because brcmuart_remove() cancels the hrtimer after unregistering the port, allowing a receive-timeout interrupt to re-arm the timer after the private data has been freed by devm. This results in the timer callback running on freed memory. The fix involves unregistering the port before cancelling the hrtimer, ensuring the port is shut down and its IRQ freed before the timer is cancelled, preventing the callback from accessing freed memory. The issue was discovered using an in-house static analysis tool.
Potential Impact
This vulnerability could lead to use-after-free conditions in kernel memory, potentially causing system instability or crashes. However, no known exploits in the wild have been reported. The impact is limited to systems using the affected serial driver and hardware.
Mitigation Recommendations
A fix is available that changes the order of operations in the brcmuart_remove() function to unregister the port before cancelling the high-resolution timer. Users should update their Linux kernel to a version that includes this fix. Since this is a kernel-level issue, applying the official kernel patch or upgrading to a fixed kernel version is the recommended remediation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-7g75-q55x-6r4j
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98748"]
Threat ID: 6ad520ab2cdf04f6569939c5
Added to database: 10/18/2026, 19:40:27 UTC
Last enriched: 10/18/2026, 22:23:15 UTC
Last updated: 10/18/2026, 22:23:15 UTC
Views: 2
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.