SecurityContext

CVE-2025-40328: Linux Kernel - Use After Free

  • Cve: CVE-2025-40328
  • Name: Linux Kernel - Use After Free
  • Description: In the Linux kernel, the following vulnerability has been resolved: smb: client: fix potential UAF in smb2_close_cached_fid() find_or_create_cached_dir() could grab a new reference after kref_put() had seen the refcount drop to zero but before cfid_list_lock is acquired in smb2_close_cached_fid(), leading to use-after-free. Switch to kref_put_lock() so cfid_release() is called with cfid_list_lock held, closing that gap.
  • Impact: Attackers can cause memory corruption leading to potential system crashes or privilege escalation.
  • Remediation: Update to the latest Linux kernel version with the fix applied.
  • Vulnerability type: use_after_free
  • Vulnerability impact: use_after_free
  • Requirements: Attacker needs local access to trigger the race condition
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.00494
  • Epss percentile: 0.43254
  • Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  • Published at: 2025-12-09T16:17:42Z
  • Age in days: 350
  • Modified at: 2026-10-30T13:18:16Z
  • Patch available: yes
  • References total: 5
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-40328
  • Nvd status: deferred
  • Checked, none or zero: cwe, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirement type, hackerone

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://git.kernel.org/stable/c/065bd62412271a2d734810dd50336cae88c54427
https://git.kernel.org/stable/c/734e99623c5b65bf2c03e35978a0b980ebc3c2f8
https://git.kernel.org/stable/c/bb3355ce9dcaba1b4a766f98b2ad373cab6cd626
https://git.kernel.org/stable/c/bdb596ceb4b7c3f28786a33840263728217fbcf5
https://git.kernel.org/stable/c/cb52d9c86d70298de0ab7c7953653898cbc0efd6

Products

ProductAffectedPlatform boundSourcesUrl
linux:linux_kernel>= 6.1, < 6.18; >= 6.1, < 6.17.8; >= 6.1, < 6.12.58; >= 6.1, < 6.6.117; >= 6.1, < 6.1.191nocna/v1/products/linux/linux_kernel

Projects

RepositoryLink kindsIndexedUrl
torvalds/linuxcna_commit, commityes/v1/repositories/torvalds/linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Exposed hosts: 10038339
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports