tty: vcc: hold port lock when clearing tty pointer in vcc_cleanup
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 8f03f948ba356b7cb254b45a4e78b5b3d86fd3bb · < 821050631750e982007c0856c119346edba51cae| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tty: vcc: hold port lock when clearing tty pointer in vcc_cleanup
vcc_cleanup() sets port->tty to NULL without holding port->lock, racing with vcc_event() LDC callbacks that read port->tty under port->lock and then use tty->port. This can cause a use-after-free when the callback dereferences tty->port after cleanup has already destroyed and freed it.
From the CVE record · Linux
The Linux kernel's vcc_cleanup() clears a tty pointer without holding the port lock. If cleanup races with a vcc_event() LDC callback, the callback can dereference freed memory. The input does not specify an attacker path, authentication requirement, or user interaction.
Teams running Linux kernels with the affected tty vcc code should check their versions; affected versions were not provided.