Lucene search
K

CVE-2025-40328 smb: client: fix potential UAF in smb2_close_cached_fid()

🗓️ 09 Dec 2025 04:09:44Reported by LinuxType 
cvelist
 cvelist
🔗 www.cve.org👁 20 Views

CVE-2025-40328: fix use-after-free in smb2_close_cached_fid by using kref_put_lock with cfid_list_lock.

Related
Affected
Refs
[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "fs/smb/client/cached_dir.c"
    ],
    "versions": [
      {
        "version": "ebe98f1447bbccf8228335c62d86af02a0ed23f7",
        "lessThan": "cb52d9c86d70298de0ab7c7953653898cbc0efd6",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "ebe98f1447bbccf8228335c62d86af02a0ed23f7",
        "lessThan": "065bd62412271a2d734810dd50336cae88c54427",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "ebe98f1447bbccf8228335c62d86af02a0ed23f7",
        "lessThan": "bdb596ceb4b7c3f28786a33840263728217fbcf5",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "ebe98f1447bbccf8228335c62d86af02a0ed23f7",
        "lessThan": "734e99623c5b65bf2c03e35978a0b980ebc3c2f8",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "fs/smb/client/cached_dir.c"
    ],
    "versions": [
      {
        "version": "6.1",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.1",
        "status": "unaffected",
        "versionType": "semver"
      },
      {
        "version": "6.6.117",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "semver"
      },
      {
        "version": "6.12.58",
        "lessThanOrEqual": "6.12.*",
        "status": "unaffected",
        "versionType": "semver"
      },
      {
        "version": "6.17.8",
        "lessThanOrEqual": "6.17.*",
        "status": "unaffected",
        "versionType": "semver"
      },
      {
        "version": "6.18",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation