Skip to main content

Linux Kernel EUVDEUVD-2026-45613

| CVE-2026-64040 MEDIUM
Unchecked Return Value (CWE-252)
2026-07-19 Linux GHSA-249r-xf46-wj4v
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain local low-privileged access
  2. Exploit
    Exercise cachefiles backend under failing vfs_mkdir condition
  3. Execution
    Receive NULL instead of error pointer
  4. Impact
    Trigger NULL-pointer dereference / kernel oops

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Return value checking
Exploitation Conditions

Requires local access with at least low privileges (PR:L) on a system where the cachefiles/fscache caching backend is actually in use (typically as the on-disk cache for network filesystems such as NFS or AFS, e.g. with cachefilesd running). The vulnerable error path is only reached when vfs_mkdir() itself fails - e.g. the cache backing filesystem is out of space, read-only, or returns a filesystem error - so the flaw is not reachable during normal successful operation. Limiting factors: no remote vector (AV:L), no code execution or data disclosure (impact is confined to A:H, i.e. a kernel oops/DoS), and cachefiles must be configured and active, making default desktop/server installs without network-filesystem caching largely unaffected.

Impact

This is a low-to-moderate priority defensive-hygiene bug, not an urgent threat. The CVSS vector (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, base 5.5 MEDIUM) consistently describes a local, low-privilege, availability-only impact with no confidentiality or integrity loss - matching CWE-252 (unchecked return value) where vfs_mkdir() failure returns ERR_PTR(0)/NULL instead of a real error pointer, a classic precursor to a NULL-pointer dereference and kernel oops/panic. The low-risk signals corroborate each other: EPSS is 0.19% (9th percentile), there is no CISA KEV listing, and no public exploit was referenced, so there is no evidence of active or impending exploitation. One signal CONFLICTS with the impact data and should be flagged: the input Tag 'Information Disclosure' contradicts the CVSS vector, which explicitly rates C:N/I:N and A:H - this is an availability (denial-of-service/crash) issue, not an information-disclosure one. Realistically this is a high-volume-style Linux kernel stable-tree hardening fix rather than a targeted-attack vulnerability; prioritize via normal kernel patch cadence, not emergency response.

Exploit ScenarioDerived

A local, low-privileged user (or a process interacting with the fscache/cachefiles caching backend used by network filesystems such as NFS/AFS) triggers a cachefiles directory-creation operation under conditions where vfs_mkdir() fails - for example a full or read-only backing filesystem. Because the error code is not extracted, a NULL 'error pointer' propagates down the error path and can be dereferenced, crashing the kernel (denial of service). No public exploit code was identified; exploitation requires local access and the cachefiles facility to be in use.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 06, 2026

Improper error handling in the Linux kernel's cachefiles (fscache) backend can cause a failed vfs_mkdir() to be converted into a NULL error pointer (ERR_PTR(0)) instead of a valid ERR_PTR, so the caller treats the failed directory creation as success and subsequently dereferences a bad/NULL object, producing a kernel oops and denial of service. The flaw is local-only (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, 5.5) and is only reachable when cachefiles is actually configured and active - typically as the on-disk cache for NFS or AFS via cachefilesd - and when vfs_mkdir() itself fails, for example because the cache backing filesystem is full, read-only, or returning a filesystem error; the error path is not exercised during normal successful operation. There is no public exploit code identified at time of analysis, EPSS is 0.19% (9th percentile), and vendor/distro patches are available, including upstream stable commits and Ubuntu USN-8593-1.

RemediationAI

