Cloudanix VulnDB

CVE-2025-39825

Medium · 4.7

CVSS

4.7

EPSS

0.1%

Published

Sep 16, 2025

CISA due date

—

Cloudanix analysis

Monitor only SSVC: Track

A flaw in Linux file renaming over network shares could let local programs interfere with each other, potentially causing crashes or access problems until the system is updated.

Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
High
Impact
Denial Of Service
Component
OS kernel
Class
Race Condition
Remediation
Patch
Effort
Medium
Patch risk
Low

What it actually does

Race condition in the SMB client rename path that leaves a window for concurrent opens on the target file while deferred closes, I/O completion, and handle invalidation occur.

Why it matters to the business

Local processes on systems using SMB shares may experience unexpected file access failures or kernel instability during rename operations, increasing operational risk on Linux deployments that mount remote file systems.

How an attack unfolds

An attacker with local access on an affected Linux system triggers a rename(2) on an SMB-mounted file while simultaneously issuing open calls from other threads or processes; the race allows the new opens to bypass the intended deletion marking, potentially leading to use-after-free or inconsistent handle state that can be chained with other kernel primitives for privilege escalation.

How to fix it

Update the Linux kernel to the commit c9e7de284da0be5b44dbe79d71573f9f7f9b144c or later; rebuild and reboot systems using the fixed tree. For packaged distributions apply the equivalent stable update when available.

How to confirm the fix worked

Confirm the running kernel contains commit c9e7de284da0be5b44dbe79d71573f9f7f9b144c via git describe or uname -r against the fixed version; re-test concurrent rename and open workloads on SMB mounts to verify absence of the race window.

Typical attack path

  1. Obtain local code execution on a Linux host with SMB client mounts
  2. Identify or create a file on the SMB share suitable for rename
  3. Race concurrent open(2) calls against a rename(2) operation
  4. Exploit resulting handle inconsistency or memory corruption

How to detect it

Review kernel logs and audit records for unexpected SMB client errors or dentry-related warnings around rename syscalls; look for process activity that performs rapid open/rename sequences on the same SMB path.

What your security team should do

  • Prioritize kernel updates on all systems that mount SMB shares
  • Monitor upstream stable branches for backported fixes
  • Restrict local unprivileged access on multi-user or container hosts until patched

The record

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 packages

