# CVE-2026-43420: ceph: fix i\_nlink underrun during async unlink

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.11% (percentile 0, 2026-11-28)
- **CWE:** CWE-367
- **Published:** 2026-05-08T14:21:55.717Z
- **Modified:** 2026-11-11T20:10:00.273Z

## Who should check

- Anyone running Linux \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< 9b31e88ac5623d15c8bc46f69dfe1d3b43a8f67c; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< 6d5fd8bb574bef039eb3b738e523870433a2aeb9; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< fcc477a6e8856c8a42b3c9e171724d8d6dfadd06; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< b3f5513141ecc6b277a8f7b7efe58a0cf9a5e859; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< aedd29386b23f3e1e6818943e11abfff2953732f; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< 7db008e85a5d17b64bc5390b828bf457ae91a415; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< 8975b85b0d45ca811ace6fac5907652f2310e5ac; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< ce0123cbb4a40a2f1bbb815f292b26e96088639f
- Anyone running Linux 5.7

## Description

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:

1. 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.)

2. 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.

## Affected and fixed versions

- Linux: \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< 9b31e88ac5623d15c8bc46f69dfe1d3b43a8f67c; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< 6d5fd8bb574bef039eb3b738e523870433a2aeb9; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< fcc477a6e8856c8a42b3c9e171724d8d6dfadd06; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< b3f5513141ecc6b277a8f7b7efe58a0cf9a5e859; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< aedd29386b23f3e1e6818943e11abfff2953732f; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< 7db008e85a5d17b64bc5390b828bf457ae91a415; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< 8975b85b0d45ca811ace6fac5907652f2310e5ac; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< ce0123cbb4a40a2f1bbb815f292b26e96088639f (cvelist)
- Linux: 5.7 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-43420. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-43420.md
Affected: Linux >= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, < 9b31e88ac5623d15c8bc46f69dfe1d3b43a8f67c; >= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, < 6d5fd8bb574bef039eb3b738e523870433a2aeb9; >= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, < fcc477a6e8856c8a42b3c9e171724d8d6dfadd06; >= 2ccb45462aeaf0831397b90…
Fixed in: Linux 9b31e88ac5623d15c8bc46f69dfe1d3b43a8f67c, Linux 6d5fd8bb574bef039eb3b738e523870433a2aeb9, Linux 7db008e85a5d17b64bc5390b828bf457ae91a415, Linux 8975b85b0d45ca811ace6fac5907652f2310e5ac

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.
```

## FAQ

### Is CVE-2026-43420 being exploited?

There is no confirmed exploitation: CVE-2026-43420 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.11% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2026-43420?

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2026-43420?

Linux \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< 9b31e88ac5623d15c8bc46f69dfe1d3b43a8f67c; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< 6d5fd8bb574bef039eb3b738e523870433a2aeb9; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< fcc477a6e8856c8a42b3c9e171724d8d6dfadd06; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< b3f5513141ecc6b277a8f7b7efe58a0cf9a5e859; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< aedd29386b23f3e1e6818943e11abfff2953732f; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< 7db008e85a5d17b64bc5390b828bf457ae91a415; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< 8975b85b0d45ca811ace6fac5907652f2310e5ac; \>= 2ccb45462aeaf0831397b90d31d3d50a7704fa1f, \< ce0123cbb4a40a2f1bbb815f292b26e96088639f; Linux 5.7.

### Is there a fix for CVE-2026-43420?

Yes. Fixed in Linux 9b31e88ac5623d15c8bc46f69dfe1d3b43a8f67c, Linux 6d5fd8bb574bef039eb3b738e523870433a2aeb9, Linux 7db008e85a5d17b64bc5390b828bf457ae91a415, Linux 8975b85b0d45ca811ace6fac5907652f2310e5ac. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-43420?

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.

## References

- patch: <https://git.kernel.org/stable/c/9b31e88ac5623d15c8bc46f69dfe1d3b43a8f67c>
- patch: <https://git.kernel.org/stable/c/6d5fd8bb574bef039eb3b738e523870433a2aeb9>
- patch: <https://git.kernel.org/stable/c/fcc477a6e8856c8a42b3c9e171724d8d6dfadd06>
- patch: <https://git.kernel.org/stable/c/b3f5513141ecc6b277a8f7b7efe58a0cf9a5e859>
- patch: <https://git.kernel.org/stable/c/aedd29386b23f3e1e6818943e11abfff2953732f>
- patch: <https://git.kernel.org/stable/c/7db008e85a5d17b64bc5390b828bf457ae91a415>
- patch: <https://git.kernel.org/stable/c/8975b85b0d45ca811ace6fac5907652f2310e5ac>
- patch: <https://git.kernel.org/stable/c/ce0123cbb4a40a2f1bbb815f292b26e96088639f>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-43420>

HTML: <https://flawdb.com/CVE-2026-43420> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-43420>
