CVE-2026-142996: serial: samsung: don't leak the tty on an RX IRQ
In the Linux kernel, the following vulnerability has been resolved:
serial: samsung: don't leak the tty on an RX IRQ
s3c24xxserialrxcharsdma() starts by taking a reference to the tty. If the interrupt is not a receive timeout, it switches the port from PIO back to DMA and leaves through the "finish" label, which does not drop the reference.
A port with RX DMA changes to PIO on every receive timeout, that is at the end of every burst of data, and comes back this way when the next burst starts. So each burst takes a reference which is never dropped, and the tty structure is not freed when the port is closed for the last time.
Drop the reference on both paths.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux kernel Samsung serial driver, drop the tty reference on both paths in s3c24xx_serial_rx_chars_dma(), including the path that exits through the finish label.
Event History
Frequently Asked Questions
Which deployments are exposed to this issue?
Systems using the Linux kernel Samsung serial driver on a port configured for RX DMA are affected by the described reference leak.
What conditions trigger the leak?
The port must switch from DMA to PIO after a receive timeout and then return to DMA when a subsequent burst begins. Each such burst can retain an additional tty reference.
What is the operational impact after closing the serial port?
When the port is closed for the last time, the tty structure may not be freed because retained references remain. Repeated receive bursts can accumulate these unreleased references.