CVE-2026-53174

ovl: keep err zero after successful ovl_cache_get()

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

Analysis

AI-generated

Technical 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 be returned as a bogus non‑zero error. 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

The CVSS score of 7.8 indicates a high severity risk, while the EPSS score of less than 1% (about 0.0012) indicates a low but nonzero probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. 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. If an attacker could control overlay mounts or perform many readdir operations, they might induce repeated failures, potentially leading to application crashes or denial of service in applications that do not handle the erroneous error codes.

Remediation

No solution or workaround provided in the CVE record.

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 August 12, 2026 at 08:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8489-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8566-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8569-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8663-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8664-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-3 Linux kernel (Oracle) vulnerabilities
History
Type Values Removed Values Added
Metrics 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-170
Type Values Removed Values Added
Weaknesses CWE-170
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
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Aug 5, 2026, 12:33 PM
Reserved
Jun 9, 2026, 7:44 AM
Status
Analyzed
Published
Jun 25, 2026, 9:16 AM
Modified
Jul 6, 2026, 12:44 PM
Severity
Public date
Jun 25, 2026, 12:00 AM