Menu

Star on GitHub · 3.2k

CVE-2025-38365

9.1 · CRITICAL

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix a race between renames and directory logging We have a race between a rename and directory inode logging that if it…

Published Jul 25, 2025CWE-362EPSS 0.33%

Overview

CVE-2025-38365 is a critical-severity vulnerability. It was published on July 25, 2025 and has a CVSS 3.1 base score of 9.1 (CRITICAL).

This vulnerability has a CVSS 3.1 base score of 9.1, rated CRITICAL. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical description

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

btrfs: fix a race between renames and directory logging

We have a race between a rename and directory inode logging that if it

happens and we crash/power fail before the rename completes, the next time

the filesystem is mounted, the log replay code will end up deleting the

file that was being renamed.

This is best explained following a step by step analysis of an interleaving

of steps that lead into this situation.

Consider the initial conditions:

1) We are at transaction N;

2) We have directories A and B created in a past transaction (< N);

3) We have inode X corresponding to a file that has 2 hardlinks, one in

directory A and the other in directory B, so we'll name them as

"A/foo_link1" and "B/foo_link2". Both hard links were persisted in a

past transaction (< N);

4) We have inode Y corresponding to a file that as a single hard link and

is located in directory A, we'll name it as "A/bar". This fil

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2025-38365?

CVE-2025-38365 is a critical-severity vulnerability. It was published on July 25, 2025 and has a CVSS 3.1 base score of 9.1 (CRITICAL).

How severe is CVE-2025-38365?

This vulnerability has a CVSS 3.1 base score of 9.1, rated CRITICAL. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2025-38365?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-38365?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2025-38365 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related CRITICAL CVEs from 2025

View all