CVE-2025-39825
published high CVSS 3.1 · 7.8smb: client: fix race with concurrent opens in rename(2)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux78c09634f7dc061a3bd09704cdbebb3762a45cdf to < c9e7de284da0be5b44dbe79d71573f9f7f9b144c · 78c09634f7dc061a3bd09704cdbebb3762a45cdf to < 24b9ed739c8c5b464d983e12cf308982f3ae93c2 · 78c09634f7dc061a3bd09704cdbebb3762a45cdf to < c9991af5e09924f6f3b3e6996a5e09f9504b4358 · 78c09634f7dc061a3bd09704cdbebb3762a45cdf to < 289f945acb20b9b54fe4d13895e44aa58965ddb2 · 78c09634f7dc061a3bd09704cdbebb3762a45cdf to < d84291fc7453df7881a970716f8256273aca5747 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.13 (affected) · 0 to < 5.13 (unaffected · semver) · 6.1.150 through 6.1.* (unaffected · semver) · 6.6.104 through 6.6.* (unaffected · semver) · 6.12.45 through 6.12.* (unaffected · semver) · 6.16.5 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; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1186 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1208 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | bpftool | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| Debian | bookworm | linux | Advisory build | 6.1.153-1 | DSA-6009-1 |
Show 98 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 10 | kernel-uekaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| AlmaLinux | 8 | kernel | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-abi-stablelists | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-core | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-cross-headers | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-debug | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-debug-core | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-debug-devel | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-debug-modules | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-debug-modules-extra | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-devel | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-doc | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-headers | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-modules | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-modules-extra | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-rt | Advisory build | 4.18.0-553.87.1.rt7.428.el8_10 | ALSA-2025:22387 |
| AlmaLinux | 8 | kernel-rt-core | Advisory build | 4.18.0-553.87.1.rt7.428.el8_10 | ALSA-2025:22387 |
| AlmaLinux | 8 | kernel-rt-debug | Advisory build | 4.18.0-553.87.1.rt7.428.el8_10 | ALSA-2025:22387 |
| AlmaLinux | 8 | kernel-rt-debug-core | Advisory build | 4.18.0-553.87.1.rt7.428.el8_10 | ALSA-2025:22387 |
| AlmaLinux | 8 | kernel-rt-debug-devel | Advisory build | 4.18.0-553.87.1.rt7.428.el8_10 | ALSA-2025:22387 |
| AlmaLinux | 8 | kernel-rt-debug-modules | Advisory build | 4.18.0-553.87.1.rt7.428.el8_10 | ALSA-2025:22387 |
| AlmaLinux | 8 | kernel-rt-debug-modules-extra | Advisory build | 4.18.0-553.87.1.rt7.428.el8_10 | ALSA-2025:22387 |
| AlmaLinux | 8 | kernel-rt-devel | Advisory build | 4.18.0-553.87.1.rt7.428.el8_10 | ALSA-2025:22387 |
| AlmaLinux | 8 | kernel-rt-modules | Advisory build | 4.18.0-553.87.1.rt7.428.el8_10 | ALSA-2025:22387 |
| AlmaLinux | 8 | kernel-rt-modules-extra | Advisory build | 4.18.0-553.87.1.rt7.428.el8_10 | ALSA-2025:22387 |
| AlmaLinux | 8 | kernel-tools | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-tools-libs | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-tools-libs-devel | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-zfcpdump | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-zfcpdump-core | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-zfcpdump-devel | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-zfcpdump-modules | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | kernel-zfcpdump-modules-extra | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | perf | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| AlmaLinux | 8 | python3-perf | Advisory build | 4.18.0-553.87.1.el8_10 | ALSA-2025:22388 |
| Debian | bullseye | linux-6.1 | Advisory build | 6.1.153-1~deb11u1 | DLA-4328-1 |
| Debian | trixie | linux | Advisory build | 6.12.48-1 | DSA-6008-1 |
| Oracle Linux | 10 | kernel-uekx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-usbaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-usbx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-toolsaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek-toolsx86_64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64kaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-develaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modulesaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-coreaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-desktopaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-extraaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-usbaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 10 | kernel-uek64k-modules-wirelessaarch64 | Advisory build | 0:6.12.0-105.51.5.el10uek | ELSA-2025-25754 |
| Oracle Linux | 8 | bpftoolaarch64 | Advisory build | 0:4.18.0-553.87.1.el8_10 | ELSA-2025-22388 |
| Oracle Linux | 8 | bpftoolx86_64 | Advisory build | 0:4.18.0-553.87.1.el8_10 | ELSA-2025-22388 |
| Oracle Linux | 8 | kernelx86_64 | Advisory build | 0:4.18.0-553.87.1.el8_10 | ELSA-2025-22388 |
| Oracle Linux | 8 | kernel-abi-stablelistsx86_64 | Advisory build | 0:4.18.0-553.87.1.el8_10 | ELSA-2025-22388 |
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: 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The race is driven entirely by local syscalls — one thread in `rename(2)`/`renameat2(2)` reaching `cifs_rename2()` and another in `open(2)` hitting the still-hashed target dentry via `lookup_fast()`. No network peer initiates the attack; a remote SMB server can only widen the window by delaying responses. AC:L - The attacker owns both sides of the race and the window is enormous — it spans an unbounded `netfs_wait_for_outstanding_io()` wait, deferred-close teardown, and a full SMB round trip plus a 3-iteration retry loop. The attacker can widen it arbitrarily by keeping I/O outstanding on the target, making it trivially winnable with a simple rename/open loop. PR:L - Any unprivileged local user with ordinary access to a directory on an already-mounted CIFS/SMB share can call rename(2) and open(2); no capabilities are required. Mounted SMB shares are routine on enterprise desktops, autofs home directories, and containers with CIFS volumes. UI:N - Both racing threads are the attacker's own; no victim action is needed. The presence of an SMB mount is a standing system configuration, not a per-exploit user interaction. S:U - The corruption of dcache/deferred-handle state and the resulting file damage stay entirely within the kernel and the mounted filesystem's own security authority. No VM, IOMMU, or sandbox boundary is crossed. C:H - A handle opened inside the race escapes `cifs_mark_open_handles_for_deleted_file()` and remains on `tcon->openFileList`, where `cifs_get_readable_path()` matches cached handles by path string — so a later `open(2)`/`read(2)` of that path can be served from the stale handle to the pre-rename file, disclosing unbounded contents of a file (potentially another user's) that should no longer be reachable at that name. I:H - The racing open makes the target appear busy, driving `cifs_rename2()` into the `unlink_target:` path that deletes the target file and retries — on retry failure the file's data is destroyed while rename(2) reports an error (the documented data-loss mode fixed by the later `c5ea3065586d`). The same stale path-matched handle also lets writes land on the wrong server-side object. A:H - By keeping opens and I/O active on the still-hashed target, the attacker prevents `netfs_wait_for_outstanding_io()`'s `io_count` from ever reaching zero, pinning the renaming task in unkillable uninterruptible sleep while it holds the parent directory's `i_rwsem` exclusively — starving all other operations in that directory and triggering hung-task warnings (panic with `hung_task_panic=1`).
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 78c09634f7dc061a3bd09704cdbebb3762a45cdf to < c9e7de284da0be5b44dbe79d71573f9f7f9b144c (affected · git)78c09634f7dc061a3bd09704cdbebb3762a45cdf to < 24b9ed739c8c5b464d983e12cf308982f3ae93c2 (affected · git)78c09634f7dc061a3bd09704cdbebb3762a45cdf to < c9991af5e09924f6f3b3e6996a5e09f9504b4358 (affected · git)78c09634f7dc061a3bd09704cdbebb3762a45cdf to < 289f945acb20b9b54fe4d13895e44aa58965ddb2 (affected · git)78c09634f7dc061a3bd09704cdbebb3762a45cdf to < d84291fc7453df7881a970716f8256273aca5747 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.13 (affected)0 to < 5.13 (unaffected · semver)6.1.150 through 6.1.* (unaffected · semver)6.6.104 through 6.6.* (unaffected · semver)6.12.45 through 6.12.* (unaffected · semver)6.16.5 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
7- https://cert-portal.siemens.com/productcert/html/ssa-032379.html
- https://git.kernel.org/stable/c/24b9ed739c8c5b464d983e12cf308982f3ae93c2
- https://git.kernel.org/stable/c/289f945acb20b9b54fe4d13895e44aa58965ddb2
- https://git.kernel.org/stable/c/c9991af5e09924f6f3b3e6996a5e09f9504b4358
- https://git.kernel.org/stable/c/c9e7de284da0be5b44dbe79d71573f9f7f9b144c
- https://git.kernel.org/stable/c/d84291fc7453df7881a970716f8256273aca5747
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html
Provider assertions
4Linux · cna
smb: client: fix race with concurrent opens in rename(2)
siemens-SADP · adp
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 599f7f91706798ffa7a68d75db8264f87ed288bdb2ccc029093cba28390471a1
- Ingested
- 23 Sep 2026, 08:47:06 UTC
- Source record
- Official CVE record