smb: client: fix potential UAF in smb2_close_cached_fid()
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.6.117, 6.12.58, 6.17.8
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix potential UAF in smb2_close_cached_fid() find_or_create_cached_dir() could grab a new reference after kref_put() had seen the refcount drop to zero but before cfid_list_lock is acquired in smb2_close_cached_fid(), leading to use-after-free. Switch to kref_put_lock() so cfid_release() is called with cfid_list_lock held, closing that gap.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- Record last updated
Affected versions
- Linux Linux
From ebe98f1447bbccf8228335c62d86af02a0ed23f7 · fixed in cb52d9c86d70298de0ab7c7953653898cbc0efd6; From ebe98f1447bbccf8228335c62d86af02a0ed23f7 · fixed in 065bd62412271a2d734810dd50336cae88c54427; From ebe98f1447bbccf8228335c62d86af02a0ed23f7 · fixed in bdb596ceb4b7c3f28786a33840263728217fbcf5; From ebe98f1447bbccf8228335c62d86af02a0ed23f7 · fixed in 734e99623c5b65bf2c03e35978a0b980ebc3c2f8
- Linux Linux
6.1
- KernelLinux
From 6.1.0 · fixed in 6.6.117; From 6.7.0 · fixed in 6.12.58; From 6.13.0 · fixed in 6.17.8