File disclosure and corruption via SMB rename race
Published Sep 16, 2025 · Updated Sep 16, 2025
A race condition in affected Linux kernels' SMB client allows local users to access the wrong file and interrupt directory operations. During cifs_rename2, the target dentry remains hashed while deferred closes and outstanding I/O are processed, so a concurrent open can escape deleted-handle marking. An unprivileged local user needs ordinary directory access on an already-mounted CIFS share; winning the race enables stale-handle reads or writes, target-file deletion, or directory starvation.
Summary
What happened
A race condition in affected Linux kernels' SMB client allows local users to access the wrong file and interrupt directory operations. During cifs_rename2, the target dentry remains hashed while deferred closes and outstanding I/O are processed, so a concurrent open can escape deleted-handle marking. An unprivileged local user needs ordinary directory access on an already-mounted CIFS share; winning the race enables stale-handle reads or writes, target-file deletion, or directory starvation.
The record
- CVE
- CVE-2025-39825
- Published
- Sep 16, 2025
- Updated
- Sep 16, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-362, T1485, T1005
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Sep 16, 2025CVE publishedPublication date reported by the CVE source.
- Sep 16, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <24b9ed739c8c5b464d983e12cf308982f3ae93c2
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <289f945acb20b9b54fe4d13895e44aa58965ddb2
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <c9991af5e09924f6f3b3e6996a5e09f9504b4358
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <c9e7de284da0be5b44dbe79d71573f9f7f9b144c
- Affected versionversion=1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 <d84291fc7453df7881a970716f8256273aca5747
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo