CVE-2025-38365
Severity CVSS v4.0:
Pending analysis
Type:
CWE-362
Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Publication date:
25/07/2025
Last modified:
16/12/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
btrfs: fix a race between renames and directory logging<br />
<br />
We have a race between a rename and directory inode logging that if it<br />
happens and we crash/power fail before the rename completes, the next time<br />
the filesystem is mounted, the log replay code will end up deleting the<br />
file that was being renamed.<br />
<br />
This is best explained following a step by step analysis of an interleaving<br />
of steps that lead into this situation.<br />
<br />
Consider the initial conditions:<br />
<br />
1) We are at transaction N;<br />
<br />
2) We have directories A and B created in a past transaction (
Impact
Base Score 3.x
4.70
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 5.18 (including) | 6.1.143 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.2 (including) | 6.6.96 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.7 (including) | 6.12.36 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (including) | 6.15.5 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/2088895d5903082bb9021770b919e733c57edbc1
- https://git.kernel.org/stable/c/3ca864de852bc91007b32d2a0d48993724f4abad
- https://git.kernel.org/stable/c/51bd363c7010d033d3334daf457c824484bf9bf0
- https://git.kernel.org/stable/c/8c6874646c21bd820cf475e2874e62c133954023
- https://git.kernel.org/stable/c/aeeae8feeaae4445a86f9815273e81f902dc1f5b
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html



