Linux kernel overlayfs FMODE_NONOTIFY directory open permission bug
CVE-2026-139783 Published on November 30, 2026
ovl: inherit FMODE_NONOTIFY when reading directory layers
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.
Products Associated with CVE-2026-139783
Want to know whenever a new CVE is published for Linux Kernel? stack.watch will email you.
Affected Versions
Linux:- Version 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and below d0f1e713010e7706bd50552a0fb58dc7537fa2b4 is affected.
- Version 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and below 3b35ae5f771b93c2b1a49fa72f70f6a522b685d1 is affected.
- Version 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and below 268bf1aa5b52de142347de75098700f616490341 is affected.
- Version 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and below e9d1ef4cade7b6eacea46e875862b00252b8edb0 is affected.
- Version 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and below 80317133e06a3ca4f5a3343e9f0e0df1a4b7a023 is affected.
- Version 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and below 8a88208eed4173a572f195c0adc9e5b7545f7e81 is affected.
- Version 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and below 0f2826c8db7e40a423bb0afc06e748341eef70e7 is affected.
- Version 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and below 9ff338af0e002fe217cfa16b1289b76f6b21fc72 is affected.
- Before 5.10.275 is affected.
- Before 5.15.226 is affected.
- Before 6.1.193 is affected.
- Before 6.6.163 is affected.
- Before 6.12.119 is affected.
- Before 6.18.65 is affected.
- Before 7.3.6 is affected.
- Version 5.10.275, <= 5.10.* is unaffected.
- Version 5.15.226, <= 5.15.* is unaffected.
- Version 6.1.193, <= 6.1.* is unaffected.
- Version 6.6.163, <= 6.6.* is unaffected.
- Version 6.12.119, <= 6.12.* is unaffected.
- Version 6.18.65, <= 6.18.* is unaffected.
- Version 7.3.6, <= 7.3.* is unaffected.
- Version 7.4-rc2, <= * is unaffected.