staging: greybus: uart: fix tty use after free
Summary
| CVE | CVE-2021-47358 |
|---|---|
| State | PUBLISHED |
| Assigner | Linux |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2024-05-21 15:15:22 UTC |
| Updated | 2026-08-04 10:16:59 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 7.8 HIGH from [email protected]
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Problem Types: CWE-416
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Primary | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 | Secondary | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| 3.1 | CNA | DECLARED | 7.8 | HIGH | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
LocalAttack Complexity
LowPrivileges Required
LowUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Linux | Linux Kernel | All | All | All | All |
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Linux | Linux | affected a18e15175708d39abbe9746ddc3479466b7800c3 92b67aaafb7c449db9f0c3dcabc0ff967cb3a42d git | Not specified |
| CNA | Linux | Linux | affected a18e15175708d39abbe9746ddc3479466b7800c3 64062fcaca8872f063ec9da011e7bf30470be33f git | Not specified |
| CNA | Linux | Linux | affected a18e15175708d39abbe9746ddc3479466b7800c3 a5cfd51f6348e8fd7531461366946039c29c7e69 git | Not specified |
| CNA | Linux | Linux | affected a18e15175708d39abbe9746ddc3479466b7800c3 4dc56951a8d9d61d364d346c61a5f1d70b4f5e14 git | Not specified |
| CNA | Linux | Linux | affected a18e15175708d39abbe9746ddc3479466b7800c3 b9e697e60ce9890e9258a73eb061288e7d68e5e6 git | Not specified |
| CNA | Linux | Linux | affected a18e15175708d39abbe9746ddc3479466b7800c3 9872ff6fdce8b229f01993b611b5d1719cb70ff1 git | Not specified |
| CNA | Linux | Linux | affected a18e15175708d39abbe9746ddc3479466b7800c3 92dc0b1f46e12cfabd28d709bb34f7a39431b44f git | Not specified |
| CNA | Linux | Linux | affected 4.9 | Not specified |
| CNA | Linux | Linux | unaffected 4.9 semver | Not specified |
| CNA | Linux | Linux | unaffected 4.9.285 4.9.* semver | Not specified |
| CNA | Linux | Linux | unaffected 4.14.249 4.14.* semver | Not specified |
| CNA | Linux | Linux | unaffected 4.19.209 4.19.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.4.150 5.4.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.10.70 5.10.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.14.9 5.14.* semver | Not specified |
| CNA | Linux | Linux | unaffected 5.15 * original_commit_for_fix | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| git.kernel.org/stable/c/9872ff6fdce8b229f01993b611b5d1719cb70ff1 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/92dc0b1f46e12cfabd28d709bb34f7a39431b44f | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/b9e697e60ce9890e9258a73eb061288e7d68e5e6 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/92b67aaafb7c449db9f0c3dcabc0ff967cb3a42d | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/4dc56951a8d9d61d364d346c61a5f1d70b4f5e14 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/64062fcaca8872f063ec9da011e7bf30470be33f | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| git.kernel.org/stable/c/a5cfd51f6348e8fd7531461366946039c29c7e69 | af854a3a-2127-422b-91ae-364da2661108 | git.kernel.org | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.