# CVE-2026-46052: ceph: only d\_add() negative dentries when they are unhashed

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.72% (percentile 50, 2026-11-26)
- **CWE:** CWE-835
- **Published:** 2026-05-27T12:57:10.777Z
- **Modified:** 2026-10-19T20:18:24.773Z

## Who should check

- Anyone running Linux \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 4147ae08824cc8b65d2b2018f79d416af2937108; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 73b47a1f06dee5e61b00dee5227d75d3f1f6d977; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 79ffcbeac6bc1dc1bcdb0434acf250f6215ec111; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 83ce43a21bb7df8dd52228afdd918d2d058eefde; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 4179cc390dacebc87079419ec92f86f3dc46294d; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< b91e535f208c48a5e7464f1aa38338a30e7912df; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 2010cb06b9df7d3c816c78358c566bdacbdf38ff; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 803447f93d75ab6e40c85e6d12b5630d281d70d6
- Anyone running Linux 2.6.34

## Description

In the Linux kernel, the following vulnerability has been resolved:

ceph: only d\_add() negative dentries when they are unhashed

Ceph can call d\_add(dentry, NULL) on a negative dentry that is already
present in the primary dcache hash.

In the current VFS that is not safe.  d\_add() goes through \_\_d\_add()
to \_\_d\_rehash(), which unconditionally reinserts dentry-\>d\_hash into
the hlist\_bl bucket.  If the dentry is already hashed, reinserting the
same node can corrupt the bucket, including creating a self-loop.
Once that happens, \_\_d\_lookup() can spin forever in the hlist\_bl walk,
typically looping only on the d\_name.hash mismatch check and
eventually triggering RCU stall reports like this one:

 rcu: INFO: rcu\_sched self-detected stall on CPU
 rcu:         87-....: (2100 ticks this GP) idle=3a4c/1/0x4000000000000000 softirq=25003319/25003319 fqs=829
 rcu:         (t=2101 jiffies g=79058445 q=698988 ncpus=192)
 CPU: 87 UID: 2952868916 PID: 3933303 Comm: php-cgi8.3 Not tainted 6.18.17-i1-amd \#950 NONE
 Hardware name: Dell Inc. PowerEdge R7615/0G9DHV, BIOS 1.6.6 09/22/2023
 RIP: 0010:\_\_d\_lookup+0x46/0xb0
 Code: c1 e8 07 48 8d 04 c2 48 8b 00 49 89 fc 49 89 f5 48 89 c3 48 83 e3 fe 48 83 f8 01 77 0f eb 2d 0f 1f 44 00 00 48 8b 1b 48 85 db \<74\> 20 39 6b 18 75 f3 48 8d 7b 78 e8 ba 85 d0 00 4c 39 63 10 74 1f
 RSP: 0018:ff745a70c8253898 EFLAGS: 00000282
 RAX: ff26e470054cb208 RBX: ff26e470054cb208 RCX: 000000006e958966
 RDX: ff26e48267340000 RSI: ff745a70c82539b0 RDI: ff26e458f74655c0
 RBP: 000000006e958966 R08: 0000000000000180 R09: 9cd08d909b919a89
 R10: ff26e458f74655c0 R11: 0000000000000000 R12: ff26e458f74655c0
 R13: ff745a70c82539b0 R14: d0d0d0d0d0d0d0d0 R15: 2f2f2f2f2f2f2f2f
 FS:  00007f5770896980(0000) GS:ff26e482c5d88000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 00007f5764de50c0 CR3: 000000a72abb5001 CR4: 0000000000771ef0
 PKRU: 55555554
 Call Trace:
  \<TASK\>
  lookup\_fast+0x9f/0x100
  walk\_component+0x1f/0x150
  link\_path\_walk+0x20e/0x3d0
  path\_lookupat+0x68/0x180
  filename\_lookup+0xdc/0x1e0
  vfs\_statx+0x6c/0x140
  vfs\_fstatat+0x67/0xa0
  \_\_do\_sys\_newfstatat+0x24/0x60
  do\_syscall\_64+0x6a/0x230
  entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e

This is reachable with reused cached negative dentries.  A Ceph lookup
or atomic\_open can be handed a negative dentry that is already hashed,
and fs/ceph/dir.c then hits one of two paths that incorrectly assume
"negative" also means "unhashed":

  - ceph\_finish\_lookup():
      MDS reply is -ENOENT with no trace
      -\> d\_add(dentry, NULL)

  - ceph\_lookup():
      local ENOENT fast path for a complete directory with shared caps
      -\> d\_add(dentry, NULL)

