Overlayfs in Linux kernel fails to inherit FMODE_NONOTIFY
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
In the Linux kernel, overlayfs does not inherit the FMODE_NONOTIFY flag when reading merged or impure directory layers, so those opens can raise FS_OPEN_PERM events. A fanotify listener that marks the backing filesystem and calls getdents() on the event file descriptor before answering deadlocks. The kernel notes that the real-world impact is likely not significant.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | before 5.10.275; before 5.15.226; before 6.1.193; before 6.6.163; before 6.12.119; before 6.18.65; before 7.3.6 | 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 | Patch available | CNA |
| Linux | Linux | — | 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc2 | Patch available | CNA |
- Linux VendorLinux Affected before 5.10.275; before 5.15.226; before 6.1.193; before 6.6.163; before 6.12.119; before 6.18.65; before 7.3.6 Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 Patch available CNA
- Linux VendorLinux Affected — Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc2 Patch available CNA
Remediation
Upgrade to 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, or 7.3.6, depending on the branch in use. The sources also list 7.4-rc2 as a fixed version.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA Linux (Linux) Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6
- Fix · CNA Linux (Linux) Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc2
Timeline
- 2026-11-30 Threatist record created from CVE-2026-139783
- 2026-11-30 Alias added: GHSA-7rff-6c9j-2vm4
References
Other 8
- https://git.kernel.org/stable/c/d0f1e713010e7706bd50552a0fb58dc7537fa2b4
- https://git.kernel.org/stable/c/3b35ae5f771b93c2b1a49fa72f70f6a522b685d1
- https://git.kernel.org/stable/c/268bf1aa5b52de142347de75098700f616490341
- https://git.kernel.org/stable/c/e9d1ef4cade7b6eacea46e875862b00252b8edb0
- https://git.kernel.org/stable/c/80317133e06a3ca4f5a3343e9f0e0df1a4b7a023
- https://git.kernel.org/stable/c/8a88208eed4173a572f195c0adc9e5b7545f7e81
- https://git.kernel.org/stable/c/0f2826c8db7e40a423bb0afc06e748341eef70e7
- https://git.kernel.org/stable/c/9ff338af0e002fe217cfa16b1289b76f6b21fc72
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-139783 · CVE Program
- CVE-2026-139783 · NVD
- GHSA-7rff-6c9j-2vm4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences