CVE-2025-39927
ceph: fix race condition validating r_parent before applying state
Mitigation
- Upgrade Linux to 15f519e9f883b316d86e2bb6b767a023aafd9d83 or later.
Who should check
- Anyone running Linux >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < dc5aad078abc416dd3d555c50f5308c16ba918a7; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < db378e6f83ec705c6091c65d482d555edc2b0a72; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 2bfe45987eb346e299d9f763f9cd05f77011519f; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 15f519e9f883b316d86e2bb6b767a023aafd9d83
- Anyone running Linux 2.6.34
Vulnerability facts
- Affected
- Linux >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < dc5aad078abc416dd3d555c50f5308c16ba918a7; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < db378e6f83ec705c6091c65d482d555edc2b0a72; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 2bfe45987eb346e299d9f763f9cd05f77011519f; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 15f519e9f883b316d86e2bb6b767a023aafd9d83; Linux 2.6.34
- Fixed in
- Linux 2bfe45987eb346e299d9f763f9cd05f77011519f, Linux 15f519e9f883b316d86e2bb6b767a023aafd9d83
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.17% chance of exploitation in 30 days (percentile 4, 2026-11-26)
- CWE
- CWE-362
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < dc5aad078abc416dd3d555c50f5308c16ba918a7; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < db378e6f83ec705c6091c65d482d555edc2b0a72; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 2bfe45987eb346e299d9f763f9cd05f77011519f; >= 9030aaf9bf0a1eee47a154c316c789e959638b0f, < 15f519e9f883b316d86e2bb6b767a023aafd9d83 | — | cvelist |
| Linux | 2.6.34 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
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.