Apply the vendor-released kernel fix: upstream commits 0940108d27c6995e02819ff832be11892f0b208b and 8a220d1c312c66194f4a33dd52d1fba42bc2b341 correct the missing PTR_ERR() extraction, and EUVD lists the patched stable versions as Linux 7.0.11 and Linux 7.1, so upgrade to a kernel build containing those commits or later. Distribution users should install the updated kernel packages referenced in the vendor advisory, e.g. Ubuntu USN-8593-1 (https://ubuntu.com/security/notices/USN-8593-1), and reboot into the new kernel since this is a compiled-in kernel fix; the NVD record at https://nvd.nist.gov/vuln/detail/CVE-2026-64040 can be used for tracking. Where immediate kernel upgrades are not possible, the most effective compensating control is to stop and disable the cachefiles service (systemctl stop cachefilesd && systemctl disable cachefilesd) and unmount or avoid cachefiles-backed mounts, which removes the vulnerable code path entirely at the cost of losing on-disk caching performance for NFS/AFS workloads. Additionally, keep the cache backing filesystem writable and with sufficient free space and avoid forcing vfs_mkdir() failures (full or read-only cache partitions), since the bug is only reachable when directory creation fails; note this is a workload-hardening measure rather than a guaranteed barrier, and only the kernel patch fully resolves the defect.

Affected VersionsENISA

Linux 6.15
Linux patch: 7.0.11
Linux 406fad7698f5bf21ab6b5ca195bf4b9e0b3990ed <0940108d27c6995e02819ff832be11892f0b208b
Linux patch: 0
Linux 406fad7698f5bf21ab6b5ca195bf4b9e0b3990ed <8a220d1c312c66194f4a33dd52d1fba42bc2b341
Linux patch: 7.1

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected subsystem is cachefiles, the on-disk cache backend for the kernel's fscache network-filesystem caching layer (used to cache NFS/AFS data locally). The root cause is CWE-252 (Unchecked Return Value): VFS helpers such as vfs_mkdir() return an error-encoded pointer, and callers are expected to test it with IS_ERR() and then extract the numeric error with PTR_ERR(). In this code path the cachefiles code detects the failure but fails to extract the error code into ret, so execution reaches the mkdir_error label with ret == 0. Returning ERR_PTR(0) is equivalent to returning NULL, so the caller receives what appears to be a valid (NULL) dentry/directory result rather than an error, leading to an invalid dereference and a kernel oops. CPE data identifies the affected product family as linux:linux (the upstream kernel); EUVD lists Linux 6.15 as affected and records fixes landing in the 7.0.11 and 7.1 stable trees via commits 0940108d27c6995e02819ff832be11892f0b208b and 8a220d1c312c66194f4a33dd52d1fba42bc2b341 (predecessor commit 406fad7698f5bf21ab6b5ca195bf4b9e0b3990ed). Because the impact is confined to a kernel oops/denial of service (C:N/I:N/A:H) with no remote vector (AV:L) and no code execution or data disclosure, the assessment classifies this as a defensive-hygiene defect rather than an urgent threat.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.5 MEDIUM

Local trigger via cachefiles (AV:L) by a low-privileged user (PR:L) on an error path causing a NULL-deref kernel crash, so A:H only with C:N/I:N.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE MEDIUM
Red Hat 5.5 LOW

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
CVSS changed
Oct 06, 2026 - 18:52 NVD
5.5 (MEDIUM)
Patch available
Jul 19, 2026 - 17:03 EUVD
CVE Published
Jul 19, 2026 - 15:39 nvd
MEDIUM 5.5
CVE Published
Jul 19, 2026 - 15:39 cve.org
UNKNOWN (no severity yet)

DescriptionNVD

In the Linux kernel, the following vulnerability has been resolved:

cachefiles: Fix error return when vfs_mkdir() fails

When vfs_mkdir() fails, the error code is not extracted from the returned error pointer. This causes mkdir_error to be reached with ret=0, which leads to returning ERR_PTR(0) (NULL) instead of a proper error pointer.

Fix this by extracting the error code from the error pointer when vfs_mkdir() fails.

Threat Intelligence Overview

EPSS Score
0.2%
Top 91% exploitable
Prevalence
Ubiquitous
Linux kernel runs across a vast fraction of production environments worldwide
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise Desktop 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 15 SP7 Not-Affected
SUSE Linux Enterprise High Availability Extension 16.0 Not-Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy