staging: greybus: uart: fix tty use after free
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ a18e15175708d39abbe9746ddc3479466b7800c3 · < 9872ff6fdce8b229f01993b611b5d1719cb70ff1| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
staging: greybus: uart: fix tty use after free
User space can hold a tty open indefinitely and tty drivers must not release the underlying structures until the last user is gone.
Switch to using the tty-port reference counter to manage the life time of the greybus tty state to avoid use after free after a disconnect.
From the CVE record · Linux
The Linux kernel’s greybus UART driver can release tty state while a user-space process still holds the tty open. This can cause a use-after-free after a disconnect; exploitation requires local access to the tty and a disconnect.
Engineers running Linux kernels with the greybus UART driver should check their kernel versions for this issue.