cachefiles: Fix potential UAF/KASAN warning
- 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.18.53, 7.2.7
- 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: cachefiles: Fix potential UAF/KASAN warning Currently, trace_cachefiles_coherency() is being passed a pointer to a __be64 lain over the coherency data in struct cachefiles_xattr so that it can display the first 8 bytes. However, the data is of variable length and could even be 0 bytes. This could lead to a UAF or KASAN warning. Fix this by making sure the buffer has room for at least 8 bytes and that those 8 bytes are pre-cleared. Further, those bytes are not 8-byte aligned, so fix the tracepoint to extract the data as four 2-byte words (they are 2-byte aligned) and reassemble the __be64. The compiler will convert this into a single 8-byte load where the CPU supports it.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 229105e5cfd9832a9ef1368c96e0098ec3a5fbf0 · fixed in 68d459e6e609c31f96a203dd6eec60c634f155e1; From 229105e5cfd9832a9ef1368c96e0098ec3a5fbf0 · fixed in 93488ea378b4427598cace558236c110515d743b; From 229105e5cfd9832a9ef1368c96e0098ec3a5fbf0 · fixed in a67632c8c2688d6e0091529bcefe54bc5ee80e9b
- Linux Linux
6.14
- KernelLinux
From 6.14.0 · fixed in 6.18.53; From 6.19.0 · fixed in 7.2.7