# CVE-2026-52961: ceph: fix BUG\_ON in \_\_ceph\_build\_xattrs\_blob() due to stale blob size

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; 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.18% (percentile 5, 2026-11-28)
- **CWE:** CWE-617
- **Published:** 2026-06-24T16:28:41.836Z
- **Modified:** 2026-11-06T17:17:57.787Z

## Who should check

- Anyone running Linux \>= d93231a6bc8a452323d5fef16cca7107ce483a27, \< 0fe79375e48efee268e766c800bacbd58bed655b; \>= d93231a6bc8a452323d5fef16cca7107ce483a27, \< d161c4456672f8c431e3bdf9bea817b490d14181; \>= d93231a6bc8a452323d5fef16cca7107ce483a27, \< 7eb72425c4e3234926502eb262f9d6193ccd572c; \>= d93231a6bc8a452323d5fef16cca7107ce483a27, \< d5bd8b4e39cfa8b087448adcd48088065cd629d5; \>= d93231a6bc8a452323d5fef16cca7107ce483a27, \< 368d21ae9081c93497b1c8163bed3eddcb2443ff; \>= d93231a6bc8a452323d5fef16cca7107ce483a27, \< 0c22d9511cbde746622f8e4c11aaa63fe76d45f9
- Anyone running Linux 6.0

## Description

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

ceph: fix BUG\_ON in \_\_ceph\_build\_xattrs\_blob() due to stale blob size

The generic/642 test-case can reproduce the kernel crash:

