staging: greybus: uart: fix tty use after free

Summary

CVECVE-2021-47358
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2024-05-21 15:15:22 UTC
Updated2026-08-04 10:16:59 UTC
DescriptionIn 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


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1416baaa9-dc9f-4396-8d5f-8c081fb06d67Secondary7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1CNADECLARED7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS: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)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
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

ReferenceSourceLinkTags
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

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report