CVE-2026-100085: serial: 8250_omap: set priv->line before enabling the IRQ
In the Linux kernel, the following vulnerability has been resolved:
serial: 8250omap: set priv->line before enabling the IRQ
omap8250irq() is requested in omap8250probe() with IRQNOAUTOEN and enabled only in omap8250startup(). The handler obtains the port by serial8250getport(priv->line), but probe stores priv->line only after serial8250register8250port() returns.
The port becomes visible to userspace already inside serial8250register8250port() (uartaddoneport()). So it can be opened -- and the IRQ enabled -- before probe stores the line. An interrupt in that window makes the handler call serial8250getport(-ENODEV) and dereference a pointer outside of serial8250ports[].
Store the line in omap8250startup() before enableirq(), so the handler never runs with an unset line. Keep the assignment in probe too, as remove and the system PM callbacks rely on it even when the port was never opened.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Compensating control
In omap_8250_startup(), store the line in priv->line before calling enable_irq(), so the IRQ handler never runs with an unset line.
Event History
Frequently Asked Questions
Which systems are exposed to this race?
The affected path is the OMAP 8250 serial driver in the Linux kernel, when its serial port becomes visible to userspace and can be opened during driver registration. The issue requires the port's IRQ to be enabled before the driver has stored its assigned serial line.
What is required to trigger the issue?
A userspace process must open the serial port in the window after the port is registered but before probe stores priv->line. An interrupt must then occur after startup enables the IRQ, causing the handler to look up the port using an unset line value.
What happens if the race is triggered?
The IRQ handler can call serial8250_get_port(-ENODEV) and dereference a pointer outside the serial8250_ports[] array. The provided information does not specify any impact beyond this invalid pointer dereference.
What does the fix change?
The fix stores priv->line in the startup path before enable_irq(), preventing the interrupt handler from running with an unset line. The probe-time assignment is retained because remove and system power-management callbacks need it even if the port was never opened.