7.8high
staging: greybus: uart: fix tty use after free
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from a18e15175708d39abbe9746ddc3479466b7800c3 before 92b67aaafb7c449db9f0c3dcabc0ff967cb3a42d, from a18e15175708d39abbe9746ddc3479466b7800c3 before 64062fcaca8872f063ec9da011e7bf30470be33f, from a18e15175708d39abbe9746ddc3479466b7800c3 before a5cfd51f6348e8fd7531461366946039c29c7e69, from a18e15175708d39abbe9746ddc3479466b7800c3 before 4dc56951a8d9d61d364d346c61a5f1d70b4f5e14, from a18e15175708d39abbe9746ddc3479466b7800c3 before b9e697e60ce9890e9258a73eb061288e7d68e5e6, from a18e15175708d39abbe9746ddc3479466b7800c3 before 9872ff6fdce8b229f01993b611b5d1719cb70ff1, from a18e15175708d39abbe9746ddc3479466b7800c3 before 92dc0b1f46e12cfabd28d709bb34f7a39431b44f, 4.9 Not affected: before 4.9, from 4.9.285 up to 4.9.*, from 4.14.249 up to 4.14.*, from 4.19.209 up to 4.19.*, from 5.4.150 up to 5.4.*, from 5.10.70 up to 5.10.* | CVE List |
| linux linux_kernel | from 4.9 before 4.9.285, from 4.10 before 4.14.249, from 4.15 before 4.19.209, from 4.20 before 5.4.150, from 5.5 before 5.10.70, from 5.11 before 5.14.9, 5.15 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: staging: greybus: uart: corrige el use after free de tty. El espacio de usuario puede mantener un tty abierto indefinidamente y los controladores de tty no deben liberar las estructuras subyacentes hasta que el último usuario se haya ido. Cambie al uso del contador de referencia del puerto tty para administrar la vida útil del estado tty de greybus para evitar su uso después de una desconexión.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47358 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2021-47358 changed 2026-08-04 | Public domain |