smb: client: split cifsFileInfo bitfields to avoid shared-byte RMW races
- 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.160, 6.12.113, 6.18.56, 7.2.10
- 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
Summary
In the Linux kernel, the following vulnerability has been resolved: smb: client: split cifsFileInfo bitfields to avoid shared-byte RMW races The invalidHandle, swapfile, oplock_break_cancelled, offload, and status_file_deleted fields are stored in the same bitfield byte in struct cifsFileInfo, but are updated in different code paths that may run simultaneously, and are protected by different locks. Since bitfield assignments generate byte-level read-modify-write operations, a modification to one flag can overwrite a concurrent modification to another flag. To avoid these races, convert these flags from a bitfield to separate bool fields.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
Version range not reported
- Linux Linux
2.6.32
- KernelLinux
From 2.6.32 · fixed in 6.6.160; From 6.7.0 · fixed in 6.12.113; From 6.13.0 · fixed in 6.18.56; From 6.19.0 · fixed in 7.2.10
References 8
git.kernel.org
- stable/c/f255e87b4f7eda568c37d6eae5db1d1a8aca5968
- stable/c/7fa619367869be705942f087b2ecd209efc78fe1
- stable/c/e961baf9c1a4f2e93a55f8eb2c6151fc27b96a4c
- stable/c/3b8e7928cf1928555dc05d172dd02fb0e7692ec4
- stable/c/3786ee67658a2c80fef2544e7de2cd329e043cf9
- stable/c/4165641d06ef44f3a31b77a28048b6c737e885e7
- stable/c/d9d23d115610e0342e768f6cb525d91c7b154027
- stable/c/19465a9aeb664f1d710d0d22c07c31bfb7c85446