{"id":"CVE-2024-35862","state":"PUBLISHED","title":"smb: client: fix potential UAF in smb2_is_network_name_deleted()","description":"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.","publishedAt":"2024-05-19T08:34:21.173Z","updatedAt":"2026-08-05T11:30:26.161Z","severity":{"score":9.8,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9e550b085206544bd03a8b1dd58a5414e9508351","status":"affected","lessThan":"f9414004798d9742c1af23a1d839fe6a9503751c","versionType":"git"},{"version":"9e550b085206544bd03a8b1dd58a5414e9508351","status":"affected","lessThan":"aa582b33f94453fdeaff1e7d0aa252c505975e01","versionType":"git"},{"version":"9e550b085206544bd03a8b1dd58a5414e9508351","status":"affected","lessThan":"d919b6ea15ffa56fbafef4a1d92f47aeda9af645","versionType":"git"},{"version":"9e550b085206544bd03a8b1dd58a5414e9508351","status":"affected","lessThan":"63981561ffd2d4987807df4126f96a11e18b0c1d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/smb2ops.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.12","versionType":"semver"},{"version":"6.1.85","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.26","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.8.5","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/smb2ops.c"]}],"references":["https://git.kernel.org/stable/c/f9414004798d9742c1af23a1d839fe6a9503751c","https://git.kernel.org/stable/c/aa582b33f94453fdeaff1e7d0aa252c505975e01","https://git.kernel.org/stable/c/d919b6ea15ffa56fbafef4a1d92f47aeda9af645","https://git.kernel.org/stable/c/63981561ffd2d4987807df4126f96a11e18b0c1d"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:30.303Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/35xxx/CVE-2024-35862.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-35862","state":"PUBLISHED","datePublished":"2024-05-19T08:34:21.173Z","dateUpdated":"2026-08-05T11:30:26.161Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-05-17T13:50:33.107Z"},"containers":{"cna":{"title":"smb: client: fix potential UAF in smb2_is_network_name_deleted()","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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9e550b085206544bd03a8b1dd58a5414e9508351","status":"affected","lessThan":"f9414004798d9742c1af23a1d839fe6a9503751c","versionType":"git"},{"version":"9e550b085206544bd03a8b1dd58a5414e9508351","status":"affected","lessThan":"aa582b33f94453fdeaff1e7d0aa252c505975e01","versionType":"git"},{"version":"9e550b085206544bd03a8b1dd58a5414e9508351","status":"affected","lessThan":"d919b6ea15ffa56fbafef4a1d92f47aeda9af645","versionType":"git"},{"version":"9e550b085206544bd03a8b1dd58a5414e9508351","status":"affected","lessThan":"63981561ffd2d4987807df4126f96a11e18b0c1d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/smb2ops.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.12","versionType":"semver"},{"version":"6.1.85","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.26","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.8.5","status":"unaffected","lessThanOrEqual":"6.8.*","versionType":"semver"},{"version":"6.9","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/smb2ops.c"]}],"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"}],"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."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:30:26.161Z"},"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"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"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"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T03:21:48.581Z"}},{"title":"CISA ADP Vulnrichment","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"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:33:17.367Z"}}]}}}