CVE-2026-98117

cachefiles: Fix potential UAF/KASAN warning

Published Sep 25, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The cachefiles subsystem of the Linux kernel contained a potential use‑after‑free where the trace_cachefiles_coherency function was given a pointer to a __be64 over a variable‑length buffer that could be zero bytes long. The description indicates a potential use‑after‑free or KASAN warning that could allow memory corruption. Based on the description, it is inferred that an attacker with local access could read or corrupt kernel memory, potentially leading to privilege escalation or a kernel crash. The flaw is a classic use‑after‑free weakness.

Affected Systems

All Linux kernel releases that incorporated the original cachefiles_xattr implementation prior to the commit that introduced this patch are affected. This includes any distribution that ships a kernel version containing the vulnerable code before the patch was applied. The precise list of affected kernel versions is not numbered in the advisory, but any unpatched kernel before the commit is at risk.

Risk and Exploitability

The EPSS score is < 1% and the CISA KEV catalog does not list this vulnerability, indicating no known widespread exploitation. Based on the description, it is inferred that a use‑after‑free in kernel space could pose a risk for local attackers, potentially enabling arbitrary code execution with root privileges or causing a denial‑of‑service by crashing the kernel. The CVSS score of 7.8 indicates high severity.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that includes the cachefiles UAF fix (commit 68d459e6e609c31f96a203dd6eec60c634f155e1).
  • Disable the cachefiles subsystem while the kernel is patched, for example by using the boot parameter "cachefiles.disabled=1" or compiling the kernel without this module.
  • If the kernel upgrade cannot be performed immediately, remove the cachefiles module with modprobe -r cachefiles to prevent the vulnerable code from loading.

Generated by OpenCVE AI on October 28, 2026 at 18:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9019-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-9020-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-9160-1 Linux kernel (Azure) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-416
CPEs cpe:2.3:o:linux:linux_kernel:7.3:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.3:rc2:*:*:*:*:*:*
Metrics cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-125
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description 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.
Title cachefiles: Fix potential UAF/KASAN warning
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:14 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Analyzed
Published
Sep 25, 2026, 11:17 AM
Modified
Oct 28, 2026, 4:02 PM
Severity
Moderate
Public date
Sep 25, 2026, 12:00 AM