CVE-2026-139510
nilfs2: fix link count underflow when removing corrupted directory
Mitigation
- Upgrade Linux to 814f5a53b4724798795b15690ff3d1c1d9ac1eb6 or later.
Who should check
- Anyone running Linux >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 719e0bfa146c6dded44f10a9c1c53890b658cfe2; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 6f7a95bd8c5a702737740feb8f1b50d1c4ea1062; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 6665347d26bf851df6793f4f3f9a7cc72a636917; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 5f391ea18c845d2989e6c63de7a9585271f23566; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 1224daa73cc19b6b9bc9f241af30bc9998063a3e; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < e6f6d475f5d8750bea7e8ab4e945654bc92283bd; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 1cd9c49962aa6b977b0f8e90b626a47534e8ec0d; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 814f5a53b4724798795b15690ff3d1c1d9ac1eb6
- Anyone running Linux 2.6.30
Vulnerability facts
- Affected
- Linux >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 719e0bfa146c6dded44f10a9c1c53890b658cfe2; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 6f7a95bd8c5a702737740feb8f1b50d1c4ea1062; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 6665347d26bf851df6793f4f3f9a7cc72a636917; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 5f391ea18c845d2989e6c63de7a9585271f23566; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 1224daa73cc19b6b9bc9f241af30bc9998063a3e; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < e6f6d475f5d8750bea7e8ab4e945654bc92283bd; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 1cd9c49962aa6b977b0f8e90b626a47534e8ec0d; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 814f5a53b4724798795b15690ff3d1c1d9ac1eb6; Linux 2.6.30
- Fixed in
- Linux 719e0bfa146c6dded44f10a9c1c53890b658cfe2, Linux 6f7a95bd8c5a702737740feb8f1b50d1c4ea1062, Linux 6665347d26bf851df6793f4f3f9a7cc72a636917, Linux 5f391ea18c845d2989e6c63de7a9585271f23566, Linux 1224daa73cc19b6b9bc9f241af30bc9998063a3e, Linux 1cd9c49962aa6b977b0f8e90b626a47534e8ec0d, Linux 814f5a53b4724798795b15690ff3d1c1d9ac1eb6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 719e0bfa146c6dded44f10a9c1c53890b658cfe2; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 6f7a95bd8c5a702737740feb8f1b50d1c4ea1062; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 6665347d26bf851df6793f4f3f9a7cc72a636917; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 5f391ea18c845d2989e6c63de7a9585271f23566; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 1224daa73cc19b6b9bc9f241af30bc9998063a3e; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < e6f6d475f5d8750bea7e8ab4e945654bc92283bd; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 1cd9c49962aa6b977b0f8e90b626a47534e8ec0d; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 814f5a53b4724798795b15690ff3d1c1d9ac1eb6 | — | cvelist |
| Linux | 2.6.30 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-139510. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-139510.md Affected: Linux >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 719e0bfa146c6dded44f10a9c1c53890b658cfe2; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 6f7a95bd8c5a702737740feb8f1b50d1c4ea1062; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 6665347d26bf851df6793f4f3f9a7cc72a636917; >= d25006523d0b9e49fd097b2… Fixed in: Linux 719e0bfa146c6dded44f10a9c1c53890b658cfe2, Linux 6f7a95bd8c5a702737740feb8f1b50d1c4ea1062, Linux 6665347d26bf851df6793f4f3f9a7cc72a636917, Linux 5f391ea18c845d2989e6c63de7a9585271f23566, Linux 1224daa73cc19b6b9bc9f241af30bc9998063a3e, Linux 1cd9c49962aa6b977b0f8e90b626a47534e8ec0d, Linux 814f5… Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
Technologies
References
Other
- https://git.kernel.org/stable/c/719e0bfa146c6dded44f10a9c1c53890b658cfe2
- https://git.kernel.org/stable/c/6f7a95bd8c5a702737740feb8f1b50d1c4ea1062
- https://git.kernel.org/stable/c/6665347d26bf851df6793f4f3f9a7cc72a636917
- https://git.kernel.org/stable/c/5f391ea18c845d2989e6c63de7a9585271f23566
- https://git.kernel.org/stable/c/1224daa73cc19b6b9bc9f241af30bc9998063a3e
- https://git.kernel.org/stable/c/e6f6d475f5d8750bea7e8ab4e945654bc92283bd
- https://git.kernel.org/stable/c/1cd9c49962aa6b977b0f8e90b626a47534e8ec0d
- https://git.kernel.org/stable/c/814f5a53b4724798795b15690ff3d1c1d9ac1eb6
FAQ
Is CVE-2026-139510 being exploited?
There is no confirmed exploitation: CVE-2026-139510 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is CVE-2026-139510?
It has no CVSS score yet. Unknown.
Which versions are affected by CVE-2026-139510?
Linux >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 719e0bfa146c6dded44f10a9c1c53890b658cfe2; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 6f7a95bd8c5a702737740feb8f1b50d1c4ea1062; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 6665347d26bf851df6793f4f3f9a7cc72a636917; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 5f391ea18c845d2989e6c63de7a9585271f23566; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 1224daa73cc19b6b9bc9f241af30bc9998063a3e; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < e6f6d475f5d8750bea7e8ab4e945654bc92283bd; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 1cd9c49962aa6b977b0f8e90b626a47534e8ec0d; >= d25006523d0b9e49fd097b2e974e7c8c05bd7f54, < 814f5a53b4724798795b15690ff3d1c1d9ac1eb6; Linux 2.6.30.
Is there a fix for CVE-2026-139510?
Yes. Fixed in Linux 719e0bfa146c6dded44f10a9c1c53890b658cfe2, Linux 6f7a95bd8c5a702737740feb8f1b50d1c4ea1062, Linux 6665347d26bf851df6793f4f3f9a7cc72a636917, Linux 5f391ea18c845d2989e6c63de7a9585271f23566, Linux 1224daa73cc19b6b9bc9f241af30bc9998063a3e, Linux 1cd9c49962aa6b977b0f8e90b626a47534e8ec0d, Linux 814f5a53b4724798795b15690ff3d1c1d9ac1eb6. Upgrade Linux to 814f5a53b4724798795b15690ff3d1c1d9ac1eb6 or later.
How do I check if I'm affected by CVE-2026-139510?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.
More Linux kernel vulnerabilities
See all| Severity | Identifier / vulnerability | Technology | Signals | Age |
|---|---|---|---|---|
| MEDIUM 6.5 | CVE-2026-140063 Glib2: authenticated dos via pre-emptive 128mib read-buffer allocation in gdbusworker | Linux kernel+1 | ||
| MEDIUM 5.1 | CVE-2026-140038 Binutils: gprofng uses predictable /tmp directory with unchecked mkdir() enabling symlink-based file clobber | Linux kernel+1 | ||
| HIGH 7.3 | CVE-2026-139801 KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM | Linux kernel | ||
| UNSCORED | CVE-2026-139800 9p/xen: drain response work after unbinding IRQ | Linux kernel | ||
| HIGH 7.0 | CVE-2026-139799 mm/shmem: hold off eviction in shmem_writeout() | Linux kernel |