What’s Vulnerable › Vulnerabilities
CVE-2021-47358: staging: greybus: uart: fix tty use after free
- Severity: high (CVSS 7.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-05-21 · updated 2026-08-04
- Weakness: CWE-416
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 products
- 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 — fixed in 4.14.249, 4.19.209, 4.9.285, 5.10.70, 5.14.9, 5.4.150
How to fix
Upgrade to a fixed version: Linux kernel 4.14.249, 4.19.209, 4.9.285, 5.10.70. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/4dc56951a8d9d61d364d346c61a5f1d70b4f5e14
- https://git.kernel.org/stable/c/64062fcaca8872f063ec9da011e7bf30470be33f
- https://git.kernel.org/stable/c/92b67aaafb7c449db9f0c3dcabc0ff967cb3a42d
- https://git.kernel.org/stable/c/92dc0b1f46e12cfabd28d709bb34f7a39431b44f
- https://git.kernel.org/stable/c/9872ff6fdce8b229f01993b611b5d1719cb70ff1
- https://git.kernel.org/stable/c/a5cfd51f6348e8fd7531461366946039c29c7e69
- https://git.kernel.org/stable/c/b9e697e60ce9890e9258a73eb061288e7d68e5e6
- https://git.kernel.org/stable/c/4dc56951a8d9d61d364d346c61a5f1d70b4f5e14
- https://git.kernel.org/stable/c/64062fcaca8872f063ec9da011e7bf30470be33f
- https://git.kernel.org/stable/c/92b67aaafb7c449db9f0c3dcabc0ff967cb3a42d
- https://git.kernel.org/stable/c/92dc0b1f46e12cfabd28d709bb34f7a39431b44f
- https://git.kernel.org/stable/c/9872ff6fdce8b229f01993b611b5d1719cb70ff1
Get alerted when CVE-2021-47358 or the next vulnerability affects your stack