# CVE-2021-47358: staging: greybus: uart: fix tty use after free

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-05-21T14:44:50.221Z
- Modified: 2026-08-05T08:47:27.000Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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.*; from 5.14.9 up to 5.14.*; from 5.15 up to *)
- 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

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/92b67aaafb7c449db9f0c3dcabc0ff967cb3a42d> (patch)
- <https://git.kernel.org/stable/c/64062fcaca8872f063ec9da011e7bf30470be33f> (patch)
- <https://git.kernel.org/stable/c/a5cfd51f6348e8fd7531461366946039c29c7e69> (patch)
- <https://git.kernel.org/stable/c/4dc56951a8d9d61d364d346c61a5f1d70b4f5e14> (patch)
- <https://git.kernel.org/stable/c/b9e697e60ce9890e9258a73eb061288e7d68e5e6> (patch)
- <https://git.kernel.org/stable/c/9872ff6fdce8b229f01993b611b5d1719cb70ff1> (patch)
- <https://git.kernel.org/stable/c/92dc0b1f46e12cfabd28d709bb34f7a39431b44f> (patch)

## Sources

- CVE List: [CVE-2021-47358](https://www.cve.org/CVERecord?id=CVE-2021-47358), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2021-47358](https://nvd.nist.gov/vuln/detail/CVE-2021-47358), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2021-47358 · Whole record: https://cve.day/CVE-2021-47358.json · Rebuilt by cve.day 2026-11-25T22:58:08.815Z
