AZL-116755: CVE-2026-100085 affecting package kernel 6.6.161.1-1
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.
- Compensating control
In omap_8250_startup(), store the line in priv->line before calling enable_irq().
Event History
Frequently Asked Questions
What conditions are required to trigger this issue?
A userspace process must open the exposed 8250 OMAP serial port during the narrow interval in driver probe after the port becomes visible but before its line number is stored. An interrupt must then occur after the port startup path enables the IRQ.
What is the impact if the race is triggered?
The IRQ handler can look up the port using an unset line value of -ENODEV and dereference a pointer outside the serial8250_ports[] array. The provided data does not specify the resulting observable impact.
Are systems affected if the serial port is never opened?
The described race requires the port to be opened, because the IRQ is enabled only in the startup path. The fix also preserves the probe-time assignment because removal and system power-management callbacks depend on it even when the port was never opened.