# CVE-2024-35868: smb: client: fix potential UAF in cifs_stats_proc_write()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2024-05-19T08:34:26.806Z
- Modified: 2026-06-17T07:35:35.740Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

smb: client: fix potential UAF in cifs_stats_proc_write()

Skip sessions that are being teared down (status == SES_EXITING) to
avoid UAF.

(As written by CVE List.)

## Affected

- Linux Linux: from 7f48558e6489d032b1584b0cc9ac4bb11072c034 before 8fefd166fcb368c5fcf48238e3f7c8af829e0a72; from 7f48558e6489d032b1584b0cc9ac4bb11072c034 before cf03020c56d3ed28c4942280957a007b5e9544f7; from 7f48558e6489d032b1584b0cc9ac4bb11072c034 before 5b5475ce69f02ecc1b13ea23106e5b89c690429b; from 7f48558e6489d032b1584b0cc9ac4bb11072c034 before d3da25c5ac84430f89875ca7485a3828150a7e0a; a67172a013953664b1dad03c648200c70b90506c; from 3.12.48 before 3.13; 3.13 (not affected: before 3.13; from 6.1.85 up to 6.1.*; from 6.6.26 up to 6.6.*; from 6.8.5 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: before 6.1.85; from 6.2 before 6.6.26; from 6.7 before 6.8.5; 6.9

## References

- <https://git.kernel.org/stable/c/8fefd166fcb368c5fcf48238e3f7c8af829e0a72> (patch)
- <https://git.kernel.org/stable/c/cf03020c56d3ed28c4942280957a007b5e9544f7> (patch)
- <https://git.kernel.org/stable/c/5b5475ce69f02ecc1b13ea23106e5b89c690429b> (patch)
- <https://git.kernel.org/stable/c/d3da25c5ac84430f89875ca7485a3828150a7e0a> (patch)

## Sources

- CVE List: [CVE-2024-35868](https://www.cve.org/CVERecord?id=CVE-2024-35868), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-35868](https://nvd.nist.gov/vuln/detail/CVE-2024-35868), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-35868 · Whole record: https://cve.day/CVE-2024-35868.json · Rebuilt by cve.day 2026-11-25T22:58:40.573Z
