CVE-2026-139783

ovl: inherit FMODE_NONOTIFY when reading directory layers

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ovl: inherit FMODE_NONOTIFY when reading directory layers

Listing a merged or impure overlay directory opens the real layer
directories from ovl_dir_read(), when the readdir cache is filled.
Those opens use plain ovl_path_open(), so when the directory fd is
one that fanotify created for a permission event, they can still raise
FS_OPEN_PERM. A listener that also marks the backing filesystem and
calls getdents() on the event fd before answering then deadlocks the
same way as with the directory open fixed by the previous commit.

Store the overlay user file in struct ovl_readdir_data and pass it to
ovl_path_open_realfile() from ovl_dir_read(), for both the merged and
the impure cache. Internal readers such as ovl_check_empty_dir() and
the mount-time workdir cleanup still pass no user file.

A note about severity and real world impact: The FAN_OPEN_PERM event is
traditionally used by anti-malware protection agents and security/audit
agents. The scope that is often used in those use cases is FAN_MARK_MOUNT
and agents typically monitor multiple mounts in a mount namespace.
FAN_OPEN_PERM from directory open requires user opt-in with FAN_ONDIR.
It is often not the case that anti-malware agents monitor open of
directories. Security/audit engines are more likely to opt-into
FAN_OPEN_PERM on directories, but are less likely to list the content
of a directory within the scope of FAN_OPEN_PERM event, so the real
world impact of this bug is likely not significant.

Analysis

AI-generated

Technical impact

A flaw in the Linux kernel overlay filesystem causes the FMODE_NONOTIFY flag to be propagated when reading directory layers. When a directory within an overlay is opened, the kernel mistakenly retains this flag, triggering a FAN_OPEN_PERM event through fanotify. Systems that monitor filesystem permissions, such as anti‑malware and auditing agents, rely on fanotify to intercept file opens. The unintended notification can expose information or await a response that never arrives, leading to a deadlock when the listener attempts to list directory contents before responding to the event. The deadlock mirrors the issue fixed in a prior commit and can halt processes that handle fanotify events, effectively creating a denial‑of‑service scenario.

Affected Systems

The vulnerability affects all Linux kernel releases that use the overlay filesystem (ovl). All users who have overlay mounts enabled on the system, regardless of kernel major version, may be impacted unless the kernel has already been patched. No specific vendor or distribution version was enumerated, so any distribution shipping an affected kernel is susceptible.

Risk and Exploitability

The exploit requires that the attacker can cause a firmware to open an overlay directory that has a fanotify mark attached. In practice, this means the attacker needs to position an overlay mount within a namespace being monitored by a fanotify listener. No public exploit code or documented usage patterns were provided. The EPSS score is not available and the vulnerability is not listed in the CISA KEV catalog, suggesting a low to moderate likelihood of exploitation. However, systems that use fanotify for mandatory access controls or antivirus scanning could experience denial of service or information leakage if the flaw is triggered. The severity, while not necessarily high in the conventional CVSS sense, warrants prompt attention because the affected systems are ubiquitous in Linux distributions that employ overlayfs.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply an updated Linux kernel that incorporates the reported fix for the overlay filesystem bug
  • If a kernel upgrade is not immediately possible, restrict fanotify monitoring to non‑overlay directories or temporarily disable fanotify marks on overlay mounts
  • Monitor system logs for repeated FAN_OPEN_PERM events or signs of processes blocking due to fanotify deadlocks

Generated by OpenCVE AI on December 1, 2026 at 01:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-284
CWE-759
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ovl: inherit FMODE_NONOTIFY when reading directory layers Listing a merged or impure overlay directory opens the real layer directories from ovl_dir_read(), when the readdir cache is filled. Those opens use plain ovl_path_open(), so when the directory fd is one that fanotify created for a permission event, they can still raise FS_OPEN_PERM. A listener that also marks the backing filesystem and calls getdents() on the event fd before answering then deadlocks the same way as with the directory open fixed by the previous commit. Store the overlay user file in struct ovl_readdir_data and pass it to ovl_path_open_realfile() from ovl_dir_read(), for both the merged and the impure cache. Internal readers such as ovl_check_empty_dir() and the mount-time workdir cleanup still pass no user file. A note about severity and real world impact: The FAN_OPEN_PERM event is traditionally used by anti-malware protection agents and security/audit agents. The scope that is often used in those use cases is FAN_MARK_MOUNT and agents typically monitor multiple mounts in a mount namespace. FAN_OPEN_PERM from directory open requires user opt-in with FAN_ONDIR. It is often not the case that anti-malware agents monitor open of directories. Security/audit engines are more likely to opt-into FAN_OPEN_PERM on directories, but are less likely to list the content of a directory within the scope of FAN_OPEN_PERM event, so the real world impact of this bug is likely not significant.
Title ovl: inherit FMODE_NONOTIFY when reading directory layers
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-284

    Improper Access Control

  • CWE-759

    Use of a One-Way Hash without a Salt

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:37 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:20 PM
Modified
Nov 30, 2026, 2:20 PM