VDB

CVE-2025-39927

CVE-2025-39927 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
kernel6.12-libbpfAmazon Linux1:6.12.48-67.114.amzn2023
kernel6.12-develAmazon Linux1:6.12.48-67.114.amzn2023
python3-perf6.12Amazon Linux1:6.12.48-67.114.amzn2023
kernel6.12-headersAmazon Linux1:6.12.48-67.114.amzn2023
perf6.12Amazon Linux1:6.12.48-67.114.amzn2023
bpftool6.12Amazon Linux1:6.12.48-67.114.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.48-67.114.amzn2023
kernel-livepatch-6.12.48-67.114Amazon Linux1:1.0-0.amzn2023
linux_kernellinux6.16.8, 6.12.48
LinuxLinuxdc5aad078abc416dd3d555c50f5308c16ba918a7, db378e6f83ec705c6091c65d482d555edc2b0a72, 2bfe45987eb346e299d9f763f9cd05f77011519f, 15f519e9f883b316d86e2bb6b767a023aafd9d83

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinux9030aaf9bf0a1eee47a154c316c789e959638b0f, 9030aaf9bf0a1eee47a154c316c789e959638b0f, 9030aaf9bf0a1eee47a154c316c789e959638b0f
LinuxLinux2.6.34, 0, 6.6.160
amazon:2023kernel6.12-libbpf0
amazon:2023kernel6.12-devel0
amazon:2023python3-perf6.120
amazon:2023kernel6.12-headers0
amazon:2023perf6.120
amazon:2023bpftool6.120
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-livepatch-6.12.48-67.1140
LinuxLinux6.6.160, 9030aaf9bf0a1eee47a154c316c789e959638b0f, 9030aaf9bf0a1eee47a154c316c789e959638b0f
amazon:2023kernel6.120
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel6.12-tools0
linuxlinux_kernel2.6.34, 2.6.34, 2.6.34
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.12-libbpf-devel0

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

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›