Files
vuln-cve/data/2024/35xxx/CVE-2024-35862.json
T

248 lines
12 KiB
JSON

{
"dataType": "CVE_RECORD",
"dataVersion": "5.2",
"cveMetadata": {
"cveId": "CVE-2024-35862",
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"state": "PUBLISHED",
"assignerShortName": "Linux",
"dateReserved": "2024-05-17T13:50:33.107Z",
"datePublished": "2024-05-19T08:34:21.173Z",
"dateUpdated": "2026-08-05T11:30:26.161Z"
},
"containers": {
"cna": {
"providerMetadata": {
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
"shortName": "Linux",
"dateUpdated": "2026-08-05T11:30:26.161Z"
},
"descriptions": [
{
"lang": "en",
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix potential UAF in smb2_is_network_name_deleted()\n\nSkip sessions that are being teared down (status == SES_EXITING) to\navoid UAF."
}
],
"metrics": [
{
"cvssV3_1": {
"version": "3.1",
"vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"baseScore": 9.8,
"baseSeverity": "CRITICAL"
},
"scenarios": [
{
"lang": "en",
"value": "AV:N - The vulnerable function is invoked by the CIFS demultiplex thread on every SMB2 response received over TCP/445, keyed entirely on server-supplied fields (`Status` and `Id.SyncId.TreeId`). A malicious SMB server, or an off-path/MITM attacker injecting into an unsigned SMB connection, triggers it purely with network data.\nAC:L - The remote peer controls both sides of the race: it forces the session teardown (failed reconnect/session setup drives `__cifs_put_smb_ses()`), and it holds the SES_EXITING window open for the full request timeout simply by not answering the SMB2 LOGOFF, while flooding STATUS_NETWORK_NAME_DELETED responses. The attempt is freely repeatable with no attacker-uncontrollable precondition.\nPR:N - The attacker is the remote SMB peer and needs no credentials or privileges on the target Linux client; the code path runs in the kernel demux thread before any signature validation of the response.\nUI:N - The attack works against an already-established mount — an fstab/autofs/systemd-automount or DFS-referral connection, or a file server compromised or MITM'd after mount — and the server itself induces the session teardown, so no victim action is required.\nS:U - The use-after-free corrupts kernel slab memory within the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - Use-after-free on `cifs_tcon`/`cifs_ses` gives an attacker-influenced read of freed slab contents, and `pr_warn_once(\"%s\", tcon->tree_name)` walks freed heap memory into the kernel log, leaking whatever now occupies that object.\nI:H - The path writes into freed memory — `spin_lock(&tcon->tc_lock)` plus `tcon->need_reconnect = true` — on an object the remote attacker selects via the controlled TreeId, giving a heap-spray-able corruption primitive leveragable for control-flow hijack.\nA:H - Dereferencing the poisoned/freed session and tcon produces a general protection fault or KASAN oops in the cifsd kernel thread (as shown in the sibling fix's trace), crashing or hanging the client with the mount unusable."
}
]
}
],
"affected": [
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "unaffected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"fs/smb/client/smb2ops.c"
],
"versions": [
{
"version": "9e550b085206544bd03a8b1dd58a5414e9508351",
"lessThan": "f9414004798d9742c1af23a1d839fe6a9503751c",
"status": "affected",
"versionType": "git"
},
{
"version": "9e550b085206544bd03a8b1dd58a5414e9508351",
"lessThan": "aa582b33f94453fdeaff1e7d0aa252c505975e01",
"status": "affected",
"versionType": "git"
},
{
"version": "9e550b085206544bd03a8b1dd58a5414e9508351",
"lessThan": "d919b6ea15ffa56fbafef4a1d92f47aeda9af645",
"status": "affected",
"versionType": "git"
},
{
"version": "9e550b085206544bd03a8b1dd58a5414e9508351",
"lessThan": "63981561ffd2d4987807df4126f96a11e18b0c1d",
"status": "affected",
"versionType": "git"
}
]
},
{
"product": "Linux",
"vendor": "Linux",
"defaultStatus": "affected",
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"programFiles": [
"fs/smb/client/smb2ops.c"
],
"versions": [
{
"version": "5.12",
"status": "affected"
},
{
"version": "0",
"lessThan": "5.12",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.1.85",
"lessThanOrEqual": "6.1.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.6.26",
"lessThanOrEqual": "6.6.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.8.5",
"lessThanOrEqual": "6.8.*",
"status": "unaffected",
"versionType": "semver"
},
{
"version": "6.9",
"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": "5.12",
"versionEndExcluding": "6.1.85"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.12",
"versionEndExcluding": "6.6.26"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.12",
"versionEndExcluding": "6.8.5"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "5.12",
"versionEndExcluding": "6.9"
}
]
}
]
}
],
"references": [
{
"url": "https://git.kernel.org/stable/c/f9414004798d9742c1af23a1d839fe6a9503751c"
},
{
"url": "https://git.kernel.org/stable/c/aa582b33f94453fdeaff1e7d0aa252c505975e01"
},
{
"url": "https://git.kernel.org/stable/c/d919b6ea15ffa56fbafef4a1d92f47aeda9af645"
},
{
"url": "https://git.kernel.org/stable/c/63981561ffd2d4987807df4126f96a11e18b0c1d"
}
],
"title": "smb: client: fix potential UAF in smb2_is_network_name_deleted()",
"x_generator": {
"engine": "bippy-1.2.0"
}
},
"adp": [
{
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-02T03:21:48.581Z"
},
"title": "CVE Program Container",
"references": [
{
"url": "https://git.kernel.org/stable/c/f9414004798d9742c1af23a1d839fe6a9503751c",
"tags": [
"x_transferred"
]
},
{
"url": "https://git.kernel.org/stable/c/aa582b33f94453fdeaff1e7d0aa252c505975e01",
"tags": [
"x_transferred"
]
},
{
"url": "https://git.kernel.org/stable/c/d919b6ea15ffa56fbafef4a1d92f47aeda9af645",
"tags": [
"x_transferred"
]
},
{
"url": "https://git.kernel.org/stable/c/63981561ffd2d4987807df4126f96a11e18b0c1d",
"tags": [
"x_transferred"
]
}
]
},
{
"metrics": [
{
"other": {
"type": "ssvc",
"content": {
"id": "CVE-2024-35862",
"role": "CISA Coordinator",
"options": [
{
"Exploitation": "none"
},
{
"Automatable": "no"
},
{
"Technical Impact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2024-09-10T15:41:27.598442Z"
}
}
}
],
"title": "CISA ADP Vulnrichment",
"providerMetadata": {
"orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"shortName": "CISA-ADP",
"dateUpdated": "2024-09-11T17:33:17.367Z"
}
}
]
}
}