serial: 8250_omap: set priv->line before enabling the IRQ
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Sep 25, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
serial: 8250_omap: set priv->line before enabling the IRQ
omap8250_irq() is requested in omap8250_probe() with IRQ_NOAUTOEN and enabled only in omap_8250_startup(). The handler obtains the port by serial8250_get_port(priv->line), but probe stores priv->line only after serial8250_register_8250_port() returns.
The port becomes visible to userspace already inside serial8250_register_8250_port() (uart_add_one_port()). So it can be opened -- and the IRQ enabled -- before probe stores the line. An interrupt in that window makes the handler call serial8250_get_port(-ENODEV) and dereference a pointer outside of serial8250_ports[].
Store the line in omap_8250_startup() before enable_irq(), 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.
| Product | Versions |
|---|---|
| Linux Linux | fef4f600319e35b7121c3ea6005ee38626f4f959 to before 0517d5fa233b15ff6c355ce5f47ec01b70906ec8 Affectedfef4f600319e35b7121c3ea6005ee38626f4f959 to before 3a58b317d7f38484339391050a575c423dd255c8 Affectedfef4f600319e35b7121c3ea6005ee38626f4f959 to before 8276a44f0a0b68c07b2331cc0058036ac4c4190d Affected |
| Linux Linux | 6.5 Affectedbefore 6.5 Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.