CVE-2021-47358

staging: greybus: uart: fix tty use after free

HIGH
7.8
CVSS Score
Published: May 21, 2024 at 02:44 PM UTC
Updated: August 5, 2026 at 09:24 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.8
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.10 ≤ v < 4.14.2494.15 ≤ v < 4.19.2094.20 ≤ v < 5.4.1504.9 ≤ v < 4.14.2494.9 ≤ v < 4.19.2094.9 ≤ v < 4.9.2854.9 ≤ v < 5.10.704.9 ≤ v < 5.14.94.9 ≤ v < 5.154.9 ≤ v < 5.4.1505.11 ≤ v < 5.14.95.5 ≤ v < 5.10.705.15 rc15.15 rc2a18e15175708d39abbe9746ddc3479466b7800c3
Vendor states this is fixed in 4dc56951a8d9d61d364d346c61a5f1d70b4f5e14 (fixed)
Vendor states this is fixed in 64062fcaca8872f063ec9da011e7bf30470be33f (fixed)
Vendor states this is fixed in 92b67aaafb7c449db9f0c3dcabc0ff967cb3a42d (fixed)
Vendor states this is fixed in 92dc0b1f46e12cfabd28d709bb34f7a39431b44f (fixed)
Vendor states this is fixed in 9872ff6fdce8b229f01993b611b5d1719cb70ff1 (fixed)
Vendor states this is fixed in a5cfd51f6348e8fd7531461366946039c29c7e69 (fixed)
Vendor states this is fixed in b9e697e60ce9890e9258a73eb061288e7d68e5e6 (fixed)
Vendor states this is fixed in 4.14.249 (unaffected)
Vendor states this is fixed in 4.19.209 (unaffected)
Vendor states this is fixed in 4.9 (unaffected)
Vendor states this is fixed in 4.9.285 (unaffected)
Vendor states this is fixed in 5.10.70 (unaffected)
Vendor states this is fixed in 5.14.9 (unaffected)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 5.4.150 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4dc56951a8d9d61d364d346c61a5f1d70b4f5e14
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/64062fcaca8872f063ec9da011e7bf30470be33f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/92b67aaafb7c449db9f0c3dcabc0ff967cb3a42d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/92dc0b1f46e12cfabd28d709bb34f7a39431b44f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9872ff6fdce8b229f01993b611b5d1719cb70ff1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a5cfd51f6348e8fd7531461366946039c29c7e69
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b9e697e60ce9890e9258a73eb061288e7d68e5e6

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

7.8HIGHLinux
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card