CVE-2025-39825

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-39825
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-39825.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-39825
Downstream
Related
Published
2025-09-16T13:00:23.897Z
Modified
2025-11-28T02:34:08.538252Z
Summary
smb: client: fix race with concurrent opens in rename(2)
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39825.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Fixed
c9e7de284da0be5b44dbe79d71573f9f7f9b144c
Fixed
24b9ed739c8c5b464d983e12cf308982f3ae93c2
Fixed
c9991af5e09924f6f3b3e6996a5e09f9504b4358
Fixed
289f945acb20b9b54fe4d13895e44aa58965ddb2
Fixed
d84291fc7453df7881a970716f8256273aca5747

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.1.150
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.104
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.45
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.16.5