# CVE-2025-39825: smb: client: fix race with concurrent opens in rename(2)

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 2% of CVEs (2026-12-01)
- Published: 2025-09-16T13:00:23.897Z
- Modified: 2026-10-19T21:10:00.160Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- 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
- debian debian_linux: 11.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 4.7 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/c9e7de284da0be5b44dbe79d71573f9f7f9b144c> (patch)
- <https://git.kernel.org/stable/c/24b9ed739c8c5b464d983e12cf308982f3ae93c2> (patch)
- <https://git.kernel.org/stable/c/c9991af5e09924f6f3b3e6996a5e09f9504b4358> (patch)
- <https://git.kernel.org/stable/c/289f945acb20b9b54fe4d13895e44aa58965ddb2> (patch)
- <https://git.kernel.org/stable/c/d84291fc7453df7881a970716f8256273aca5747> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (mailing-list, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>

## Sources

- CVE List: [CVE-2025-39825](https://www.cve.org/CVERecord?id=CVE-2025-39825), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-39825](https://nvd.nist.gov/vuln/detail/CVE-2025-39825), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-39825 · Whole record: https://cve.day/CVE-2025-39825.json · Rebuilt by cve.day 2026-11-25T22:59:04.730Z
