CVE-2026-139783
ovl: inherit FMODE_NONOTIFY when reading directory layers
Check your servers for CVE-2026-139783
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139783 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.34%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 30.0% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c, before d0f1e713010e7706bd50552a0fb58dc7537fa2b4 affected from e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c, before 3b35ae5f771b93c2b1a49fa72f70f6a522b685d1 affected from e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c, before 268bf1aa5b52de142347de75098700f616490341 affected from e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c, before e9d1ef4cade7b6eacea46e875862b00252b8edb0 affected from e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c, before 80317133e06a3ca4f5a3343e9f0e0df1a4b7a023 affected from e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c, before 8a88208eed4173a572f195c0adc9e5b7545f7e81 affected from e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c, before 0f2826c8db7e40a423bb0afc06e748341eef70e7 affected from e9be9d5e76e34872f0c37d72e25bc27fe9e2c54c, before 9ff338af0e002fe217cfa16b1289b76f6b21fc72
Other versions: unaffected
|
| Linux |
affected 3.18 unaffected before 3.18 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.119 up to and including 6.12.* unaffected from 6.18.65 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139783 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139783
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-139783
trivy image --scanners vuln IMAGE | grep CVE-2026-139783
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/d0f1e713010e7706bd50552a0fb58dc7537fa2b4 git.kernel.org
- https://git.kernel.org/stable/c/3b35ae5f771b93c2b1a49fa72f70f6a522b685d1 git.kernel.org
- https://git.kernel.org/stable/c/268bf1aa5b52de142347de75098700f616490341 git.kernel.org
- https://git.kernel.org/stable/c/e9d1ef4cade7b6eacea46e875862b00252b8edb0 git.kernel.org
- https://git.kernel.org/stable/c/80317133e06a3ca4f5a3343e9f0e0df1a4b7a023 git.kernel.org
- https://git.kernel.org/stable/c/8a88208eed4173a572f195c0adc9e5b7545f7e81 git.kernel.org
- https://git.kernel.org/stable/c/0f2826c8db7e40a423bb0afc06e748341eef70e7 git.kernel.org
- https://git.kernel.org/stable/c/9ff338af0e002fe217cfa16b1289b76f6b21fc72 git.kernel.org
Source: the record CVE-2026-139783 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse