Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessLocal user on CephFS mount
-
ExploitIssue async unlink syscall
-
ExecutionRace MDS completion setting i_nlink to zero
-
ImpactTrigger drop_nlink underrun kernel WARNING
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
|
| Exploitation Conditions | Requires the CephFS kernel client to be mounted and the async unlink code path to be active - which itself depends on the MDS granting the 'Fxr' async capabilities (the researcher had to patch get_caps_for_async_unlink() to force this in testing, though the original WARNING was observed on an unpatched kernel). A local user with permission to unlink files on the CephFS mount is needed (PR:L). The flaw triggers only when a concurrent set_nlink() - from CEPH_CAP_OP_IMPORT, CEPH_CAP_OP_GRANT, or a CLIENT_REPLY (including the client's own unlink completion) - drives i_nlink to zero in the window between ceph_mdsc_submit_request() and drop_nlink(). Limiting factors: local-only access (AV:L), an unprivileged but authenticated local account, a narrow timing race (AC:H) that is non-trivial to win, only the async path is affected, and the impact is a kernel WARNING / counter underrun rather than disclosure or code execution. |
| Impact | This is a medium-severity, low-real-world-priority issue despite the A:H impact flag. All exploitability signals point downward: the CVSS vector is AV:L (local access required), AC:H (a genuine TOCTOU race, consistent with CWE-367), PR:L (an unprivileged local user), with C:N/I:N and impact confined to availability (A:H). EPSS is 0.02% (7th percentile), there is no CISA KEV listing, and no public exploit identified at time of analysis, so there is no public exploit identified at time of analysis. The realistic worst case described in the sources is a kernel WARNING (fs/inode.c:407 drop_nlink underrun) and an inconsistent i_nlink counter - not code execution - so the A:H rating overstates practical blast radius. The vuln.today decision label is 'this_month' and a patch is available across many stable branches, so it should be picked up in normal kernel patching cadence rather than as an emergency. One data conflict to flag: the 'Information Disclosure' tag directly contradicts the CVSS metric C:N (no confidentiality impact) and the CWE-367 availability-oriented mechanism - treat the tag as mislabeled, not as evidence of data exposure. |
| Exploit ScenarioDerived | A local unprivileged user on a host with a CephFS kernel mount repeatedly removes files on the shared filesystem while another Ceph client (or the user's own unlink completion) deletes the same entries concurrently. If the MDS completion reply sets i_nlink to zero in a worker thread before ceph_unlink() reaches drop_nlink(), the counter underruns and the kernel emits a WARNING with possible inode-state inconsistency. The AC:H race is narrow and hard to win reliably, and no public exploit identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 06, 2026
Concurrent inode link-count updates in the Linux kernel's CephFS client can drive i_nlink below zero during an asynchronous unlink, tripping the drop_nlink() WARNING at fs/inode.c and corrupting the cached link count. Only the async unlink code path is affected, and it requires a mounted CephFS filesystem whose MDS actually grants the "Fxr" async capabilities plus a local user permitted to unlink files on that mount; the race window is between ceph_mdsc_submit_request() and drop_nlink() and is narrow (AC:H). Impact is an availability/consistency problem in the client (kernel WARNING, underrun) rather than disclosure or code execution, EPSS is negligible at 0.02% (7th percentile), the issue is not in CISA KEV, and no public exploit code was identified at time of analysis - the upstream commit instead documents a manual reproducer that required patching get_caps_for_async_unlink() to force the async path.
RemediationAI
Vendor-released patch: apply the stable kernel updates that carry the fix - 5.10.253, 5.15.203, 6.1.167, 6.6.130, 6.12.78, 6.18.19, 6.19.9, or the 7.0 line - or update to a distribution kernel that includes the corresponding stable commit (for Ubuntu, see USN-8567-1 at https://ubuntu.com/security/notices/USN-8567-1); the individual upstream patches are linked from https://git.kernel.org/stable/c/9b31e88ac5623d15c8bc46f69dfe1d3b43a8f67c and the sibling stable commit URLs listed in the references. Because the defect is a race in the client's in-memory i_nlink bookkeeping that is serialized by ceph_inode_info.i_ceph_lock only after the fix, the vendor patch is the complete remedy and no separate workaround is documented in the available sources; deployments that cannot immediately update should note that only the async unlink path is affected and that exposure additionally depends on the MDS granting the "Fxr" async capabilities, so priority can be set accordingly (vuln.today decision: this_month, not act_now).
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The flaw is a CWE-367 time-of-check/time-of-use race in the Ceph distributed filesystem kernel client. ceph_unlink() submits CEPH_MDS_OP_UNLINK to the metadata server via ceph_mdsc_submit_request() without waiting for the reply, then decrements i_nlink on the assumption the unlink will succeed. In between, a worker thread can process CEPH_CAP_OP_IMPORT, CEPH_CAP_OP_GRANT, or a CEPH_MSG_CLIENT_REPLY (possibly the client's own unlink completion); those paths call set_nlink(), and if the value received from the MDS is zero, the subsequent decrement is illegal and produces the observed drop_nlink+0x50/0x68 WARNING with a vfs_unlink/do_unlinkat/__arm64_sys_unlinkat call trace. The fix skips the decrement when i_nlink is already zero, but a bare zero check would still be racy, so the update is serialized under the ceph_inode_info.i_ceph_lock spinlock, which ceph_fill_inode() and handle_cap_grant() already hold while calling set_nlink(); the commit cites prior art in NFS and SMB (inode.i_lock) and AFS (afs_vnode.cb_lock), all of which combine the zero check with locking. Supporting infrastructure spans the kernel VFS (drop_nlink/set_nlink in fs/inode.c) and the Ceph MDS capability protocol; CPE data identifies the affected software simply as linux:linux, i.e. mainline and stable kernel branches, and EUVD places the affected code back to Linux 5.7. Note that third-party tagging labels this as Information Disclosure, while the assessed vector is availability-only (C:N/I:N/A:H).
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
Local CephFS unlink only (AV:L); TOCTOU race between submit and drop_nlink gives AC:H; any local user able to unlink suffices (PR:L); impact is a kernel WARNING/counter underrun, so C:N/I:N/A:H.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
In the Linux kernel, the following vulnerability has been resolved:
ceph: fix i_nlink underrun during async unlink
During async unlink, we drop the i_nlink counter before we receive the completion (that will eventually update the i_nlink) because "we assume that the unlink will succeed". That is not a bad idea, but it races against deletions by other clients (or against the completion of our own unlink) and can lead to an underrun which emits a WARNING like this one:
WARNING: CPU: 85 PID: 25093 at fs/inode.c:407 drop_nlink+0x50/0x68 Modules linked in: CPU: 85 UID: 3221252029 PID: 25093 Comm: php-cgi8.1 Not tainted 6.14.11-cm4all1-ampere #655 Hardware name: Supermicro ARS-110M-NR/R12SPD-A, BIOS 1.1b 10/17/2023 pstate: 60400009 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : drop_nlink+0x50/0x68 lr : ceph_unlink+0x6c4/0x720 sp : ffff80012173bc90 x29: ffff80012173bc90 x28: ffff086d0a45aaf8 x27: ffff0871d0eb5680 x26: ffff087f2a64a718 x25: 0000020000000180 x24: 0000000061c88647 x23: 0000000000000002 x22: ffff07ff9236d800 x21: 0000000000001203 x20: ffff07ff9237b000 x19: ffff088b8296afc0 x18: 00000000f3c93365 x17: 0000000000070000 x16: ffff08faffcbdfe8 x15: ffff08faffcbdfec x14: 0000000000000000 x13: 45445f65645f3037 x12: 34385f6369706f74 x11: 0000a2653104bb20 x10: ffffd85f26d73290 x9 : ffffd85f25664f94 x8 : 00000000000000c0 x7 : 0000000000000000 x6 : 0000000000000002 x5 : 0000000000000081 x4 : 0000000000000481 x3 : 0000000000000000 x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff08727d3f91e8 Call trace: drop_nlink+0x50/0x68 (P) vfs_unlink+0xb0/0x2e8 do_unlinkat+0x204/0x288 __arm64_sys_unlinkat+0x3c/0x80 invoke_syscall.constprop.0+0x54/0xe8 do_el0_svc+0xa4/0xc8 el0_svc+0x18/0x58 el0t_64_sync_handler+0x104/0x130 el0t_64_sync+0x154/0x158
In ceph_unlink(), a call to ceph_mdsc_submit_request() submits the CEPH_MDS_OP_UNLINK to the MDS, but does not wait for completion.
Meanwhile, between this call and the following drop_nlink() call, a worker thread may process a CEPH_CAP_OP_IMPORT, CEPH_CAP_OP_GRANT or just a CEPH_MSG_CLIENT_REPLY (the latter of which could be our own completion). These will lead to a set_nlink() call, updating the i_nlink counter to the value received from the MDS. If that new i_nlink value happens to be zero, it is illegal to decrement it further. But that is exactly what ceph_unlink() will do then.
The WARNING can be reproduced this way:
- Force async unlink; only the async code path is affected. Having
no real clue about Ceph internals, I was unable to find out why the MDS wouldn't give me the "Fxr" capabilities, so I patched get_caps_for_async_unlink() to always succeed.
(Note that the WARNING dump above was found on an unpatched kernel, without this kludge - this is not a theoretical bug.)
- Add a sleep call after ceph_mdsc_submit_request() so the unlink
completion gets handled by a worker thread before drop_nlink() is called. This guarantees that the i_nlink is already zero before drop_nlink() runs.
The solution is to skip the counter decrement when it is already zero, but doing so without a lock is still racy (TOCTOU). Since ceph_fill_inode() and handle_cap_grant() both hold the ceph_inode_info.i_ceph_lock spinlock while set_nlink() runs, this seems like the proper lock to protect the i_nlink updates.
I found prior art in NFS and SMB (using inode.i_lock) and AFS (using afs_vnode.cb_lock). All three have the zero check as well.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
EUVD-2026-28726
GHSA-8frp-2m2w-wr4j
NVD
CVE.org
EPSS
VulDB
Exploit-DB