Both paths can therefore re-add an already-hashed negative dentry.

Ceph already uses the correct pattern elsewhere: ceph\_fill\_trace() only
calls d\_add(dn, NULL) for a negative null-dentry reply when d\_unhashed(dn)
is true.

Fix both fs/ceph/dir.c sites the same way: only call d\_add() for a
negative dentry when it is actually unhashed.  If the negative dentry
is already hashed, leave it in place and reuse it as-is.

This preserves the existing behavior for unhashed dentries while
avoiding d\_hash list corruption for reused hashed negatives.

## Affected and fixed versions

- Linux: \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 4147ae08824cc8b65d2b2018f79d416af2937108; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 73b47a1f06dee5e61b00dee5227d75d3f1f6d977; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 79ffcbeac6bc1dc1bcdb0434acf250f6215ec111; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 83ce43a21bb7df8dd52228afdd918d2d058eefde; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 4179cc390dacebc87079419ec92f86f3dc46294d; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< b91e535f208c48a5e7464f1aa38338a30e7912df; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 2010cb06b9df7d3c816c78358c566bdacbdf38ff; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 803447f93d75ab6e40c85e6d12b5630d281d70d6 (cvelist)
- Linux: 2.6.34 (cvelist)

## Mitigation

- Upgrade Linux to 803447f93d75ab6e40c85e6d12b5630d281d70d6 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-46052.md
Affected: Linux >= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, < 4147ae08824cc8b65d2b2018f79d416af2937108; >= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, < 73b47a1f06dee5e61b00dee5227d75d3f1f6d977; >= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, < 79ffcbeac6bc1dc1bcdb0434acf250f6215ec111; >= 2817b000b02c5f0c05af67c…
Fixed in: Linux 4147ae08824cc8b65d2b2018f79d416af2937108, Linux 73b47a1f06dee5e61b00dee5227d75d3f1f6d977, Linux 79ffcbeac6bc1dc1bcdb0434acf250f6215ec111, Linux 83ce43a21bb7df8dd52228afdd918d2d058eefde, Linux 4179cc390dacebc87079419ec92f86f3dc46294d, Linux 2010cb06b9df7d3c816c78358c566bdacbdf38ff, Linux 80344…

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-46052 being exploited?

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 4147ae08824cc8b65d2b2018f79d416af2937108; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 73b47a1f06dee5e61b00dee5227d75d3f1f6d977; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 79ffcbeac6bc1dc1bcdb0434acf250f6215ec111; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 83ce43a21bb7df8dd52228afdd918d2d058eefde; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 4179cc390dacebc87079419ec92f86f3dc46294d; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< b91e535f208c48a5e7464f1aa38338a30e7912df; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 2010cb06b9df7d3c816c78358c566bdacbdf38ff; \>= 2817b000b02c5f0c05af67c01fb2684e1381d6ef, \< 803447f93d75ab6e40c85e6d12b5630d281d70d6; Linux 2.6.34.

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

Yes. Fixed in Linux 4147ae08824cc8b65d2b2018f79d416af2937108, Linux 73b47a1f06dee5e61b00dee5227d75d3f1f6d977, Linux 79ffcbeac6bc1dc1bcdb0434acf250f6215ec111, Linux 83ce43a21bb7df8dd52228afdd918d2d058eefde, Linux 4179cc390dacebc87079419ec92f86f3dc46294d, Linux 2010cb06b9df7d3c816c78358c566bdacbdf38ff, Linux 803447f93d75ab6e40c85e6d12b5630d281d70d6. Upgrade Linux to 803447f93d75ab6e40c85e6d12b5630d281d70d6 or later.

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

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/83ce43a21bb7df8dd52228afdd918d2d058eefde>
- patch: <https://git.kernel.org/stable/c/4179cc390dacebc87079419ec92f86f3dc46294d>
- patch: <https://git.kernel.org/stable/c/b91e535f208c48a5e7464f1aa38338a30e7912df>
- patch: <https://git.kernel.org/stable/c/2010cb06b9df7d3c816c78358c566bdacbdf38ff>
- patch: <https://git.kernel.org/stable/c/803447f93d75ab6e40c85e6d12b5630d281d70d6>
- other: <https://git.kernel.org/stable/c/4147ae08824cc8b65d2b2018f79d416af2937108>
- other: <https://git.kernel.org/stable/c/73b47a1f06dee5e61b00dee5227d75d3f1f6d977>
- other: <https://git.kernel.org/stable/c/79ffcbeac6bc1dc1bcdb0434acf250f6215ec111>

## 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-46052>

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