{"id":"CVE-2026-98117","state":"PUBLISHED","title":"cachefiles: Fix potential UAF/KASAN warning","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ncachefiles: Fix potential UAF/KASAN warning\n\nCurrently, trace_cachefiles_coherency() is being passed a pointer to a\n__be64 lain over the coherency data in struct cachefiles_xattr so that it\ncan display the first 8 bytes.  However, the data is of variable length and\ncould even be 0 bytes.  This could lead to a UAF or KASAN warning.\n\nFix this by making sure the buffer has room for at least 8 bytes and that\nthose 8 bytes are pre-cleared.\n\nFurther, those bytes are not 8-byte aligned, so fix the tracepoint to\nextract the data as four 2-byte words (they are 2-byte aligned) and\nreassemble the __be64.  The compiler will convert this into a single 8-byte\nload where the CPU supports it.","publishedAt":"2026-09-25T10:36:02.319Z","updatedAt":"2026-10-19T09:14:09.508Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"229105e5cfd9832a9ef1368c96e0098ec3a5fbf0","status":"affected","lessThan":"68d459e6e609c31f96a203dd6eec60c634f155e1","versionType":"git"},{"version":"229105e5cfd9832a9ef1368c96e0098ec3a5fbf0","status":"affected","lessThan":"93488ea378b4427598cace558236c110515d743b","versionType":"git"},{"version":"229105e5cfd9832a9ef1368c96e0098ec3a5fbf0","status":"affected","lessThan":"a67632c8c2688d6e0091529bcefe54bc5ee80e9b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/cachefiles/xattr.c","include/trace/events/cachefiles.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.18.53","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.7","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/cachefiles/xattr.c","include/trace/events/cachefiles.h"]}],"references":["https://git.kernel.org/stable/c/68d459e6e609c31f96a203dd6eec60c634f155e1","https://git.kernel.org/stable/c/93488ea378b4427598cace558236c110515d743b","https://git.kernel.org/stable/c/a67632c8c2688d6e0091529bcefe54bc5ee80e9b"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:43.249Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/98xxx/CVE-2026-98117.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98117","state":"PUBLISHED","datePublished":"2026-09-25T10:36:02.319Z","dateUpdated":"2026-10-19T09:14:09.508Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.317Z"},"containers":{"cna":{"title":"cachefiles: Fix potential UAF/KASAN warning","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ncachefiles: Fix potential UAF/KASAN warning\n\nCurrently, trace_cachefiles_coherency() is being passed a pointer to a\n__be64 lain over the coherency data in struct cachefiles_xattr so that it\ncan display the first 8 bytes.  However, the data is of variable length and\ncould even be 0 bytes.  This could lead to a UAF or KASAN warning.\n\nFix this by making sure the buffer has room for at least 8 bytes and that\nthose 8 bytes are pre-cleared.\n\nFurther, those bytes are not 8-byte aligned, so fix the tracepoint to\nextract the data as four 2-byte words (they are 2-byte aligned) and\nreassemble the __be64.  The compiler will convert this into a single 8-byte\nload where the CPU supports it."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"229105e5cfd9832a9ef1368c96e0098ec3a5fbf0","status":"affected","lessThan":"68d459e6e609c31f96a203dd6eec60c634f155e1","versionType":"git"},{"version":"229105e5cfd9832a9ef1368c96e0098ec3a5fbf0","status":"affected","lessThan":"93488ea378b4427598cace558236c110515d743b","versionType":"git"},{"version":"229105e5cfd9832a9ef1368c96e0098ec3a5fbf0","status":"affected","lessThan":"a67632c8c2688d6e0091529bcefe54bc5ee80e9b","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/cachefiles/xattr.c","include/trace/events/cachefiles.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.14","versionType":"semver"},{"version":"6.18.53","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.7","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/cachefiles/xattr.c","include/trace/events/cachefiles.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/68d459e6e609c31f96a203dd6eec60c634f155e1"},{"url":"https://git.kernel.org/stable/c/93488ea378b4427598cace558236c110515d743b"},{"url":"https://git.kernel.org/stable/c/a67632c8c2688d6e0091529bcefe54bc5ee80e9b"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:14:09.508Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"6.18.53"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.2.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.14","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}