CVE-2026-139051
fs: make sure to call fsnotify_inoderemove() only once when inode is dead
Check your servers for CVE-2026-139051
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-139051 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:
fs: make sure to call fsnotify_inoderemove() only once when inode is dead
Daehyeon reported a race wherein fsnotify_removeinode() can be called when inode still has a live alias. This can lead to several undesired outcomes such as crashes in fsnotify code or avoidance of inode mark notifications.
Check that inode is really "dead", meaning no nlink and no more aliases before calling fsnotify_inoderemove() for final cleanup of inode marks. Also do not allow open_by_handle() to add new aliases to a "dead" inode.
Ideally, we'd call fsnotify_inoderemove() once last inode reference is dropped to make things simpler. Alas fsnotify inode marks currently hold inode references and thus this doesn't work. Once we teach fsnotify to avoid holding inode references, these games with dead inodes can go as well.
Exploitation
EPSS 0.35%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 30.9% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 7a91bf7f5c22c8407a9991cbd9ce5bb87caa6b4a, before 288194ff49e8e98b4369e73a40c1eb9aeb8fc2e1 affected from 7a91bf7f5c22c8407a9991cbd9ce5bb87caa6b4a, before ced6f89824f84baeb80a1775e72776978e641808 affected from 7a91bf7f5c22c8407a9991cbd9ce5bb87caa6b4a, before 18ba0295bd43fc086408f3cf515bc57491dbbe3c affected from 7a91bf7f5c22c8407a9991cbd9ce5bb87caa6b4a, before 669bb5af15d41a21359d00a441490f87a88eb52a
Other versions: unaffected
|
| Linux |
affected 2.6.13 unaffected before 2.6.13 unaffected from 6.12.117 up to and including 6.12.* unaffected from 6.18.63 up to and including 6.18.* unaffected from 7.3.4 up to and including 7.3.* unaffected 7.4-rc1 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-139051 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139051
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-139051
trivy image --scanners vuln IMAGE | grep CVE-2026-139051
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/288194ff49e8e98b4369e73a40c1eb9aeb8fc2e1 git.kernel.org
- https://git.kernel.org/stable/c/ced6f89824f84baeb80a1775e72776978e641808 git.kernel.org
- https://git.kernel.org/stable/c/18ba0295bd43fc086408f3cf515bc57491dbbe3c git.kernel.org
- https://git.kernel.org/stable/c/669bb5af15d41a21359d00a441490f87a88eb52a git.kernel.org
Source: the record CVE-2026-139051 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