CVE-2026-142969: USB: serial: upd78f0730: fix NULL-deref on hangup
In the Linux kernel, the following vulnerability has been resolved:
USB: serial: upd78f0730: fix NULL-deref on hangup
The port tty pointer is cleared on hangup before deasserting the modem control signals and should not be used in the dtrrts() callback.
Factor out a new upd78f0730porttiocmset() helper that can be used in upd78f0730dtrrts() to avoid dereferencing a NULL-pointer on hangup (e.g. on disconnect).
This issue was flagged by an LLM.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
Factor out an upd78f0730_port_tiocmset() helper and use it in upd78f0730_dtr_rts() so the callback does not dereference the cleared port tty pointer on hangup.
Event History
Frequently Asked Questions
What systems are exposed to this issue?
Systems using the Linux kernel's upd78f0730 USB serial driver are relevant. The NULL-pointer dereference occurs during a hangup, including when the device is disconnected.
What event triggers the failure?
The failure can occur when the serial port is hung up after its tty pointer has been cleared, while modem-control signals are being deasserted. Device disconnect is given as an example trigger.