CVE-2025-38711

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.
Configurations

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

Configuration 2 (hide)

cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*

History

19 Oct 2026, 21:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: smb/server: evitar interbloqueo al enlazar con ReplaceIfExists Si se llama a smb2_create_link() con ReplaceIfExists establecido y el nombre existe, entonces ocurrirá un interbloqueo. ksmbd_vfs_kern_path_locked() regresará con éxito y el directorio padre estará bloqueado. ksmbd_vfs_remove_file() entonces eliminará el archivo. ksmbd_vfs_link() entonces será llamado mientras el padre aún esté bloqueado. Intentará bloquear el mismo padre y se interbloqueará. Este parche mueve la llamada a ksmbd_vfs_kern_path_unlock() a *antes* de ksmbd_vfs_link() y luego simplifica el código, eliminando la variable de bandera file_present.

Information

Published : 2025-09-04 16:15

Updated : 2026-10-19 21:10


NVD link : CVE-2025-38711

Mitre link : CVE-2025-38711

CVE.ORG link : CVE-2025-38711


JSON object : View

Products Affected

debian

  • debian_linux

linux

  • linux_kernel
CWE
CWE-667

Improper Locking