CVE-2025-38711
publishedsmb/server: avoid deadlock when linking with ReplaceIfExists
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux0626e6641f6b467447c81dd7678a69c66f7746cf to < 9d5012ffe14120f978ee34aef4df3d6cb026b7c4 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < ac98d54630d5b52e3f684d872f0d82c06c418ea9 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 1e858a7a51c7b8b009d8f246de7ceb7743b44a71 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < 814cfdb6358d9b84fcbec9918c8f938cc096a43a · 0626e6641f6b467447c81dd7678a69c66f7746cf to < a7dddd62578c2eb6cb28b8835556a121b5157323 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < a726fef6d7d4cfc365d3434e3916dbfe78991a33 · 0626e6641f6b467447c81dd7678a69c66f7746cf to < d5fc1400a34b4ea5e8f2ce296ea12bf8c8421694 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.190 through 5.15.* (unaffected · semver) · 6.1.149 through 6.1.* (unaffected · semver) · 6.6.103 through 6.6.* (unaffected · semver) · 6.12.43 through 6.12.* (unaffected · semver) · 6.15.11 through 6.15.* (unaffected · semver) · 6.16.2 through 6.16.* (unaffected · semver) · 6.17 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Siemens | — | SIMATIC CN 41000 to < V5.0 · Other versions: unknown | Affected | Not stated | siemens-SADP |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Debian | bookworm | linux | Advisory build | 6.1.153-1 | DSA-6009-1 |
| Ubuntu | focal | linux-aws-5.15 | Advisory build | 5.15.0-1097.104~20.04.1 | USN-7909-1 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.153-1~deb11u1 | DLA-4328-1 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | focal | linux-aws-5.15-cloud-tools-5.15.0-1097 | Advisory build | 5.15.0-1097.104~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-aws-5.15-headers-5.15.0-1097 | Advisory build | 5.15.0-1097.104~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-aws-5.15-tools-5.15.0-1097 | Advisory build | 5.15.0-1097.104~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-azure-5.15 | Advisory build | 5.15.0-1102.111~20.04.1 | USN-7938-1 |
| Ubuntu | focal | linux-azure-5.15-cloud-tools-5.15.0-1102 | Advisory build | 5.15.0-1102.111~20.04.1 | USN-7938-1 |
| Ubuntu | focal | linux-azure-5.15-headers-5.15.0-1102 | Advisory build | 5.15.0-1102.111~20.04.1 | USN-7938-1 |
| Ubuntu | focal | linux-azure-5.15-tools-5.15.0-1102 | Advisory build | 5.15.0-1102.111~20.04.1 | USN-7938-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1049-nvidia-tegra | Advisory build | 5.15.0-1049.49~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1049-nvidia-tegra-rt | Advisory build | 5.15.0-1049.49~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1091-ibm | Advisory build | 5.15.0-1091.94~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1092-intel-iotg | Advisory build | 5.15.0-1092.98~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1094-oracle | Advisory build | 5.15.0-1094.100~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1097-aws | Advisory build | 5.15.0-1097.104~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1097-gcp | Advisory build | 5.15.0-1097.106~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-1102-azure | Advisory build | 5.15.0-1102.111~20.04.1 | USN-7938-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-163-generic | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-163-generic-64k | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-163-generic-lpae | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-163-lowlatency | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-buildinfo-5.15.0-163-lowlatency-64k | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1092-intel-iotg | Advisory build | 5.15.0-1092.98~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1097-aws | Advisory build | 5.15.0-1097.104~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-1102-azure | Advisory build | 5.15.0-1102.111~20.04.1 | USN-7938-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-163-generic | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-cloud-tools-5.15.0-163-lowlatency | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-gcp-5.15 | Advisory build | 5.15.0-1097.106~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-gcp-5.15-headers-5.15.0-1097 | Advisory build | 5.15.0-1097.106~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-gcp-5.15-tools-5.15.0-1097 | Advisory build | 5.15.0-1097.106~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-headers-5.15.0-1049-nvidia-tegra | Advisory build | 5.15.0-1049.49~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-headers-5.15.0-1049-nvidia-tegra-rt | Advisory build | 5.15.0-1049.49~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-headers-5.15.0-1091-ibm | Advisory build | 5.15.0-1091.94~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-headers-5.15.0-1092-intel-iotg | Advisory build | 5.15.0-1092.98~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-headers-5.15.0-1094-oracle | Advisory build | 5.15.0-1094.100~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-headers-5.15.0-1097-aws | Advisory build | 5.15.0-1097.104~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-headers-5.15.0-1097-gcp | Advisory build | 5.15.0-1097.106~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-headers-5.15.0-1102-azure | Advisory build | 5.15.0-1102.111~20.04.1 | USN-7938-1 |
| Ubuntu | focal | linux-headers-5.15.0-163-generic | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-headers-5.15.0-163-generic-64k | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-headers-5.15.0-163-generic-lpae | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-headers-5.15.0-163-lowlatency | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-headers-5.15.0-163-lowlatency-64k | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-hwe-5.15 | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-hwe-5.15-cloud-tools-5.15.0-163 | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-hwe-5.15-headers-5.15.0-163 | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-hwe-5.15-tools-5.15.0-163 | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-ibm-5.15 | Advisory build | 5.15.0-1091.94~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-ibm-5.15-headers-5.15.0-1091 | Advisory build | 5.15.0-1091.94~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-ibm-5.15-source-5.15.0 | Advisory build | 5.15.0-1091.94~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-ibm-5.15-tools-5.15.0-1091 | Advisory build | 5.15.0-1091.94~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-image-5.15.0-163-generic | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-image-5.15.0-163-generic-lpae | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1049-nvidia-tegra | Advisory build | 5.15.0-1049.49~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1049-nvidia-tegra-rt | Advisory build | 5.15.0-1049.49~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1091-ibm | Advisory build | 5.15.0-1091.94~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1092-intel-iotg | Advisory build | 5.15.0-1092.98~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1094-oracle | Advisory build | 5.15.0-1094.100~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1097-aws | Advisory build | 5.15.0-1097.104~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1097-gcp | Advisory build | 5.15.0-1097.106~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-1102-azure | Advisory build | 5.15.0-1102.111~20.04.1 | USN-7938-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-163-generic | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-163-generic-64k | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-163-lowlatency | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-image-unsigned-5.15.0-163-lowlatency-64k | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-intel-iotg-5.15 | Advisory build | 5.15.0-1092.98~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-5.15.0-1092 | Advisory build | 5.15.0-1092.98~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-cloud-tools-common | Advisory build | 5.15.0-1092.98~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-headers-5.15.0-1092 | Advisory build | 5.15.0-1092.98~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-5.15.0-1092 | Advisory build | 5.15.0-1092.98~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-common | Advisory build | 5.15.0-1092.98~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-intel-iotg-5.15-tools-host | Advisory build | 5.15.0-1092.98~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15 | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-cloud-tools-5.15.0-163 | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-headers-5.15.0-163 | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-lowlatency-hwe-5.15-tools-5.15.0-163 | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-5.15.0-1049-nvidia-tegra | Advisory build | 5.15.0-1049.49~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-5.15.0-1049-nvidia-tegra-rt | Advisory build | 5.15.0-1049.49~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-5.15.0-1091-ibm | Advisory build | 5.15.0-1091.94~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-5.15.0-1092-intel-iotg | Advisory build | 5.15.0-1092.98~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-5.15.0-1094-oracle | Advisory build | 5.15.0-1094.100~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-5.15.0-1097-aws | Advisory build | 5.15.0-1097.104~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-5.15.0-1097-gcp | Advisory build | 5.15.0-1097.106~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-5.15.0-1102-azure | Advisory build | 5.15.0-1102.111~20.04.1 | USN-7938-1 |
| Ubuntu | focal | linux-modules-5.15.0-163-generic | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-5.15.0-163-generic-64k | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-5.15.0-163-generic-lpae | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-5.15.0-163-lowlatency | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-5.15.0-163-lowlatency-64k | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1049-nvidia-tegra | Advisory build | 5.15.0-1049.49~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1091-ibm | Advisory build | 5.15.0-1091.94~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1092-intel-iotg | Advisory build | 5.15.0-1092.98~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1094-oracle | Advisory build | 5.15.0-1094.100~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1097-aws | Advisory build | 5.15.0-1097.104~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1097-gcp | Advisory build | 5.15.0-1097.106~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-1102-azure | Advisory build | 5.15.0-1102.111~20.04.1 | USN-7938-1 |
| Ubuntu | focal | linux-modules-extra-5.15.0-163-generic | Advisory build | 5.15.0-163.173~20.04.1 | USN-7909-1 |
| Ubuntu | focal | linux-modules-involflt-5.15.0-1102-azure | Advisory build | 5.15.0-1102.111~20.04.1 | USN-7938-1 |
| Ubuntu | focal | linux-modules-iwlwifi-5.15.0-1092-intel-iotg | Advisory build | 5.15.0-1092.98~20.04.1 | USN-7909-1 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 0626e6641f6b467447c81dd7678a69c66f7746cf to < 9d5012ffe14120f978ee34aef4df3d6cb026b7c4 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < ac98d54630d5b52e3f684d872f0d82c06c418ea9 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 1e858a7a51c7b8b009d8f246de7ceb7743b44a71 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < 814cfdb6358d9b84fcbec9918c8f938cc096a43a (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < a7dddd62578c2eb6cb28b8835556a121b5157323 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < a726fef6d7d4cfc365d3434e3916dbfe78991a33 (affected · git)0626e6641f6b467447c81dd7678a69c66f7746cf to < d5fc1400a34b4ea5e8f2ce296ea12bf8c8421694 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.190 through 5.15.* (unaffected · semver)6.1.149 through 6.1.* (unaffected · semver)6.6.103 through 6.6.* (unaffected · semver)6.12.43 through 6.12.* (unaffected · semver)6.15.11 through 6.15.* (unaffected · semver)6.16.2 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
| Siemens | SIMATIC CN 4100 | 0 to < V5.0 (affected · custom)Default: unknown | siemens-SADP · adp |
Weaknesses
0No weakness assertions.
References
9- https://cert-portal.siemens.com/productcert/html/ssa-032379.html
- https://git.kernel.org/stable/c/1e858a7a51c7b8b009d8f246de7ceb7743b44a71
- https://git.kernel.org/stable/c/814cfdb6358d9b84fcbec9918c8f938cc096a43a
- https://git.kernel.org/stable/c/9d5012ffe14120f978ee34aef4df3d6cb026b7c4
- https://git.kernel.org/stable/c/a726fef6d7d4cfc365d3434e3916dbfe78991a33
- https://git.kernel.org/stable/c/a7dddd62578c2eb6cb28b8835556a121b5157323
- https://git.kernel.org/stable/c/ac98d54630d5b52e3f684d872f0d82c06c418ea9
- https://git.kernel.org/stable/c/d5fc1400a34b4ea5e8f2ce296ea12bf8c8421694
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html
Provider assertions
3Linux · cna
smb/server: avoid deadlock when linking with ReplaceIfExists
siemens-SADP · adp
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 599ee4a1db85e604e5659f5c2b6df09009326842b13308d37407be668aaf4fca
- Ingested
- 23 Sep 2026, 08:46:47 UTC
- Source record
- Official CVE record