CVE-2026-142998: serial: fsl_lpuart: fix tty ref of wakeup event
In the Linux kernel, the following vulnerability has been resolved:
serial: fsllpuart: fix tty ref of wakeup event
To report a wakeup event, lpuartresumenoirq() gets the tty with ttyportttyget() and never puts it: each wakeup by the UART leaks a reference, and the tty is not freed when it is closed.
With noconsolesuspend, the function also gets there for a console which is not open. Then ttyportttyget() returns NULL, which is dereferenced.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to the NULL-pointer dereference?
Systems using the fsl_lpuart driver can hit the NULL dereference when no_console_suspend is enabled and the affected UART is used as a console that is not open. During resume, the driver can obtain a NULL tty and dereference it.
What conditions lead to the resource leak?
Each UART wakeup handled through lpuart_resume_noirq() can leak a tty reference because the tty obtained for reporting the wakeup event is not released. Repeated wakeup events can prevent the tty from being freed after it is closed.
How can I determine whether the issue is relevant to my system?
Check whether the system uses the Linux kernel fsl_lpuart serial driver and whether UART wakeup events occur. For the crash condition specifically, check whether no_console_suspend is enabled and an fsl_lpuart console may resume while not open.