CVE-2026-139510
nilfs2: fix link count underflow when removing corrupted directory
Check your servers for CVE-2026-139510
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-139510 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:
nilfs2: fix link count underflow when removing corrupted directory
When removing an empty directory with a corrupted link count (e.g., i_nlink is 1 due to filesystem corruption), nilfs_rmdir() calls drop_nlink() via nilfs_do_unlink() and then calls drop_nlink() again on the directory inode. This second call causes an underflow of i_nlink, triggering a kernel WARNING in drop_nlink().
Fix this issue by using clear_nlink() instead of drop_nlink() to finalize the link count reset for the target directory in nilfs_rmdir(). Additionally, log a warning message when i_nlink is not 2 before removing an empty directory to notify about the link count inconsistency.
Exploitation
EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 12.0% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from d25006523d0b9e49fd097b2e974e7c8c05bd7f54, before 719e0bfa146c6dded44f10a9c1c53890b658cfe2 affected from d25006523d0b9e49fd097b2e974e7c8c05bd7f54, before 6f7a95bd8c5a702737740feb8f1b50d1c4ea1062 affected from d25006523d0b9e49fd097b2e974e7c8c05bd7f54, before 6665347d26bf851df6793f4f3f9a7cc72a636917 affected from d25006523d0b9e49fd097b2e974e7c8c05bd7f54, before 5f391ea18c845d2989e6c63de7a9585271f23566 affected from d25006523d0b9e49fd097b2e974e7c8c05bd7f54, before 1224daa73cc19b6b9bc9f241af30bc9998063a3e affected from d25006523d0b9e49fd097b2e974e7c8c05bd7f54, before e6f6d475f5d8750bea7e8ab4e945654bc92283bd affected from d25006523d0b9e49fd097b2e974e7c8c05bd7f54, before 1cd9c49962aa6b977b0f8e90b626a47534e8ec0d affected from d25006523d0b9e49fd097b2e974e7c8c05bd7f54, before 814f5a53b4724798795b15690ff3d1c1d9ac1eb6
Other versions: unaffected
|
| Linux |
affected 2.6.30 unaffected before 2.6.30 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-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-139510 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139510
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-139510
trivy image --scanners vuln IMAGE | grep CVE-2026-139510
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/719e0bfa146c6dded44f10a9c1c53890b658cfe2 git.kernel.org
- https://git.kernel.org/stable/c/6f7a95bd8c5a702737740feb8f1b50d1c4ea1062 git.kernel.org
- https://git.kernel.org/stable/c/6665347d26bf851df6793f4f3f9a7cc72a636917 git.kernel.org
- https://git.kernel.org/stable/c/5f391ea18c845d2989e6c63de7a9585271f23566 git.kernel.org
- https://git.kernel.org/stable/c/1224daa73cc19b6b9bc9f241af30bc9998063a3e git.kernel.org
- https://git.kernel.org/stable/c/e6f6d475f5d8750bea7e8ab4e945654bc92283bd git.kernel.org
- https://git.kernel.org/stable/c/1cd9c49962aa6b977b0f8e90b626a47534e8ec0d git.kernel.org
- https://git.kernel.org/stable/c/814f5a53b4724798795b15690ff3d1c1d9ac1eb6 git.kernel.org
Source: the record CVE-2026-139510 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