Skip to content
Heist/ feed
Back to feed
HighFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.150, 6.12.45, 6.16.5, 6.6.104
CVEs
CVE-2025-39825
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 22:33 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 16 Sept 2025, 13:00 UTC

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.

osv:CVE-2025-39825

Kernel

Fixed versions: 6.1.150, 6.6.104, 6.12.45, 6.16.5

Complete source record
{
  "id": "57d78c8759a52e55d41509404e2121e4417195c53c7c6440f7503f282f1a17e9",
  "url": "https://osv.dev/vulnerability/CVE-2025-39825",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "smb: client: fix race with concurrent opens in rename(2)",
    "summary": "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.",
    "evidence": "osv:CVE-2025-39825",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.150",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.104",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.45",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.16.5",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-39825",
      "aliases": [
        "CVE-2025-39825"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "78c09634f7dc061a3bd09704cdbebb3762a45cdf"
                },
                {
                  "fixed": "c9e7de284da0be5b44dbe79d71573f9f7f9b144c"
                },
                {
                  "fixed": "24b9ed739c8c5b464d983e12cf308982f3ae93c2"
                },
                {
                  "fixed": "c9991af5e09924f6f3b3e6996a5e09f9504b4358"
                },
                {
                  "fixed": "289f945acb20b9b54fe4d13895e44aa58965ddb2"
                },
                {
                  "fixed": "d84291fc7453df7881a970716f8256273aca5747"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39825.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.13.0"
                },
                {
                  "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"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39825.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:23.846109717Z",
      "provider": "osv",
      "references": [
        "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",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39825.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-39825",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39825.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-39825",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 490574,
  "published_at": "2025-09-16T13:00:23.897+00:00"
}