Kernel memory corruption via stale CIFS file reference
Published Sep 18, 2024 · Updated Aug 5, 2026
Use-after-free in the Linux kernel CIFS client allows local users to corrupt kernel memory through file truncation on a mounted SMB share. In smb2_set_path_size(), an -EINVAL retry reuses a cfile reference that smb2_compound_op() already released instead of acquiring a new writable path reference. The path requires a valid CIFS file handle and the error-producing retry; the observed result is a KASAN-detected write to freed slab memory in a kernel worker.
Summary
What happened
Use-after-free in the Linux kernel CIFS client allows local users to corrupt kernel memory through file truncation on a mounted SMB share. In smb2_set_path_size(), an -EINVAL retry reuses a cfile reference that smb2_compound_op() already released instead of acquiring a new writable path reference. The path requires a valid CIFS file handle and the error-producing retry; the observed result is a KASAN-detected write to freed slab memory in a kernel worker.
The record
- CVE
- CVE-2024-46796
- Published
- Sep 18, 2024
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Sep 18, 2024CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=1e60bc0e954389af82f1d9a85f13a63f6572350f <5a72d1edb0843e4c927a4096f81e631031c25c28
- Affected versionversion=6.6.32 <6.6.51
- Affected versionversion=6.9
- Affected versionversion=71f15c90e785d1de4bcd65a279e7256684c25c0d <762099898309218b4a7954f3d49e985dc4dfd638
- Affected versionversion=71f15c90e785d1de4bcd65a279e7256684c25c0d <f9c169b51b6ce20394594ef674d6b10efba31220
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo