CVE-2025-39927 Details
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. ]
A race condition vulnerability has been addressed in the Ceph file system component of the Linux kernel. This issue arises from improper validation of the parent directory inode, which can lead to incorrect state changes being applied to directory inodes. The vulnerability is present in the Linux kernel's stable releases, specifically in the Ceph file system's handling of concurrent operations that can cause the cached parent directory reference to become outdated. The vulnerability could be exploited by initiating a request that involves a directory operation, such as renaming, and then concurrently performing another operation that disrupts the timing of the request's processing. This could result in the wrong directory inode being updated, potentially causing inconsistencies or errors in file operations.
Users can update to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for updating the kernel can be found in the official Linux kernel documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 14, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/15f519e9f883b316d86e2bb6b767a023aafd9d83 | kernel.org | Patch |
| https://git.kernel.org/stable/c/2bfe45987eb346e299d9f763f9cd05f77011519f | kernel.org | Patch |
| https://git.kernel.org/stable/c/db378e6f83ec705c6091c65d482d555edc2b0a72 | kernel.org | Patch |
| https://git.kernel.org/stable/c/dc5aad078abc416dd3d555c50f5308c16ba918a7 | kernel.org |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 2.6.35, < 6.12.48 >= 6.13, < 6.16.8 2.6.34 - 2.6.34 rc2 2.6.34 rc3 2.6.34 rc4 2.6.34 rc5 2.6.34 rc6 2.6.34 rc7 6.17 rc1 6.17 rc2 6.17 rc3 6.17 rc4 6.17 rc5 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 21, 2026 | CVE Modified | kernel.org |
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jul 30, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jan 14, 2026 | CVE Modified | CISA-ADP |
| Dec 10, 2025 | Initial Analysis | [email protected] |
| Oct 1, 2025 | New CVE Received | kernel.org |