Ecosystem Package Introduced Fixed
AlmaLinux:8 bpftool 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-abi-stablelists 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-core 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-cross-headers 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-debug 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-debug-core 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-debug-devel 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-debug-modules 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-debug-modules-extra 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-devel 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-doc 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-headers 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-modules 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-modules-extra 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-rt 0 4.18.0-553.87.1.rt7.428.el8_10
AlmaLinux:8 kernel-rt-core 0 4.18.0-553.87.1.rt7.428.el8_10
AlmaLinux:8 kernel-rt-debug 0 4.18.0-553.87.1.rt7.428.el8_10
AlmaLinux:8 kernel-rt-debug-core 0 4.18.0-553.87.1.rt7.428.el8_10
AlmaLinux:8 kernel-rt-debug-devel 0 4.18.0-553.87.1.rt7.428.el8_10
AlmaLinux:8 kernel-rt-debug-modules 0 4.18.0-553.87.1.rt7.428.el8_10
AlmaLinux:8 kernel-rt-debug-modules-extra 0 4.18.0-553.87.1.rt7.428.el8_10
AlmaLinux:8 kernel-rt-devel 0 4.18.0-553.87.1.rt7.428.el8_10
AlmaLinux:8 kernel-rt-modules 0 4.18.0-553.87.1.rt7.428.el8_10
AlmaLinux:8 kernel-rt-modules-extra 0 4.18.0-553.87.1.rt7.428.el8_10
AlmaLinux:8 kernel-tools 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-tools-libs 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-tools-libs-devel 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-zfcpdump 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-zfcpdump-core 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-zfcpdump-devel 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-zfcpdump-modules 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 kernel-zfcpdump-modules-extra 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 perf 0 4.18.0-553.87.1.el8_10
AlmaLinux:8 python3-perf 0 4.18.0-553.87.1.el8_10
Debian:11 linux 0 No fix
Debian:12 linux 0 No fix
Debian:13 linux 0 No fix
Debian:14 linux 0 6.16.5-1
Linux Kernel 0 6.1.150
Linux Kernel 5.13.0 6.1.150
SUSE:Linux Enterprise High Availability Extension 15 SP6 kernel-default 0 6.4.0-150600.23.73.1
SUSE:Linux Enterprise Live Patching 15 SP6 kernel-default 0 6.4.0-150600.23.73.1
SUSE:Linux Enterprise Live Patching 15 SP6 kernel-livepatch-SLE15-SP6-RT_Update_16 0 1-150600.1.3.1
SUSE:Linux Enterprise Live Patching 15 SP6 kernel-livepatch-SLE15-SP6_Update_16 0 1-150600.13.3.1
SUSE:Linux Enterprise Live Patching 15 SP7 kernel-livepatch-SLE15-SP7-RT_Update_5 0 1-150700.1.3.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 kernel-64kb 0 6.4.0-150600.23.73.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 kernel-default 0 6.4.0-150600.23.73.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 kernel-default-base 0 6.4.0-150600.23.73.1.150600.12.32.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 kernel-source 0 6.4.0-150600.23.73.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 kernel-zfcpdump 0 6.4.0-150600.23.73.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6 kernel-docs 0 6.4.0-150600.23.73.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6 kernel-obs-build 0 6.4.0-150600.23.73.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6 kernel-source 0 6.4.0-150600.23.73.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6 kernel-syms 0 6.4.0-150600.23.73.1
SUSE:Linux Enterprise Module for Legacy 15 SP6 kernel-default 0 6.4.0-150600.23.73.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP6 kernel-azure 0 6.4.0-150600.8.52.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP6 kernel-source-azure 0 6.4.0-150600.8.52.1
SUSE:Linux Enterprise Module for Public Cloud 15 SP6 kernel-syms-azure 0 6.4.0-150600.8.52.1
SUSE:Linux Enterprise Workstation Extension 15 SP6 kernel-default 0 6.4.0-150600.23.73.1
SUSE:Real Time Module 15 SP6 kernel-rt 0 6.4.0-150600.10.55.1
SUSE:Real Time Module 15 SP6 kernel-rt_debug 0 6.4.0-150600.10.55.1
SUSE:Real Time Module 15 SP6 kernel-source-rt 0 6.4.0-150600.10.55.1
SUSE:Real Time Module 15 SP6 kernel-syms-rt 0 6.4.0-150600.10.55.1
SUSE:Real Time Module 15 SP7 kernel-rt 0 6.4.0-150700.7.19.1
SUSE:Real Time Module 15 SP7 kernel-source-rt 0 6.4.0-150700.7.19.1
SUSE:Real Time Module 15 SP7 kernel-syms-rt 0 6.4.0-150700.7.19.1
openSUSE:Leap 15.6 dtb-aarch64 0 6.4.0-150600.23.73.1
openSUSE:Leap 15.6 kernel-64kb 0 6.4.0-150600.23.73.1
openSUSE:Leap 15.6 kernel-azure 0 6.4.0-150600.8.52.1
openSUSE:Leap 15.6 kernel-debug 0 6.4.0-150600.23.73.1
openSUSE:Leap 15.6 kernel-default 0 6.4.0-150600.23.73.1
openSUSE:Leap 15.6 kernel-default-base 0 6.4.0-150600.23.73.1.150600.12.32.1
openSUSE:Leap 15.6 kernel-docs 0 6.4.0-150600.23.73.1
openSUSE:Leap 15.6 kernel-kvmsmall 0 6.4.0-150600.23.73.1
openSUSE:Leap 15.6 kernel-obs-build 0 6.4.0-150600.23.73.1
openSUSE:Leap 15.6 kernel-obs-qa 0 6.4.0-150600.23.73.1
openSUSE:Leap 15.6 kernel-rt 0 6.4.0-150600.10.55.1
openSUSE:Leap 15.6 kernel-rt_debug 0 6.4.0-150600.10.55.1
openSUSE:Leap 15.6 kernel-source 0 6.4.0-150600.23.73.1
openSUSE:Leap 15.6 kernel-source-azure 0 6.4.0-150600.8.52.1
openSUSE:Leap 15.6 kernel-source-rt 0 6.4.0-150600.10.55.1
openSUSE:Leap 15.6 kernel-syms 0 6.4.0-150600.23.73.1
openSUSE:Leap 15.6 kernel-syms-azure 0 6.4.0-150600.8.52.1
openSUSE:Leap 15.6 kernel-syms-rt 0 6.4.0-150600.10.55.1
openSUSE:Leap 15.6 kernel-zfcpdump 0 6.4.0-150600.23.73.1
openSUSE:Leap 16.0 dtb-aarch64 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-64kb 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-default 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-default-base 0 6.12.0-160000.6.1.160000.2.4
openSUSE:Leap 16.0 kernel-docs 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-kvmsmall 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-obs-build 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-obs-qa 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-rt 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-source 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-syms 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-zfcpdump 0 6.12.0-160000.6.1

Related vulnerabilities