ceph: only d_add() negative dentries when they are unhashed
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: 000000000
CVE-2026-46052
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-46052
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "2817b000b02c5f0c05af67c01fb2684e1381d6ef",
"lessThan": "4147ae08824cc8b65d2b2018f79d416af2937108",
"versionType": "git"
},
{
"status": "affected",
"version": "2817b000b02c5f0c05af67c01fb2684e1381d6ef",
"lessThan": "73b47a1f06dee5e61b00dee5227d75d3f1f6d977",
"versionType": "git"
},
{
"status": "affected",
"version": "2817b000b02c5f0c05af67c01fb2684e1381d6ef",
"lessThan": "79ffcbeac6bc1dc1bcdb0434acf250f6215ec111",
"versionType": "git"
},
{
"status": "affected",
"version": "2817b000b02c5f0c05af67c01fb2684e1381d6ef",
"lessThan": "83ce43a21bb7df8dd52228afdd918d2d058eefde",
"versionType": "git"
},
{
"status": "affected",
"version": "2817b000b02c5f0c05af67c01fb2684e1381d6ef",
"lessThan": "4179cc390dacebc87079419ec92f86f3dc46294d",
"versionType": "git"
},
{
"status": "affected",
"version": "2817b000b02c5f0c05af67c01fb2684e1381d6ef",
"lessThan": "b91e535f208c48a5e7464f1aa38338a30e7912df",
"versionType": "git"
},
{
"status": "affected",
"version": "2817b000b02c5f0c05af67c01fb2684e1381d6ef",
"lessThan": "2010cb06b9df7d3c816c78358c566bdacbdf38ff",
"versionType": "git"
},
{
"status": "affected",
"version": "2817b000b02c5f0c05af67c01fb2684e1381d6ef",
"lessThan": "803447f93d75ab6e40c85e6d12b5630d281d70d6",
"versionType": "git"
}
],
"programFiles": [
"fs/ceph/dir.c"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "2.6.34"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "2.6.34",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "5.10.259",
"versionType": "semver",
"lessThanOrEqual": "5.10.*"
},
{
"status": "unaffected",
"version": "5.15.210",
"versionType": "semver",
"lessThanOrEqual": "5.15.*"
},
{
"status": "unaffected",
"version": "6.1.176",
"versionType": "semver",
"lessThanOrEqual": "6.1.*"
},
{
"status": "unaffected",
"version": "6.6.140",
"versionType": "semver",
"lessThanOrEqual": "6.6.*"
},
{
"status": "unaffected",
"version": "6.12.86",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.27",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.0.4",
"versionType": "semver",
"lessThanOrEqual": "7.0.*"
},
{
"status": "unaffected",
"version": "7.1",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"programFiles": [
"fs/ceph/dir.c"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-46052
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #40109 · Revision 1
- Added to Heist Feed
- Publisher date