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

ovl: keep err zero after successful ovl_cache_get()

ovl_iterate_merged() stores PTR_ERR(cache) in err before checking
IS_ERR(cache). On success err holds the truncated cache pointer and
can be returned as a bogus non-zero error.

The syzbot reproducer reaches this through overlay-on-overlay readdir:

getdents64
iterate_dir(outer overlay file)
ovl_iterate_merged()
ovl_cache_get()
ovl_dir_read_merged()
ovl_dir_read()
iterate_dir(inner overlay file)
ovl_iterate_merged()

Only compute PTR_ERR(cache) on the error path.
Published: 2026-06-25
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel contains a bug where the overlay filesystem implementation mistakenly keeps a non‑zero error code after a successful cache lookup. The function ovl_iterate_merged stores the result of PTR_ERR(cache) in an error variable before verifying the pointer is actually an error, so a successful call can return a bogus non‑zero error to the caller. Based on the description, it is inferred that this can cause processes performing directory reads over overlay mounts to incorrectly interpret normal operation as a failure, potentially leading to application crashes or denial of service. The description does not explicitly state a confidentiality or integrity breach; it is inferred that the vulnerability does not directly compromise those aspects.

Affected Systems

Linux kernel installations that include the overlayfs module and are running a version prior to the applied fix are affected. The specific vendor is the Linux kernel project, but no version range is listed in the data, so all kernels that still contain the unpatched code are considered vulnerable.

Risk and Exploitability

Based on the description, the likely attack vector is local: an attacker would need to interact with a system that mounts overlay filesystems and performs directory reads. The bug does not provide remote code execution or privilege escalation, so the attack surface is confined to the user with sufficient privileges to mount and access overlays. The absence of an EPSS score and the lack of KEV listing indicate a low probability of widespread exploitation. If an attacker could control overlay mounts or execute many readdir calls, they might induce repeated failures; however, orchestrating such an attack would require additional user privileges beyond ordinary read access.

Generated by OpenCVE AI on June 25, 2026 at 11:34 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that incorporates the fixed ovl_iterate_merged error handling logic.
  • If kernel upgrade is not feasible, consider disabling or uninstalling overlayfs support to prevent the flawed error reporting from influencing normal operations.
  • Verify overlay filesystem behavior in your environment, ensuring readdir calls do not return unexpected errors, and modify application error handling to tolerate non‑fatal directory read failures.

Generated by OpenCVE AI on June 25, 2026 at 11:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 25 Jun 2026 12:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-170

Thu, 25 Jun 2026 09:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ovl: keep err zero after successful ovl_cache_get() ovl_iterate_merged() stores PTR_ERR(cache) in err before checking IS_ERR(cache). On success err holds the truncated cache pointer and can be returned as a bogus non-zero error. The syzbot reproducer reaches this through overlay-on-overlay readdir: getdents64 iterate_dir(outer overlay file) ovl_iterate_merged() ovl_cache_get() ovl_dir_read_merged() ovl_dir_read() iterate_dir(inner overlay file) ovl_iterate_merged() Only compute PTR_ERR(cache) on the error path.
Title ovl: keep err zero after successful ovl_cache_get()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-25T08:38:51.366Z

Reserved: 2026-06-09T07:44:35.389Z

Link: CVE-2026-53174

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-25T14:45:02Z

Weaknesses
  • CWE-170

    Improper Null Termination