\[40243.605254\] ------------\[ cut here \]------------
\[40243.605956\] kernel BUG at fs/ceph/xattr.c:918!
\[40243.607142\] Oops: invalid opcode: 0000 \[\#1\] SMP PTI
\[40243.608067\] CPU: 7 UID: 0 PID: 498762 Comm: kworker/7:1 Not tainted 7.0.0-rc7+ \#3 PREEMPT(full)
\[40243.609700\] Hardware name: QEMU Ubuntu 25.10 PC v2 (i440FX + PIIX, + 10.1 machine, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
\[40243.611820\] Workqueue: ceph-msgr ceph\_con\_workfn
\[40243.612715\] RIP: 0010:\_\_ceph\_build\_xattrs\_blob+0x1b8/0x1e0
\[40243.613731\] Code: 0f 84 82 fe ff ff e9 cf 8e 56 ff 48 8d 65 e8 31 c0 5b 41 5c 41 5d 5d 31 d2 31 c9 31 f6 31 ff 45 31 c0 45 31 c9 c3 cc cc cc cc \<0f\> 0b 4c 8b 62 08 41 8b 85 24 07 00 00 49 83 c4 04 41 89 44 24 fc
\[40243.616888\] RSP: 0018:ffffcc80c4d4b688 EFLAGS: 00010287
\[40243.617773\] RAX: 0000000000010026 RBX: 0000000000000001 RCX: 0000000000000000
\[40243.618928\] RDX: ffff8a773798dee0 RSI: 0000000000000000 RDI: 0000000000000000
\[40243.620158\] RBP: ffffcc80c4d4b6a0 R08: 0000000000000000 R09: 0000000000000000
\[40243.621573\] R10: 0000000000000000 R11: 0000000000000000 R12: ffff8a75f3b58000
\[40243.622907\] R13: ffff8a75f3b58000 R14: 0000000000000080 R15: 000000000000bffd
\[40243.624054\] FS:  0000000000000000(0000) GS:ffff8a787d1b4000(0000) knlGS:0000000000000000
\[40243.625331\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[40243.626269\] CR2: 000072f390b623c0 CR3: 000000011c02a003 CR4: 0000000000372ef0
\[40243.627408\] Call Trace:
\[40243.627839\]  \<TASK\>
\[40243.628188\]  \_\_prep\_cap+0x3fd/0x4a0
\[40243.628789\]  ? do\_raw\_spin\_unlock+0x4e/0xe0
\[40243.629474\]  ceph\_check\_caps+0x46a/0xc80
\[40243.630094\]  ? \_\_lock\_acquire+0x4a2/0x2650
\[40243.630773\]  ? find\_held\_lock+0x31/0x90
\[40243.631347\]  ? handle\_cap\_grant+0x79f/0x1060
\[40243.632068\]  ? lock\_release+0xd9/0x300
\[40243.632696\]  ? \_\_mutex\_unlock\_slowpath+0x3e/0x340
\[40243.633429\]  ? lock\_release+0xd9/0x300
\[40243.634052\]  handle\_cap\_grant+0xcf6/0x1060
\[40243.634745\]  ceph\_handle\_caps+0x122b/0x2110
\[40243.635415\]  mds\_dispatch+0x5bd/0x2160
\[40243.636034\]  ? ceph\_con\_process\_message+0x65/0x190
\[40243.636828\]  ? lock\_release+0xd9/0x300
\[40243.637431\]  ceph\_con\_process\_message+0x7a/0x190
\[40243.638184\]  ? kfree+0x311/0x4f0
\[40243.638749\]  ? kfree+0x311/0x4f0
\[40243.639268\]  process\_message+0x16/0x1a0
\[40243.639915\]  ? sg\_free\_table+0x39/0x90
\[40243.640572\]  ceph\_con\_v2\_try\_read+0xf58/0x2120
\[40243.641255\]  ? lock\_acquire+0xc8/0x300
\[40243.641863\]  ceph\_con\_workfn+0x151/0x820
\[40243.642493\]  process\_one\_work+0x22f/0x630
\[40243.643093\]  ? process\_one\_work+0x254/0x630
\[40243.643770\]  worker\_thread+0x1e2/0x400
\[40243.644332\]  ? \_\_pfx\_worker\_thread+0x10/0x10
\[40243.645020\]  kthread+0x109/0x140
\[40243.645560\]  ? \_\_pfx\_kthread+0x10/0x10
\[40243.646125\]  ret\_from\_fork+0x3f8/0x480
\[40243.646752\]  ? \_\_pfx\_kthread+0x10/0x10
\[40243.647316\]  ? \_\_pfx\_kthread+0x10/0x10
\[40243.647919\]  ret\_from\_fork\_asm+0x1a/0x30
\[40243.648556\]  \</TASK\>
\[40243.648902\] Modules linked in: overlay hctr2 libpolyval chacha libchacha adiantum libnh libpoly1305 essiv intel\_rapl\_msr intel\_rapl\_common intel\_uncore\_frequency\_common skx\_edac\_common nfit kvm\_intel kvm irqbypass joydev ghash\_clmulni\_intel aesni\_intel rapl input\_leds mac\_hid psmouse vga16fb serio\_raw vgastate floppy i2c\_piix4 pata\_acpi bochs qemu\_fw\_cfg i2c\_smbus sch\_fq\_codel rbd dm\_crypt msr parport\_pc ppdev lp parport efi\_pstore
\[40243.654766\] ---\[ end trace 0000000000000000 \]---

Commit d93231a6bc8a ("ceph: prevent a client from exceeding the MDS
maximum xattr size") moved the required\_blob\_size computation to before
the \_\_build\_xattrs() call, introducing a race.

\_\_build\_xattrs() releases and reacquires i\_ceph\_lock during execution.
In that window, handle\_cap\_grant() may update i\_xattrs.blob with a
newer MDS-provided blob and bump i\_xattrs.version.  When
\_\_bui
---truncated---

## Affected and fixed versions

- Linux: \>= d93231a6bc8a452323d5fef16cca7107ce483a27, \< 0fe79375e48efee268e766c800bacbd58bed655b; \>= d93231a6bc8a452323d5fef16cca7107ce483a27, \< d161c4456672f8c431e3bdf9bea817b490d14181; \>= d93231a6bc8a452323d5fef16cca7107ce483a27, \< 7eb72425c4e3234926502eb262f9d6193ccd572c; \>= d93231a6bc8a452323d5fef16cca7107ce483a27, \< d5bd8b4e39cfa8b087448adcd48088065cd629d5; \>= d93231a6bc8a452323d5fef16cca7107ce483a27, \< 368d21ae9081c93497b1c8163bed3eddcb2443ff; \>= d93231a6bc8a452323d5fef16cca7107ce483a27, \< 0c22d9511cbde746622f8e4c11aaa63fe76d45f9 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 0c22d9511cbde746622f8e4c11aaa63fe76d45f9 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-52961. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-52961.md
Affected: Linux >= d93231a6bc8a452323d5fef16cca7107ce483a27, < 0fe79375e48efee268e766c800bacbd58bed655b; >= d93231a6bc8a452323d5fef16cca7107ce483a27, < d161c4456672f8c431e3bdf9bea817b490d14181; >= d93231a6bc8a452323d5fef16cca7107ce483a27, < 7eb72425c4e3234926502eb262f9d6193ccd572c; >= d93231a6bc8a452323d5fef…
Fixed in: Linux 0fe79375e48efee268e766c800bacbd58bed655b, Linux 7eb72425c4e3234926502eb262f9d6193ccd572c, Linux 368d21ae9081c93497b1c8163bed3eddcb2443ff, Linux 0c22d9511cbde746622f8e4c11aaa63fe76d45f9

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

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= d93231a6bc8a452323d5fef16cca7107ce483a27, \< 0fe79375e48efee268e766c800bacbd58bed655b; \>= d93231a6bc8a452323d5fef16cca7107ce483a27, \< d161c4456672f8c431e3bdf9bea817b490d14181; \>= d93231a6bc8a452323d5fef16cca7107ce483a27, \< 7eb72425c4e3234926502eb262f9d6193ccd572c; \>= d93231a6bc8a452323d5fef16cca7107ce483a27, \< d5bd8b4e39cfa8b087448adcd48088065cd629d5; \>= d93231a6bc8a452323d5fef16cca7107ce483a27, \< 368d21ae9081c93497b1c8163bed3eddcb2443ff; \>= d93231a6bc8a452323d5fef16cca7107ce483a27, \< 0c22d9511cbde746622f8e4c11aaa63fe76d45f9; Linux 6.0.

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

Yes. Fixed in Linux 0fe79375e48efee268e766c800bacbd58bed655b, Linux 7eb72425c4e3234926502eb262f9d6193ccd572c, Linux 368d21ae9081c93497b1c8163bed3eddcb2443ff, Linux 0c22d9511cbde746622f8e4c11aaa63fe76d45f9. Upgrade Linux to 0c22d9511cbde746622f8e4c11aaa63fe76d45f9 or later.

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

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/7eb72425c4e3234926502eb262f9d6193ccd572c>
- patch: <https://git.kernel.org/stable/c/d5bd8b4e39cfa8b087448adcd48088065cd629d5>
- patch: <https://git.kernel.org/stable/c/368d21ae9081c93497b1c8163bed3eddcb2443ff>
- patch: <https://git.kernel.org/stable/c/0c22d9511cbde746622f8e4c11aaa63fe76d45f9>
- other: <https://git.kernel.org/stable/c/0fe79375e48efee268e766c800bacbd58bed655b>
- other: <https://git.kernel.org/stable/c/d161c4456672f8c431e3bdf9bea817b490d14181>

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

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