5.5

CVE-2025-38711: smb/server: avoid deadlock when linking with ReplaceIfExists

Modified
AliasesUBUNTU-CVE-2025-38711DEBIAN-CVE-2025-38711
Published 04-09-2025Last modified 12-05-2026

Vulnerability summary

CVE-2025-38711 is a medium (CVSS 5.5) Improper Locking vulnerability in debian debian_linux. EPSS estimates a 0.14% chance of exploitation in the next 30 days, higher than 3.1% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.14%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 29 · Related 25

Timeline

  1. 04-09-2025
    PublishedVulnerability first disclosed.
  2. 12-05-2026
    Last modifiedVulnerability information updated.

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.

CVSS metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

0.14%

Chance of exploitation in the next 30 days

Percentile

3%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.13% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu150 products
  • linuxAll versions (No fix recorded) | < 5.15.0-163.173 | < 6.8.0-100.100
  • linux-allwinner-5.19All versions (No fix recorded)
  • linux-awsAll versions (No fix recorded) | < 5.15.0-1097.104 | < 6.8.0-1046.49
  • linux-aws-5.0All versions (No fix recorded)
  • linux-aws-5.11All versions (No fix recorded)
Debian2 products
  • linux< 6.1.153-1 | < 6.12.43-1 | < 6.16.3-1
  • debian_linuxEOL11.0
Linux2 products
  • linux≥ 0626e6641f6b467447c81dd7678a69c66f7746cf, < 9d5012ffe14120f978ee34aef4df3d6cb026b7c4 | ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf, < ac98d54630d5b52e3f684d872f0d82c06c418ea9 | ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf, < 1e858a7a51c7b8b009d8f246de7ceb7743b44a71 | ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf, < 814cfdb6358d9b84fcbec9918c8f938cc096a43a | ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf, < a7dddd62578c2eb6cb28b8835556a121b5157323 | ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf, < a726fef6d7d4cfc365d3434e3916dbfe78991a33 | ≥ 0626e6641f6b467447c81dd7678a69c66f7746cf, < d5fc1400a34b4ea5e8f2ce296ea12bf8c8421694 | 5.15
  • linux_kernel≥ 5.15, < 5.15.190 | ≥ 5.16, < 6.1.149 | ≥ 6.2, < 6.6.103 | ≥ 6.7, < 6.12.43 | ≥ 6.13, < 6.15.11 | ≥ 6.16, < 6.16.2

3 vendors · 154 products

References

39 links
Show all 39 references