# CVE-2026-80527: ceph: fix hanging \_\_ceph\_get\_caps() with stale mds\_wanted

> 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-28)
- **Published:** 2026-08-26T14:37:06.178Z
- **Modified:** 2026-10-16T20:17:57.500Z

## Who should check

- Anyone running Linux \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< b5661524c5a45085a866864ca9b8ae2513dfd67a; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< 5e84bc6f67e19fdd192d8b215de728acbfc12572; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< 5fedf279a1ea369d39c8b06dd4547cdc576065d0; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< e05c315b4da0c16ea800ee4b2cb6c617f586d1b5; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< fcce1b3be6d286aa80831e730289f4c062053ae6; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< a3bc6b3e9ef3f5f5cb85a902a30a090c7931127c; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< 9e55fe24c548ad3163903eb58bb002d28d32a630; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< 50958bb928bad3bdba9e5d1b7ff4bbadcf6951e6
- Anyone running Linux 5.8

## Description

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

ceph: fix hanging \_\_ceph\_get\_caps() with stale mds\_wanted

A reader can hang forever in \_\_ceph\_get\_caps() when the client no
longer holds \`FILE\_RD\`, but local cap state still says that the
capability is already wanted (via \`mds\_wanted\`).

One way to trigger this is through MDS cap revocation.  If another
client performs a conflicting operation, the MDS can revoke \`FILE\_RD\`
from the reader; the next read then has to reacquire \`FILE\_RD\`.  If
the cap update that should request \`FILE\_RD\` never reaches the MDS
after \`cap-\>mds\_wanted\` was raised, the reader is left holding only
non-file caps while local \`mds\_wanted\` still includes the file read
caps.

In that state, try\_get\_cap\_refs() sees \`need \<= mds\_wanted\` and
returns 0, so \_\_ceph\_get\_caps() just waits on \`i\_cap\_wq\`.  If the cap
update that was supposed to request \`FILE\_RD never reaches the MDS
after \`cap-\>mds\_wanted was\` raised, no further request is sent and the
waiter can sleep indefinitely until unrelated cap traffic happens to
wake it up.

The ordering issue is that \`cap-\>mds\_wanted\` is updated in
\_\_prep\_cap() before the \`CEPH\_MSG\_CLIENT\_CAPS message\` is actually
queued for send.  That makes one field serve two different meanings at
once: what this client wants, and what the client believes the MDS
already knows it wants.

A proper fix would be to split those states and track whether a cap
update is actually in flight or has been observed by the MDS.
However, simply moving the \`cap-\>mds\_wanted assignment\` later would
not be sufficient: queueing the message in the messenger does not
guarantee that the MDS processed that specific wanted set, and
reconnect or message loss can still invalidate that assumption.
Fixing that properly would require a larger rework of the cap state
machine.

To allow simpler backports to stable kernels, this patch implements a
simpler workaround:

- stop waiting forever in \_\_ceph\_get\_caps(); after a bounded wait,
  fall back to the renew path

- make ceph\_renew\_caps() issue a synchronous \`OPEN\` request whenever
  the inode still does not actually hold the wanted caps, instead of
  only calling ceph\_check\_caps()

The extra issued-vs-wanted check in ceph\_renew\_caps() is necessary
because the previous test only checked whether the inode still had any
real caps at all.  That is not enough after revocation: the client can
still hold something like \`pLs\` and yet be missing \`FILE\_RD\`
completely.  In that case, falling back to ceph\_check\_caps() is not
sufficient, because it still trusts \`cap-\>mds\_wanted\` and may resend
nothing.  By requiring \`(issued & wanted) == wanted\` before taking the
asynchronous path, the code only uses ceph\_check\_caps() when the
\`wanted caps\` are already actually issued.  Otherwise, it sends the
synchronous \`OPEN\` renew.

This preserves the existing asynchronous fast path when the wanted
caps are already issued, avoids changing cap-state semantics, and
fixes the hang by guaranteeing that a stalled waiter eventually
retries through a path that does not rely on the stale \`mds\_wanted\`
state.

\[ idryomov: move CEPH\_GET\_CAPS\_WAIT\_TIMEOUT from libceph.h to
  mds\_client.h, formatting \]

## Affected and fixed versions

- Linux: \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< b5661524c5a45085a866864ca9b8ae2513dfd67a; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< 5e84bc6f67e19fdd192d8b215de728acbfc12572; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< 5fedf279a1ea369d39c8b06dd4547cdc576065d0; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< e05c315b4da0c16ea800ee4b2cb6c617f586d1b5; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< fcce1b3be6d286aa80831e730289f4c062053ae6; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< a3bc6b3e9ef3f5f5cb85a902a30a090c7931127c; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< 9e55fe24c548ad3163903eb58bb002d28d32a630; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< 50958bb928bad3bdba9e5d1b7ff4bbadcf6951e6 (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-80527.md
Affected: Linux >= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, < b5661524c5a45085a866864ca9b8ae2513dfd67a; >= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, < 5e84bc6f67e19fdd192d8b215de728acbfc12572; >= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, < 5fedf279a1ea369d39c8b06dd4547cdc576065d0; >= 0a454bdd501ad1aa30bb72e…
Fixed in: Linux 5e84bc6f67e19fdd192d8b215de728acbfc12572, Linux 5fedf279a1ea369d39c8b06dd4547cdc576065d0, Linux 9e55fe24c548ad3163903eb58bb002d28d32a630, Linux 50958bb928bad3bdba9e5d1b7ff4bbadcf6951e6

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

There is no confirmed exploitation: CVE-2026-80527 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-28).

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

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

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

Linux \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< b5661524c5a45085a866864ca9b8ae2513dfd67a; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< 5e84bc6f67e19fdd192d8b215de728acbfc12572; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< 5fedf279a1ea369d39c8b06dd4547cdc576065d0; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< e05c315b4da0c16ea800ee4b2cb6c617f586d1b5; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< fcce1b3be6d286aa80831e730289f4c062053ae6; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< a3bc6b3e9ef3f5f5cb85a902a30a090c7931127c; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< 9e55fe24c548ad3163903eb58bb002d28d32a630; \>= 0a454bdd501ad1aa30bb72e9581efa338ad6ce5c, \< 50958bb928bad3bdba9e5d1b7ff4bbadcf6951e6; Linux 5.8.

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

Yes. Fixed in Linux 5e84bc6f67e19fdd192d8b215de728acbfc12572, Linux 5fedf279a1ea369d39c8b06dd4547cdc576065d0, Linux 9e55fe24c548ad3163903eb58bb002d28d32a630, Linux 50958bb928bad3bdba9e5d1b7ff4bbadcf6951e6. Upgrade Linux to 50958bb928bad3bdba9e5d1b7ff4bbadcf6951e6 or later.

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

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

- other: <https://git.kernel.org/stable/c/b5661524c5a45085a866864ca9b8ae2513dfd67a>
- other: <https://git.kernel.org/stable/c/5e84bc6f67e19fdd192d8b215de728acbfc12572>
- other: <https://git.kernel.org/stable/c/5fedf279a1ea369d39c8b06dd4547cdc576065d0>
- other: <https://git.kernel.org/stable/c/e05c315b4da0c16ea800ee4b2cb6c617f586d1b5>
- other: <https://git.kernel.org/stable/c/fcce1b3be6d286aa80831e730289f4c062053ae6>
- other: <https://git.kernel.org/stable/c/a3bc6b3e9ef3f5f5cb85a902a30a090c7931127c>
- other: <https://git.kernel.org/stable/c/9e55fe24c548ad3163903eb58bb002d28d32a630>
- other: <https://git.kernel.org/stable/c/50958bb928bad3bdba9e5d1b7ff4bbadcf6951e6>

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

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