# CVE-2025-39927: ceph: fix race condition validating r\_parent before applying state

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2025-10-01T08:07:14.595Z
- **Modified:** 2026-10-21T13:18:16.970Z

## Who should check

- Anyone running Linux \>= 9030aaf9bf0a1eee47a154c316c789e959638b0f, \< dc5aad078abc416dd3d555c50f5308c16ba918a7; \>= 9030aaf9bf0a1eee47a154c316c789e959638b0f, \< db378e6f83ec705c6091c65d482d555edc2b0a72; \>= 9030aaf9bf0a1eee47a154c316c789e959638b0f, \< 2bfe45987eb346e299d9f763f9cd05f77011519f; \>= 9030aaf9bf0a1eee47a154c316c789e959638b0f, \< 15f519e9f883b316d86e2bb6b767a023aafd9d83
- Anyone running Linux 2.6.34

## Description

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

ceph: fix race condition validating r\_parent before applying state

Add validation to ensure the cached parent directory inode matches the
directory info in MDS replies. This prevents client-side race conditions
where concurrent operations (e.g. rename) cause r\_parent to become stale
between request initiation and reply processing, which could lead to
applying state changes to incorrect directory inodes.

\[ idryomov: folded a kerneldoc fixup and a follow-up fix from Alex to
  move CEPH\_CAP\_PIN reference when r\_parent is updated:

  When the parent directory lock is not held, req-\>r\_parent can become
  stale and is updated to point to the correct inode.  However, the
  associated CEPH\_CAP\_PIN reference was not being adjusted.  The
  CEPH\_CAP\_PIN is a reference on an inode that is tracked for
  accounting purposes.  Moving this pin is important to keep the
  accounting balanced. When the pin was not moved from the old parent
  to the new one, it created two problems: The reference on the old,
  stale parent was never released, causing a reference leak.
  A reference for the new parent was never acquired, creating the risk
  of a reference underflow later in ceph\_mdsc\_release\_request().  This
  patch corrects the logic by releasing the pin from the old parent and
  acquiring it for the new parent when r\_parent is switched.  This
  ensures reference accounting stays balanced. \]

## Affected and fixed versions

- Linux: \>= 9030aaf9bf0a1eee47a154c316c789e959638b0f, \< dc5aad078abc416dd3d555c50f5308c16ba918a7; \>= 9030aaf9bf0a1eee47a154c316c789e959638b0f, \< db378e6f83ec705c6091c65d482d555edc2b0a72; \>= 9030aaf9bf0a1eee47a154c316c789e959638b0f, \< 2bfe45987eb346e299d9f763f9cd05f77011519f; \>= 9030aaf9bf0a1eee47a154c316c789e959638b0f, \< 15f519e9f883b316d86e2bb6b767a023aafd9d83 (cvelist)
- Linux: 2.6.34 (cvelist)

## Mitigation

- Upgrade Linux to 15f519e9f883b316d86e2bb6b767a023aafd9d83 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-39927.md
Affected: Linux >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < dc5aad078abc416dd3d555c50f5308c16ba918a7; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < db378e6f83ec705c6091c65d482d555edc2b0a72; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 2bfe45987eb346e299d9f763f9cd05f77011519f; >= 9030aaf9bf0a1eee47a154c…
Fixed in: Linux 2bfe45987eb346e299d9f763f9cd05f77011519f, Linux 15f519e9f883b316d86e2bb6b767a023aafd9d83

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-2025-39927 being exploited?

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

### How serious is CVE-2025-39927?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-39927?

Linux \>= 9030aaf9bf0a1eee47a154c316c789e959638b0f, \< dc5aad078abc416dd3d555c50f5308c16ba918a7; \>= 9030aaf9bf0a1eee47a154c316c789e959638b0f, \< db378e6f83ec705c6091c65d482d555edc2b0a72; \>= 9030aaf9bf0a1eee47a154c316c789e959638b0f, \< 2bfe45987eb346e299d9f763f9cd05f77011519f; \>= 9030aaf9bf0a1eee47a154c316c789e959638b0f, \< 15f519e9f883b316d86e2bb6b767a023aafd9d83; Linux 2.6.34.

### Is there a fix for CVE-2025-39927?

Yes. Fixed in Linux 2bfe45987eb346e299d9f763f9cd05f77011519f, Linux 15f519e9f883b316d86e2bb6b767a023aafd9d83. Upgrade Linux to 15f519e9f883b316d86e2bb6b767a023aafd9d83 or later.

### How do I check if I'm affected by CVE-2025-39927?

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/db378e6f83ec705c6091c65d482d555edc2b0a72>
- patch: <https://git.kernel.org/stable/c/2bfe45987eb346e299d9f763f9cd05f77011519f>
- patch: <https://git.kernel.org/stable/c/15f519e9f883b316d86e2bb6b767a023aafd9d83>
- other: <https://git.kernel.org/stable/c/dc5aad078abc416dd3d555c50f5308c16ba918a7>

## 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-2025-39927>

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