{"dataType":"CVE_RECORD","cveMetadata":{"cveId":"CVE-2024-35867","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2024-05-17T13:50:33.107Z","datePublished":"2024-05-19T08:34:25.911Z","dateUpdated":"2026-08-05T11:30:30.460Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-08-05T11:30:30.460Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nsmb: client: fix potential UAF in cifs_stats_proc_show()\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: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 - The vulnerable code is reached only through a local `read()` on `/proc/fs/cifs/Stats`; no remote peer input drives the vulnerable traversal. The race partner (SMB session teardown) is local mount/umount or per-uid session teardown activity.\nAC:L - The attacker controls both sides — an unprivileged read loop on the world-readable proc file, plus session teardown they can force repeatedly on multiuser/autofs CIFS mounts — and `__cifs_put_smb_ses()` holds the SES_EXITING window open across a blocking SMB LOGOFF round-trip, making the window wide and reliably hit.\nPR:L - `/proc/fs/cifs/Stats` is created mode 0644 in the global, non-namespaced procfs, so any unprivileged local user — including one inside a container with `/proc` mounted — can trigger the vulnerable read path. No capability, and no CIFS mount ownership, is required.\nUI:N - No victim action is needed: the attacker's own access to a multiuser mount creates and tears down per-fsuid SMB sessions, and ordinary background CIFS mount/reconnect/prune activity supplies the teardown otherwise.\nS:U - The use-after-free occurs in kernel memory and its effects stay within the kernel's own security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - Contents of the freed `cifs_tcon` — including `tree_name` printed with `%s`, which reads until a NUL and can run past the freed object — are copied into the seq_file buffer returned to the unprivileged reader, yielding a kernel heap disclosure that can be aimed at reallocated sensitive data via heap grooming.\nI:H - A use-after-free of this class gives the attacker influence over the freed slab object's contents, letting dereferenced pointers (`server->ops->print_stats`, tcon list links) be steered by heap spraying into a control-flow/corruption primitive rather than a mere stale read.\nA:H - The confirmed sibling bug produced a general protection fault on slab poison in exactly this traversal, and the oops happens while the global `cifs_tcp_ses_lock` spinlock is held, hanging all subsequent CIFS operations system-wide on top of killing the faulting task."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifs_debug.c"],"versions":[{"version":"7f48558e6489d032b1584b0cc9ac4bb11072c034","lessThan":"838ec01ea8d3deb5d123e8ed9022e8162dc3f503","status":"affected","versionType":"git"},{"version":"7f48558e6489d032b1584b0cc9ac4bb11072c034","lessThan":"bb6570085826291dc392005f9fec16ea5da3c8ad","status":"affected","versionType":"git"},{"version":"7f48558e6489d032b1584b0cc9ac4bb11072c034","lessThan":"16b7d785775eb03929766819415055e367398f49","status":"affected","versionType":"git"},{"version":"7f48558e6489d032b1584b0cc9ac4bb11072c034","lessThan":"c3cf8b74c57924c0985e49a1fdf02d3395111f39","status":"affected","versionType":"git"},{"version":"7f48558e6489d032b1584b0cc9ac4bb11072c034","lessThan":"1e12f0d5c66f07c934041621351973a116fa13c7","status":"affected","versionType":"git"},{"version":"7f48558e6489d032b1584b0cc9ac4bb11072c034","lessThan":"0865ffefea197b437ba78b5dd8d8e256253efd65","status":"affected","versionType":"git"},{"version":"a67172a013953664b1dad03c648200c70b90506c","status":"affected","versionType":"git"},{"version":"3.12.48","lessThan":"3.13","status":"affected","versionType":"semver"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/smb/client/cifs_debug.c"],"versions":[{"version":"3.13","status":"affected"},{"version":"0","lessThan":"3.13","status":"unaffected","versionType":"semver"},{"version":"5.10.237","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.181","lessThanOrEqual":"5.15.*","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":"3.13","versionEndExcluding":"5.10.237"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.13","versionEndExcluding":"5.15.181"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.13","versionEndExcluding":"6.1.85"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.13","versionEndExcluding":"6.6.26"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.13","versionEndExcluding":"6.8.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.13","versionEndExcluding":"6.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.12.48"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/838ec01ea8d3deb5d123e8ed9022e8162dc3f503"},{"url":"https://git.kernel.org/stable/c/bb6570085826291dc392005f9fec16ea5da3c8ad"},{"url":"https://git.kernel.org/stable/c/16b7d785775eb03929766819415055e367398f49"},{"url":"https://git.kernel.org/stable/c/c3cf8b74c57924c0985e49a1fdf02d3395111f39"},{"url":"https://git.kernel.org/stable/c/1e12f0d5c66f07c934041621351973a116fa13c7"},{"url":"https://git.kernel.org/stable/c/0865ffefea197b437ba78b5dd8d8e256253efd65"}],"title":"smb: client: fix potential UAF in cifs_stats_proc_show()","x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/16b7d785775eb03929766819415055e367398f49","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/c3cf8b74c57924c0985e49a1fdf02d3395111f39","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/1e12f0d5c66f07c934041621351973a116fa13c7","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/0865ffefea197b437ba78b5dd8d8e256253efd65","tags":["x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2024/05/30/2","tags":["x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2024/05/30/1","tags":["x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2024/05/29/2","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html"}],"providerMetadata":{"orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE","dateUpdated":"2025-11-03T19:29:58.093Z"}},{"metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-35867","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T15:41:20.780452Z"}}}],"title":"CISA ADP Vulnrichment","providerMetadata":{"orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP","dateUpdated":"2024-09-11T17:32:49.626Z"}}]},"dataVersion":"5.2"}