{"api_version":"1","generated_at":"2026-08-23T04:03:14+00:00","cve":"CVE-2021-47358","urls":{"html":"https://cve.report/CVE-2021-47358","api":"https://cve.report/api/cve/CVE-2021-47358.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-47358","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-47358"},"summary":{"title":"staging: greybus: uart: fix tty use after free","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: greybus: uart: fix tty use after free\n\nUser space can hold a tty open indefinitely and tty drivers must not\nrelease the underlying structures until the last user is gone.\n\nSwitch to using the tty-port reference counter to manage the life time\nof the greybus tty state to avoid use after free after a disconnect.","state":"PUBLISHED","assigner":"Linux","published_at":"2024-05-21 15:15:22","updated_at":"2026-08-04 10:16:59"},"problem_types":["CWE-416"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}},{"version":"3.1","source":"CNA","type":"DECLARED","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"references":[{"url":"https://git.kernel.org/stable/c/9872ff6fdce8b229f01993b611b5d1719cb70ff1","name":"https://git.kernel.org/stable/c/9872ff6fdce8b229f01993b611b5d1719cb70ff1","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/92dc0b1f46e12cfabd28d709bb34f7a39431b44f","name":"https://git.kernel.org/stable/c/92dc0b1f46e12cfabd28d709bb34f7a39431b44f","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b9e697e60ce9890e9258a73eb061288e7d68e5e6","name":"https://git.kernel.org/stable/c/b9e697e60ce9890e9258a73eb061288e7d68e5e6","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/92b67aaafb7c449db9f0c3dcabc0ff967cb3a42d","name":"https://git.kernel.org/stable/c/92b67aaafb7c449db9f0c3dcabc0ff967cb3a42d","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4dc56951a8d9d61d364d346c61a5f1d70b4f5e14","name":"https://git.kernel.org/stable/c/4dc56951a8d9d61d364d346c61a5f1d70b4f5e14","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/64062fcaca8872f063ec9da011e7bf30470be33f","name":"https://git.kernel.org/stable/c/64062fcaca8872f063ec9da011e7bf30470be33f","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/a5cfd51f6348e8fd7531461366946039c29c7e69","name":"https://git.kernel.org/stable/c/a5cfd51f6348e8fd7531461366946039c29c7e69","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-47358","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47358","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a18e15175708d39abbe9746ddc3479466b7800c3 92b67aaafb7c449db9f0c3dcabc0ff967cb3a42d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a18e15175708d39abbe9746ddc3479466b7800c3 64062fcaca8872f063ec9da011e7bf30470be33f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a18e15175708d39abbe9746ddc3479466b7800c3 a5cfd51f6348e8fd7531461366946039c29c7e69 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a18e15175708d39abbe9746ddc3479466b7800c3 4dc56951a8d9d61d364d346c61a5f1d70b4f5e14 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a18e15175708d39abbe9746ddc3479466b7800c3 b9e697e60ce9890e9258a73eb061288e7d68e5e6 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a18e15175708d39abbe9746ddc3479466b7800c3 9872ff6fdce8b229f01993b611b5d1719cb70ff1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a18e15175708d39abbe9746ddc3479466b7800c3 92dc0b1f46e12cfabd28d709bb34f7a39431b44f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.9","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.9 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.9.285 4.9.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.14.249 4.14.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.19.209 4.19.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.4.150 5.4.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.70 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.14.9 5.14.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"47358","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2021-47358","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2024-05-21T18:24:46.611586Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2024-06-04T17:15:01.010Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"},{"providerMetadata":{"dateUpdated":"2024-08-04T05:32:08.651Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/92b67aaafb7c449db9f0c3dcabc0ff967cb3a42d"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/64062fcaca8872f063ec9da011e7bf30470be33f"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/a5cfd51f6348e8fd7531461366946039c29c7e69"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/4dc56951a8d9d61d364d346c61a5f1d70b4f5e14"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/b9e697e60ce9890e9258a73eb061288e7d68e5e6"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/9872ff6fdce8b229f01993b611b5d1719cb70ff1"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/92dc0b1f46e12cfabd28d709bb34f7a39431b44f"}],"title":"CVE Program Container"}],"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/staging/greybus/uart.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"92b67aaafb7c449db9f0c3dcabc0ff967cb3a42d","status":"affected","version":"a18e15175708d39abbe9746ddc3479466b7800c3","versionType":"git"},{"lessThan":"64062fcaca8872f063ec9da011e7bf30470be33f","status":"affected","version":"a18e15175708d39abbe9746ddc3479466b7800c3","versionType":"git"},{"lessThan":"a5cfd51f6348e8fd7531461366946039c29c7e69","status":"affected","version":"a18e15175708d39abbe9746ddc3479466b7800c3","versionType":"git"},{"lessThan":"4dc56951a8d9d61d364d346c61a5f1d70b4f5e14","status":"affected","version":"a18e15175708d39abbe9746ddc3479466b7800c3","versionType":"git"},{"lessThan":"b9e697e60ce9890e9258a73eb061288e7d68e5e6","status":"affected","version":"a18e15175708d39abbe9746ddc3479466b7800c3","versionType":"git"},{"lessThan":"9872ff6fdce8b229f01993b611b5d1719cb70ff1","status":"affected","version":"a18e15175708d39abbe9746ddc3479466b7800c3","versionType":"git"},{"lessThan":"92dc0b1f46e12cfabd28d709bb34f7a39431b44f","status":"affected","version":"a18e15175708d39abbe9746ddc3479466b7800c3","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/staging/greybus/uart.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.9"},{"lessThan":"4.9","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"4.9.*","status":"unaffected","version":"4.9.285","versionType":"semver"},{"lessThanOrEqual":"4.14.*","status":"unaffected","version":"4.14.249","versionType":"semver"},{"lessThanOrEqual":"4.19.*","status":"unaffected","version":"4.19.209","versionType":"semver"},{"lessThanOrEqual":"5.4.*","status":"unaffected","version":"5.4.150","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.70","versionType":"semver"},{"lessThanOrEqual":"5.14.*","status":"unaffected","version":"5.14.9","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"5.15","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"4.9.285","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"4.14.249","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"4.19.209","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.4.150","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.70","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.14.9","versionStartIncluding":"4.9","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15","versionStartIncluding":"4.9","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: greybus: uart: fix tty use after free\n\nUser space can hold a tty open indefinitely and tty drivers must not\nrelease the underlying structures until the last user is gone.\n\nSwitch to using the tty-port reference counter to manage the life time\nof the greybus tty state to avoid use after free after a disconnect."}],"metrics":[{"cvssV3_1":{"baseScore":7.8,"baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"}}],"providerMetadata":{"dateUpdated":"2026-08-04T09:00:15.897Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/92b67aaafb7c449db9f0c3dcabc0ff967cb3a42d"},{"url":"https://git.kernel.org/stable/c/64062fcaca8872f063ec9da011e7bf30470be33f"},{"url":"https://git.kernel.org/stable/c/a5cfd51f6348e8fd7531461366946039c29c7e69"},{"url":"https://git.kernel.org/stable/c/4dc56951a8d9d61d364d346c61a5f1d70b4f5e14"},{"url":"https://git.kernel.org/stable/c/b9e697e60ce9890e9258a73eb061288e7d68e5e6"},{"url":"https://git.kernel.org/stable/c/9872ff6fdce8b229f01993b611b5d1719cb70ff1"},{"url":"https://git.kernel.org/stable/c/92dc0b1f46e12cfabd28d709bb34f7a39431b44f"}],"title":"staging: greybus: uart: fix tty use after free","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2021-47358","datePublished":"2024-05-21T14:44:50.221Z","dateReserved":"2024-05-21T14:28:16.988Z","dateUpdated":"2026-08-04T09:00:15.897Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2024-05-21 15:15:22","lastModifiedDate":"2026-08-04 10:16:59","problem_types":["CWE-416"],"metrics":{"cvssMetricV31":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9},{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2024-05-21T18:24:46.611586Z","id":"CVE-2021-47358","options":[{"exploitation":"none"},{"automatable":"no"},{"technicalImpact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.9","versionEndExcluding":"4.9.285","matchCriteriaId":"BF8D6AC2-2AE7-4DD2-8D70-DAFAE0CDB6DC"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"4.14.249","matchCriteriaId":"9DFC8239-9F26-43B2-A340-8EFC6BC6BDA8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"4.19.209","matchCriteriaId":"21C23429-F802-4256-B3C2-9EEA76AC11FF"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"5.4.150","matchCriteriaId":"87771E47-210D-48FA-95BC-48A86225B30F"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"5.10.70","matchCriteriaId":"A2A50090-4483-4F44-9147-BF0B012FBF7E"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.14.9","matchCriteriaId":"1B31D6C1-A751-438D-906B-0C56B789D498"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:5.15:rc1:*:*:*:*:*:*","matchCriteriaId":"E46C74C6-B76B-4C94-A6A4-FD2FFF62D644"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:5.15:rc2:*:*:*:*:*:*","matchCriteriaId":"60134C3A-06E4-48C1-B04F-2903732A4E56"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"47358","Ordinal":"1","Title":"staging: greybus: uart: fix tty use after free","CVE":"CVE-2021-47358","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"47358","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nstaging: greybus: uart: fix tty use after free\n\nUser space can hold a tty open indefinitely and tty drivers must not\nrelease the underlying structures until the last user is gone.\n\nSwitch to using the tty-port reference counter to manage the life time\nof the greybus tty state to avoid use after free after a disconnect.","Type":"Description","Title":"staging: greybus: uart: fix tty use after free"}]}}}