7.8high
smb: client: fix race with concurrent opens in rename(2)
- Severity
- 7.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.12% (higher than 2% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix race with concurrent opens in rename(2) Besides sending the rename request to the server, the rename process also involves closing any deferred close, waiting for outstanding I/O to complete as well as marking all existing open handles as deleted to prevent them from deferring closes, which increases the race window for potential concurrent opens on the target file. Fix this by unhashing the dentry in advance to prevent any concurrent opens on the target.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 78c09634f7dc061a3bd09704cdbebb3762a45cdf before c9e7de284da0be5b44dbe79d71573f9f7f9b144c, from 78c09634f7dc061a3bd09704cdbebb3762a45cdf before 24b9ed739c8c5b464d983e12cf308982f3ae93c2, from 78c09634f7dc061a3bd09704cdbebb3762a45cdf before c9991af5e09924f6f3b3e6996a5e09f9504b4358, from 78c09634f7dc061a3bd09704cdbebb3762a45cdf before 289f945acb20b9b54fe4d13895e44aa58965ddb2, from 78c09634f7dc061a3bd09704cdbebb3762a45cdf before d84291fc7453df7881a970716f8256273aca5747, 5.13 Not affected: before 5.13, from 6.1.150 up to 6.1.*, from 6.6.104 up to 6.6.*, from 6.12.45 up to 6.12.*, from 6.16.5 up to 6.16.*, from 6.17 up to * | CVE List |
| linux linux_kernel | from 5.13 before 6.1.150, from 6.2 before 6.6.104, from 6.7 before 6.12.45, from 6.13 before 6.16.5, 6.17 | NVD |
| debian debian_linux | 11.0 | NVD |
All scores
| Linux | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 4.7medium CVSS:3.1 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: smb: client: fix race with concurrent opens in rename(2) Besides sending the rename request to the server, the rename process also involves closing any deferred close, waiting for outstanding I/O to complete as well as marking all existing open handles as deleted to prevent them from deferring closes, which increases the race window for potential concurrent opens on the target file. Fix this by unhashing the dentry in advance to prevent any concurrent opens on the target.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: smb: cliente: corrección de condición de carrera con aperturas concurrentes en rename(2) Además de enviar la solicitud de renombrado al servidor, el proceso de renombrado también implica cerrar cualquier cierre diferido, esperar a que se complete la E/S pendiente, así como marcar todos los identificadores abiertos existentes como eliminados para evitar que difieran los cierres, lo que aumenta la ventana de la condición de carrera para posibles aperturas concurrentes en el archivo de destino. Esto se corrige deshasheando la dentry de antemano para evitar cualquier apertura concurrente en el destino.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-39825 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2025-39825 changed 2026-10-19 | Public domain |