Files
vuln-cve/data/2021/47xxx/CVE-2021-47358.json
T

329 lines
16 KiB
JSON

{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2021-47358",
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"state": "PUBLISHED",
"assignerShortName": "Linux",
"dateReserved": "2024-05-21T14:28:16.988Z",
"datePublished": "2024-05-21T14:44:50.221Z",
"dateUpdated": "2026-08-05T08:47:27.000Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux",
"dateUpdated": "2026-08-05T08:47:27.000Z"
},
"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": {
"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"
},
"scenarios": [
{
"lang": "en",
"value": "AV:L - Exploitation requires local access to open and operate on /dev/ttyGB*; the UAF is triggered via local tty syscalls after the greybus UART device is disconnected, matching other greybus disconnect-UAF scores.\nAC:L - The attacker reliably causes the bug by holding the tty open across disconnect and then using the fd; this is a deterministic lifetime violation, not a race or layout-dependent condition beyond attacker control.\nPR:L - An unprivileged local user who can open the greybus tty device is sufficient; no root or init-namespace capabilities are required for the open/use path.\nUI:N - No separate victim action is required; the attacker opens the device and continues using it after disconnect.\nS:U - Impact is confined to the host kernel (memory corruption / privilege escalation within the same security authority); it does not cross a VM, IOMMU, or other security boundary.\nC:H - Use-after-free of the gb_tty/tty_port object allows reclaim and controlled reads of freed kernel heap memory.\nI:H - UAF of a structure embedding tty_port ops enables heap spray and hijacking of function pointers on subsequent close/write paths for arbitrary write/code execution.\nA:H - Dereferencing the freed gb_tty on close, write, or cleanup causes kernel oops/panic even without full exploitation."
}
]
}
],
"affected": [
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/staging/greybus/uart.c"
],
"versions": [
{
"version": "a18e15175708d39abbe9746ddc3479466b7800c3",
"lessThan": "92b67aaafb7c449db9f0c3dcabc0ff967cb3a42d",
"status": "affected",
"versionType": "git"
},
{
"version": "a18e15175708d39abbe9746ddc3479466b7800c3",
"lessThan": "64062fcaca8872f063ec9da011e7bf30470be33f",
"status": "affected",
"versionType": "git"
},
{
"version": "a18e15175708d39abbe9746ddc3479466b7800c3",
"lessThan": "a5cfd51f6348e8fd7531461366946039c29c7e69",
"status": "affected",
"versionType": "git"
},
{
"version": "a18e15175708d39abbe9746ddc3479466b7800c3",
"lessThan": "4dc56951a8d9d61d364d346c61a5f1d70b4f5e14",
"status": "affected",
"versionType": "git"
},
{
"version": "a18e15175708d39abbe9746ddc3479466b7800c3",
"lessThan": "b9e697e60ce9890e9258a73eb061288e7d68e5e6",
"status": "affected",
"versionType": "git"
},
{
"version": "a18e15175708d39abbe9746ddc3479466b7800c3",
"lessThan": "9872ff6fdce8b229f01993b611b5d1719cb70ff1",
"status": "affected",
"versionType": "git"
},
{
"version": "a18e15175708d39abbe9746ddc3479466b7800c3",
"lessThan": "92dc0b1f46e12cfabd28d709bb34f7a39431b44f",
"status": "affected",
"versionType": "git"
}
]
},
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "affected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"drivers/staging/greybus/uart.c"
],
"versions": [
{
"version": "4.9",
"status": "affected"
},
{
"version": "0",
"lessThan": "4.9",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "4.9.285",
"lessThanOrEqual": "4.9.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "4.14.249",
"lessThanOrEqual": "4.14.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "4.19.209",
"lessThanOrEqual": "4.19.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "5.4.150",
"lessThanOrEqual": "5.4.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "5.10.70",
"lessThanOrEqual": "5.10.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "5.14.9",
"lessThanOrEqual": "5.14.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "5.15",
"lessThanOrEqual": "*",
"status": "unaffected",
"versionType": "original_commit_for_fix"
}
]
}
],
"cpeApplicability": [
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.9",
"versionEndExcluding": "4.9.285"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.9",
"versionEndExcluding": "4.14.249"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.9",
"versionEndExcluding": "4.19.209"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.9",
"versionEndExcluding": "5.4.150"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.9",
"versionEndExcluding": "5.10.70"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.9",
"versionEndExcluding": "5.14.9"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.9",
"versionEndExcluding": "5.15"
}
]
}
]
}
],
"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"
}
},
"adp": [
{
"title": "CISA ADP Vulnrichment",
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2021-47358",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2024-05-21T18:24:46.611586Z"
}
}
}
],
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-06-04T17:15:01.010Z"
}
},
{
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-04T05:32:08.651Z"
},
"title": "CVE Program Container",
"references": [
{
"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",
"tags": [
"x_transferred"
]
}
]
}
]
}
}