CVE-2025-38365: btrfs: fix a race between renames and directory logging
btrfs: fix a race between renames and directory logging
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
btrfs (Linux kernel)to a version that resolves this vulnerability.Patch btrfs: fix a race between renames and directory logging - Configuration
Pin the log root during renames before removing the old name to prevent the race between rename and directory inode logging that can lead to file loss.
btrfs log replay/rename handling pin log root during renames before removing the old name = enabled
Event History
Frequently Asked Questions
What is the severity of CVE-2025-38365?
CVE-2025-38365 is considered a moderate severity vulnerability affecting the Linux kernel.
How do I fix CVE-2025-38365?
To fix CVE-2025-38365, update to the patched version of the Linux kernel that addresses this race condition.
What systems are affected by CVE-2025-38365?
CVE-2025-38365 affects the Linux kernel, specifically systems utilizing btrfs filesystems.
What are the potential impacts of CVE-2025-38365?
CVE-2025-38365 can lead to data loss or corruption if a crash occurs during a rename operation.
When was CVE-2025-38365 disclosed?
CVE-2025-38365 was disclosed in 2025, along with guidance on resolving the identified vulnerabilities.