CVE-2025-39927
ceph: fix race condition validating r_parent before applying state
Reported by linux · Published October 1, 2025
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. ]
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-libbpf | Amazon Linux | 1:6.12.48-67.114.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.48-67.114.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.48-67.114.amzn2023 |
| kernel6.12-headers | Amazon Linux | 1:6.12.48-67.114.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.48-67.114.amzn2023 |
| bpftool6.12 | Amazon Linux | 1:6.12.48-67.114.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.48-67.114.amzn2023 |
| kernel-livepatch-6.12.48-67.114 | Amazon Linux | 1:1.0-0.amzn2023 |
| linux_kernel | linux | 6.16.8, 6.12.48 |
| Linux | Linux | dc5aad078abc416dd3d555c50f5308c16ba918a7, db378e6f83ec705c6091c65d482d555edc2b0a72, 2bfe45987eb346e299d9f763f9cd05f77011519f, 15f519e9f883b316d86e2bb6b767a023aafd9d83 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 9030aaf9bf0a1eee47a154c316c789e959638b0f, 9030aaf9bf0a1eee47a154c316c789e959638b0f, 9030aaf9bf0a1eee47a154c316c789e959638b0f |
| Linux | Linux | 2.6.34, 0, 6.6.160 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-livepatch-6.12.48-67.114 | 0 |
| Linux | Linux | 6.6.160, 9030aaf9bf0a1eee47a154c316c789e959638b0f, 9030aaf9bf0a1eee47a154c316c789e959638b0f |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| linux | linux_kernel | 2.6.34, 2.6.34, 2.6.34 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
Timeline
- Sep 30, 2025 CVE Published
- Oct 1, 2025 EPSS Score (30 in total, the first dated here)
- Oct 4, 2025 Coalition ESS Score (6 in total, the first dated here)
- Oct 12, 2025 PoC Published (2 in total, the first dated here)
- Dec 15, 2025 Security Advisory (99 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (92 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-39927
vulnetix vdb fixes CVE-2025-39927
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-39927/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart