CVE-2026-143000: serial: 8250_lpss: don't divide by 0 above 6.25 Mbaud
In the Linux kernel, the following vulnerability has been resolved:
serial: 8250lpss: don't divide by 0 above 6.25 Mbaud
bytsettermios() derives the clock of the UART from the baud rate in the termios, which nobody has looked at yet:
fuart = baud 16; ... fuart = rounddownpowoftwo(fref / fuart); ... p->uartclk = fuart;
fref is 100 MHz. For a baud rate above 6250000, which BOTHER allows, fref / fuart is 0, and rounddownpowoftwo(0) shifts 1UL by -1. On x86 that is 1UL << 63, the product with a multiple of 16 is 0, and so is uartclk. serial8250getbaudrate() then passes 0 for both limits, uartgetbaudrate() finds no rate which fits, WARNs and returns 0, and uartgetdivisor() or dw8250getdivisor() divide by 16 0.
Everybody who may open the tty can oops the kernel with one TCSETS2.
Don't ask for more than fref. The limits are those of a 100 MHz clock then, and uartgetbaudrate() falls back to the old rate as for any other rate that the port cannot do. 8250mid, which has the same formula, treats this case separately.
Affected Software
Event History
Frequently Asked Questions
Who can trigger the kernel fault?
Any user or process that can open the affected tty can trigger it. No elevated privilege is stated as necessary.
What input is needed to exploit the issue?
The attacker must issue a TCSETS2 request using BOTHER to set a baud rate above 6,250,000. This causes the driver’s derived UART clock to become zero and can lead to a divide-by-zero fault.
What can be done before an update is available?
Do not allow baud-rate requests above 6,250,000 on affected ttys, and restrict access to those tty devices to trusted users and processes. The resolved behavior rejects rates beyond the 100 MHz reference-clock limit and falls back to the previous rate.