CVE-2026-98748: serial: 8250_bcm7271: fix use-after-free in brcmuart_remove()

Published Oct 18, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

serial: 8250bcm7271: fix use-after-free in brcmuartremove()

brcmuarthandleirq() starts priv->hrt to work around a receive-timeout quirk of the 8250 core when hardware flow control is enabled; the timer callback brcmuarthrtimerfunc() dereferences priv.

brcmuartremove() 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. serial8250unregisterport() shuts the port down and frees its IRQ, so brcmuarthandleirq() can no longer restart the timer, and the final hrtimercancel() drains any timer that was armed before or during the unregister.

This issue was found by an in-house static analysis tool.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In brcmuart_remove(), unregister the port before cancelling the hrtimer so callbacks cannot dereference freed priv memory.

Event History

Oct 18, 2026
CVE Published
via MITRE·03:47 PM
Data Sourced
via MITRE·03:47 PM
Description
Data Sourced
via NVD·04:17 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203