All reports
Medium

kernel: smb: client: fix race with concurrent opens in rename(2)

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2025-39825

Probability of exploitation in the next 30 days: 0.12%

FIRST EPSS · 2026-11-19

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.

A flaw was found in the Linux kernel's SMB (Server Message Block) client. A race condition can occur when concurrent file open and rename operations are performed on an active network share. An authenticated local user could exploit this timing issue to cause file handle inconsistencies, potentially leading to data corruption or a Denial of Service (DoS) via a system crash.