CVE-2026-90337: serial: core: do fallible allocations before the console can be registered

Published Sep 17, 2026
·
Updated

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

serial: core: do fallible allocations before the console can be registered

serialcoreaddoneport() allocates uport->ttygroups after uartconfigureport(), which may register the console. If the allocation fails, the driver unwinds the port while its console remains registered. The earlier uport->name allocation has a related failure path that leaves state->uartport linked to a port being freed.

Failslab reproduced a NULL dereference in PL011 console output and a KASAN use-after-free in i.MX console output after failed binds.

Allocate the name and ttygroups before linking the port and configuring it. Reserve space for the optional driver attribute group because configport() may populate uport->attrgroup during configuration.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 17, 2026
CVE Published
via MITRE·04:08 PM
Data Sourced
via MITRE·04:08 PM
Description

Frequently Asked Questions

1

What condition triggers the unsafe cleanup path?

An allocation failure while adding a serial port can trigger it. The affected allocations are uport->name and uport->tty_groups, and the failure can occur after console registration or port linkage in the vulnerable ordering.

2

Which console environments have demonstrated impact?

Failed binds reproduced a NULL dereference during PL011 console output and a KASAN use-after-free during i.MX console output. The issue concerns serial ports that may be configured as consoles.

3

How might an affected system present the problem?

Look for failures following a serial-port bind failure, especially a NULL dereference in PL011 console output or a KASAN use-after-free in i.MX console output. The vulnerable cleanup can leave a console registered for a port that is being freed, or leave state->uart_port linked to freed memory.

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