# CVE-2026-89655: ceph: fix UAF in \_\_kick\_flushing\_caps() on cf entry freed during unlock

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.76% (percentile 51, 2026-11-26)
- **Published:** 2026-09-11T19:45:44.841Z
- **Modified:** 2026-10-19T09:18:03.187Z

## Who should check

- Anyone running Linux \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 091137821e1fc88f37e15201abf055c9494ddc61; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 01542430081014d80fc9e70e92d6647432ddb7fc; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 23eb34a53a53cb1a6dab1eeee830633207ac158d; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 19f16f04c2b014a7dd214dc1e42557d8530b16f3; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 2701431aa3cc8b23efe6890182e7b04f5e76fab5; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< fe46746087b5b9c5bb2d022df6c7819218494ced; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 2dba24dcd5050be4b7b119e6f0b01f62203b5d26; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 7af4c4f01305b0935adf6d4301b1ec407025485d
- Anyone running Linux 4.8

## Description

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

ceph: fix UAF in \_\_kick\_flushing\_caps() on cf entry freed during unlock

list\_for\_each\_entry() iterates ci-\>i\_cap\_flush\_list but drops
i\_ceph\_lock to send cap messages.  During the unlock window,
handle\_cap\_flush\_ack() can acquire i\_ceph\_lock, detach cf entries
with tid \<= flush\_tid from the list, release i\_ceph\_lock, and free
them via ceph\_free\_cap\_flush() outside any lock.  When the original
thread reacquires i\_ceph\_lock and the for-loop macro advances via
cf = list\_next\_entry(cf, i\_list), it dereferences cf-\>i\_list.next
on freed memory.

The race timeline:

  \_\_kick\_flushing\_caps()              handle\_cap\_flush\_ack()
  -----------------------             -----------------------
  holds i\_ceph\_lock        \<---
  iterates to cf (tid=10)
  prepares FLUSH message
  drops i\_ceph\_lock        \<---
  \_\_send\_cap() ── FLUSH(tid=10)
	                              MDS sends FLUSH\_ACK(tid=10)
                           ---\>       acquires i\_ceph\_lock
                                      cf-\>tid(10) \<= flush\_tid(10),
                                      detaches cf from i\_cap\_flush\_list
                                      drops i\_ceph\_lock
                                      ceph\_free\_cap\_flush(cf) \<- frees it!
  acquires i\_ceph\_lock     \<---
  for-loop advances:
    cf = list\_next\_entry(cf, i\_list)
      -- UAF on freed cf-\>i\_list.next

The cf was just sent by \_\_kick\_flushing\_caps itself via \_\_send\_cap().
The MDS may respond with FLUSH\_ACK quickly enough that
handle\_cap\_flush\_ack() frees cf before \_\_kick\_flushing\_caps can
finish the iteration.

Fix by converting to a manual while loop: save the next pointer
under i\_ceph\_lock before dropping it, then use the saved pointer
after reacquiring, so the potentially-freed cf is never accessed again.

## Affected and fixed versions

- Linux: \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 091137821e1fc88f37e15201abf055c9494ddc61; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 01542430081014d80fc9e70e92d6647432ddb7fc; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 23eb34a53a53cb1a6dab1eeee830633207ac158d; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 19f16f04c2b014a7dd214dc1e42557d8530b16f3; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 2701431aa3cc8b23efe6890182e7b04f5e76fab5; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< fe46746087b5b9c5bb2d022df6c7819218494ced; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 2dba24dcd5050be4b7b119e6f0b01f62203b5d26; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 7af4c4f01305b0935adf6d4301b1ec407025485d (cvelist)
- Linux: 4.8 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2026-89655.md
Affected: Linux >= e4500b5e35c213e0f97be7cb69328c0877203a79, < 091137821e1fc88f37e15201abf055c9494ddc61; >= e4500b5e35c213e0f97be7cb69328c0877203a79, < 01542430081014d80fc9e70e92d6647432ddb7fc; >= e4500b5e35c213e0f97be7cb69328c0877203a79, < 23eb34a53a53cb1a6dab1eeee830633207ac158d; >= e4500b5e35c213e0f97be7c…
Fixed in: Linux 091137821e1fc88f37e15201abf055c9494ddc61, Linux 01542430081014d80fc9e70e92d6647432ddb7fc, Linux 23eb34a53a53cb1a6dab1eeee830633207ac158d, Linux 19f16f04c2b014a7dd214dc1e42557d8530b16f3, Linux 2701431aa3cc8b23efe6890182e7b04f5e76fab5, Linux 2dba24dcd5050be4b7b119e6f0b01f62203b5d26, Linux 7af4c…

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

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

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

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 091137821e1fc88f37e15201abf055c9494ddc61; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 01542430081014d80fc9e70e92d6647432ddb7fc; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 23eb34a53a53cb1a6dab1eeee830633207ac158d; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 19f16f04c2b014a7dd214dc1e42557d8530b16f3; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 2701431aa3cc8b23efe6890182e7b04f5e76fab5; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< fe46746087b5b9c5bb2d022df6c7819218494ced; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 2dba24dcd5050be4b7b119e6f0b01f62203b5d26; \>= e4500b5e35c213e0f97be7cb69328c0877203a79, \< 7af4c4f01305b0935adf6d4301b1ec407025485d; Linux 4.8.

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

Yes. Fixed in Linux 091137821e1fc88f37e15201abf055c9494ddc61, Linux 01542430081014d80fc9e70e92d6647432ddb7fc, Linux 23eb34a53a53cb1a6dab1eeee830633207ac158d, Linux 19f16f04c2b014a7dd214dc1e42557d8530b16f3, Linux 2701431aa3cc8b23efe6890182e7b04f5e76fab5, Linux 2dba24dcd5050be4b7b119e6f0b01f62203b5d26, Linux 7af4c4f01305b0935adf6d4301b1ec407025485d. Upgrade Linux to 7af4c4f01305b0935adf6d4301b1ec407025485d or later.

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

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/091137821e1fc88f37e15201abf055c9494ddc61>
- other: <https://git.kernel.org/stable/c/01542430081014d80fc9e70e92d6647432ddb7fc>
- other: <https://git.kernel.org/stable/c/23eb34a53a53cb1a6dab1eeee830633207ac158d>
- other: <https://git.kernel.org/stable/c/19f16f04c2b014a7dd214dc1e42557d8530b16f3>
- other: <https://git.kernel.org/stable/c/2701431aa3cc8b23efe6890182e7b04f5e76fab5>
- other: <https://git.kernel.org/stable/c/fe46746087b5b9c5bb2d022df6c7819218494ced>
- other: <https://git.kernel.org/stable/c/2dba24dcd5050be4b7b119e6f0b01f62203b5d26>
- other: <https://git.kernel.org/stable/c/7af4c4f01305b0935adf6d4301b1ec407025485d>

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

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