CVE-2025-38711
smb/server: avoid deadlock when linking with ReplaceIfExists
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 9d5012ffe14120f978ee34aef4df3d6cb026b7c4; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < ac98d54630d5b52e3f684d872f0d82c06c418ea9; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 1e858a7a51c7b8b009d8f246de7ceb7743b44a71; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 814cfdb6358d9b84fcbec9918c8f938cc096a43a; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < a7dddd62578c2eb6cb28b8835556a121b5157323; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < a726fef6d7d4cfc365d3434e3916dbfe78991a33; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < d5fc1400a34b4ea5e8f2ce296ea12bf8c8421694
- Anyone running Linux 5.15
Vulnerability facts
- Affected
- Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 9d5012ffe14120f978ee34aef4df3d6cb026b7c4; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < ac98d54630d5b52e3f684d872f0d82c06c418ea9; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 1e858a7a51c7b8b009d8f246de7ceb7743b44a71; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 814cfdb6358d9b84fcbec9918c8f938cc096a43a; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < a7dddd62578c2eb6cb28b8835556a121b5157323; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < a726fef6d7d4cfc365d3434e3916dbfe78991a33; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < d5fc1400a34b4ea5e8f2ce296ea12bf8c8421694; Linux 5.15
- Fixed in
- Linux 9d5012ffe14120f978ee34aef4df3d6cb026b7c4, Linux 1e858a7a51c7b8b009d8f246de7ceb7743b44a71, Linux 814cfdb6358d9b84fcbec9918c8f938cc096a43a
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.19% chance of exploitation in 30 days (percentile 5, 2026-11-26)
- CWE
- CWE-667
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: smb/server: avoid deadlock when linking with ReplaceIfExists If smb2_create_link() is called with ReplaceIfExists set and the name does exist then a deadlock will happen. ksmbd_vfs_kern_path_locked() will return with success and the parent directory will be locked. ksmbd_vfs_remove_file() will then remove the file. ksmbd_vfs_link() will then be called while the parent is still locked. It will try to lock the same parent and will deadlock. This patch moves the ksmbd_vfs_kern_path_unlock() call to *before* ksmbd_vfs_link() and then simplifies the code, removing the file_present flag variable.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 9d5012ffe14120f978ee34aef4df3d6cb026b7c4; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < ac98d54630d5b52e3f684d872f0d82c06c418ea9; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 1e858a7a51c7b8b009d8f246de7ceb7743b44a71; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 814cfdb6358d9b84fcbec9918c8f938cc096a43a; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < a7dddd62578c2eb6cb28b8835556a121b5157323; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < a726fef6d7d4cfc365d3434e3916dbfe78991a33; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < d5fc1400a34b4ea5e8f2ce296ea12bf8c8421694 | — | cvelist |
| Linux | 5.15 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-38711. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-38711.md Affected: Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 9d5012ffe14120f978ee34aef4df3d6cb026b7c4; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < ac98d54630d5b52e3f684d872f0d82c06c418ea9; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 1e858a7a51c7b8b009d8f246de7ceb7743b44a71; >= 0626e6641f6b467447c81dd… Fixed in: Linux 9d5012ffe14120f978ee34aef4df3d6cb026b7c4, Linux 1e858a7a51c7b8b009d8f246de7ceb7743b44a71, Linux 814cfdb6358d9b84fcbec9918c8f938cc096a43a Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/9d5012ffe14120f978ee34aef4df3d6cb026b7c4
- https://git.kernel.org/stable/c/ac98d54630d5b52e3f684d872f0d82c06c418ea9
- https://git.kernel.org/stable/c/1e858a7a51c7b8b009d8f246de7ceb7743b44a71
- https://git.kernel.org/stable/c/814cfdb6358d9b84fcbec9918c8f938cc096a43a
- https://git.kernel.org/stable/c/a7dddd62578c2eb6cb28b8835556a121b5157323
- https://git.kernel.org/stable/c/a726fef6d7d4cfc365d3434e3916dbfe78991a33
- https://git.kernel.org/stable/c/d5fc1400a34b4ea5e8f2ce296ea12bf8c8421694
FAQ
Is CVE-2025-38711 being exploited?
There is no confirmed exploitation: CVE-2025-38711 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-38711?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2025-38711?
Linux >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 9d5012ffe14120f978ee34aef4df3d6cb026b7c4; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < ac98d54630d5b52e3f684d872f0d82c06c418ea9; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 1e858a7a51c7b8b009d8f246de7ceb7743b44a71; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 814cfdb6358d9b84fcbec9918c8f938cc096a43a; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < a7dddd62578c2eb6cb28b8835556a121b5157323; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < a726fef6d7d4cfc365d3434e3916dbfe78991a33; >= 0626e6641f6b467447c81dd7678a69c66f7746cf, < d5fc1400a34b4ea5e8f2ce296ea12bf8c8421694; Linux 5.15.
Is there a fix for CVE-2025-38711?
Yes. Fixed in Linux 9d5012ffe14120f978ee34aef4df3d6cb026b7c4, Linux 1e858a7a51c7b8b009d8f246de7ceb7743b44a71, Linux 814cfdb6358d9b84fcbec9918c8f938cc096a43a. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-38711?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.