CVE-2025-40320

CRITICALPre-NVD 9.89.8
EchelonGraph scoreMEDIUM confidence

“—” beside the score: it is equal to the CVSS score beside it.

Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2025-12-08. A secondary CVSS source baseline 9.8; sources differ by 0.0.

Triggered by: GitHub Security Advisory CVSS
Sources: EPSS, GitHub Security Advisory, a secondary CVSS source
Trending — 4 sources updated this week
9.8EG
EchelonGraph verdictPlan a fixRemediate within your standard update timelines (the SSVC decision on this page).
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS PROB: 0.4%CVSS: 9.8Exploit: None knownExposed services: Not assessed

A fix is available — apply it.

In the Linux kernel, the following vulnerability has been resolved:

smb: client: fix potential cfid UAF in smb2_query_info_compound

When smb2_query_info_compound() retries, a previously allocated cfid may have been freed in the first attempt. Because cfid wasn't reset on replay, later cleanup could act on a stale pointer, leading to a potential use-after-free.

Reinitialize cfid to NULL under the replay label.

Example trace (trimmed):

refcount_t: underflow; use-after-free. WARNING: CPU: 1 PID: 11224 at ../lib/refcount.c:28 refcount_warn_saturate+0x9c/0x110 [...] RIP: 0010:refcount_warn_saturate+0x9c/0x110 [...] Call Trace: smb2_query_info_compound+0x29c/0x5c0 [cifs f90b72658819bd21c94769b6a652029a07a7172f] ? step_into+0x10d/0x690 ? __legitimize_path+0x28/0x60 smb2_queryfs+0x6a/0xf0 [cifs f90b72658819bd21c94769b6a652029a07a7172f] smb311_queryfs+0x12d/0x140 [cifs f90b72658819bd21c94769b6a652029a07a7172f] ? kmem_cache_alloc+0x18a/0x340 ? getname_flags+0x46/0x1e0 cifs_statfs+0x9f/0x2b0 [cifs f90b72658819bd21c94769b6a652029a07a7172f] statfs_by_dentry+0x67/0x90 vfs_statfs+0x16/0xd0 user_statfs+0x54/0xa0 __do_sys_statfs+0x20/0x50 do_syscall_64+0x58/0x80

CVSS v3
9.8
EG Score
9.8CRITICALmedium confidence
EG Risk
44
EG Risk 44/100

EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).

How it’s computed (value × EchelonGraph’s weight)
Severity98% × 45%
The EG Score, 9.8 of 10.
Exploitation0.4% × 40%
FIRST EPSS: the 30-day exploitation probability when EchelonGraph scored this CVE.
Automatability0% × 15%
CISA's BOD 26-04 default: no one has published Automatable for this CVE, and CISA treats it as “no” for a CVE not in KEV.
SSVC (CISA's decision table, applied by EchelonGraph): Track at low or medium mission impact; Track* at high (mission-essential systems).
Exploitation none (no CISA value, KEV listing or exploit code on record) · Automatable no (CISA's BOD 26-04 default) · Technical impact total (CISA's BOD 26-04 default). EchelonGraph holds no SSVC assessment of this CVE from CISA: none of these inputs is from Vulnrichment. EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.
Action: A fix is available. Apply it within your standard update timelines.
EPSS PROB
0.4%
EPSS %ILE
34th
KEV
Not listed

SSVC (CISA's decision table, applied by EchelonGraph)Track at low or medium mission impact; Track* at high (mission-essential systems).

A fix is available. Apply it within your standard update timelines.

Exploitation none (no CISA value, KEV listing or exploit code on record) · Automatable no (CISA's BOD 26-04 default) · Technical impact total (CISA's BOD 26-04 default). EchelonGraph holds no SSVC assessment of this CVE from CISA: none of these inputs is from Vulnrichment. EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table

BOD 26-04 (CISA's remediation timeline, Table 1)14 days if the affected system is publicly exposed; Fix on system upgrade if it is not.

In CISA KEV no (CISA's KEV catalog) · Automatable no (CISA's BOD 26-04 default) · Technical impact total (CISA's BOD 26-04 default). Where an input reads “CISA's BOD 26-04 default”, no one has published it for this CVE, and CISA's implementation guidance says: “If “Automatable” and “Technical Impact” information items about a CVE ID are not available and the CVE ID is not in the KEV Catalog, CISA will treat its values as “no” and “total,” respectively, until CISA or a third party provides metadata about the CVE ID. CISA will always provide the Vulnrichment data for a CVE ID listed in the KEV Catalog.” Whether your system is publicly exposed is yours to answer. BOD 26-04 binds US Federal Civilian Executive Branch agencies; for anyone else it is CISA's published timeline, a reference rather than an obligation. The directive · how EchelonGraph applies it

Published

December 8, 2025

Last Modified

October 14, 2026

Advisory Details (4)

Auto-updated Oct 15, 2026
Patch available.
Web page

smb: client: fix potential cfid UAF in smb2_query_info_compound - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/b556c278d43f4707a9073ca74d55581b4f279806
Web page

smb: client: fix potential cfid UAF in smb2_query_info_compound - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/939c4e33005e2a56ea8fcedddf0da92df864bd3b
Web page

smb: client: fix potential cfid UAF in smb2_query_info_compound - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/5c76f9961c170552c1d07c830b5e145475151600
Web page

smb: client: fix potential cfid UAF in smb2_query_info_compound - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/327f89c21601ebb7889f8c97754b76f08ce95a0c

Vendor Advisories for CVE-2025-40320(2)

These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.

Patch Availability(17)

Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.

Affected Packages

(2 across 2 ecosystems)
Debian:13(1)
PackageVulnerable rangeFix by version rangeDependents
linux6.12.38-1 ... 6.12.63-1~bpo12+1 (8 versions)
  • every version up to 6.12.63-1: fixed in 6.12.63-1
—
Debian:14(1)
PackageVulnerable rangeFix by version rangeDependents
linux6.12.100-1 ... 6.17.8-1~bpo13+1 (79 versions)
  • every version up to 6.17.8-1: fixed in 6.17.8-1
—

Additional Vendor Advisories

(15)

Data Freshness Timeline

(refreshed 21× in last 7d / 39× in last 30d)

Each row is a time one of our pipelines fetched, updated or re-scored this CVE. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). Most recent first.

Showing the most recent 97 of 217 refreshes on record for this CVE.

A repeat, a row identical to one the same pipeline wrote less than 10 seconds earlier, is not a separate refresh and is not counted. 3 repeat rows among the latest 100 are merged into the row they repeat. The 120 oldest rows on record are not shown and were not checked, so the counts can still include repeats.

  1. 2026-10-14 22:28 UTCEG score recompute
  2. 2026-10-14 22:28 UTCVendor advisory
  3. 2026-10-14 22:28 UTCGHSA enrichmentGHSA-2vg8-pj5q-762f · GitHub severity CRITICAL · GitHub CVSS 9.8
  4. 2026-10-14 16:31 UTCEPSS rescoreEPSS 0.4% · 34th percentile
  5. 2026-10-14 11:43 UTCEG score recompute
  6. 2026-10-14 11:43 UTCVendor advisory
  7. 2026-10-14 11:42 UTCGHSA enrichmentGHSA-2vg8-pj5q-762f · GitHub severity CRITICAL · GitHub CVSS 9.8
  8. 2026-10-13 16:32 UTCEPSS rescoreEPSS 0.4% · 34th percentile
  9. 2026-10-13 10:45 UTCVendor advisory
  10. 2026-10-13 10:45 UTCGHSA enrichmentGHSA-2vg8-pj5q-762f · GitHub severity CRITICAL · GitHub CVSS 9.8
  11. 2026-10-12 17:06 UTCEG score recompute
  12. 2026-10-12 16:33 UTCEPSS rescoreEPSS 0.4% · 34th percentile
  13. 2026-10-12 11:21 UTCVendor advisory
  14. 2026-10-12 11:20 UTCGHSA enrichmentGHSA-2vg8-pj5q-762f · GitHub severity CRITICAL · GitHub CVSS 9.8
  15. 2026-10-11 20:38 UTCEG score recompute
  16. 2026-10-11 18:50 UTCEG score recompute
  17. 2026-10-11 15:26 UTCEG score recompute
  18. 2026-10-11 13:47 UTCEPSS rescoreEPSS 0.4% · 34th percentile
  19. 2026-10-10 19:59 UTCEPSS rescoreEPSS 0.4% · 34th percentile
  20. 2026-10-09 20:06 UTCEPSS rescoreEPSS 0.4% · 34th percentile
  21. 2026-10-08 17:09 UTCEPSS rescoreEPSS 0.4% · 34th percentile
  22. 2026-10-07 23:46 UTCEPSS rescoreEPSS 0.4% · 34th percentile
  23. 2026-10-06 15:16 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  24. 2026-10-05 17:42 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  25. 2026-10-04 23:21 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
Show 72 more
  1. 2026-10-03 14:24 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  2. 2026-10-01 19:49 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  3. 2026-10-01 05:40 UTCOSV refresh
  4. 2026-09-30 15:02 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  5. 2026-09-28 13:50 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  6. 2026-09-26 15:58 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  7. 2026-09-26 00:24 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  8. 2026-09-24 14:02 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  9. 2026-09-23 13:47 UTCEPSS rescoreEPSS 0.4% · 35th percentile
  10. 2026-09-20 20:15 UTCEPSS rescoreEPSS 0.4% · 35th percentile
  11. 2026-09-18 19:27 UTCEPSS rescoreEPSS 0.4% · 35th percentile
  12. 2026-09-17 19:29 UTCEPSS rescoreEPSS 0.4% · 35th percentile
  13. 2026-09-16 14:07 UTCEPSS rescoreEPSS 0.4% · 35th percentile
  14. 2026-09-16 05:14 UTCEPSS rescoreEPSS 0.4% · 35th percentile
  15. 2026-09-13 16:46 UTCEPSS rescoreEPSS 0.4% · 35th percentile
  16. 2026-09-12 15:00 UTCEPSS rescoreEPSS 0.4% · 35th percentile
  17. 2026-09-12 07:23 UTCOSV refresh
  18. 2026-09-11 14:52 UTCEPSS rescoreEPSS 0.4% · 35th percentile
  19. 2026-09-11 09:35 UTCEPSS rescoreEPSS 0.4% · 35th percentile
  20. 2026-09-10 09:33 UTCEPSS rescoreEPSS 0.4% · 35th percentile
  21. 2026-09-08 21:59 UTCEPSS rescoreEPSS 0.4% · 35th percentile
  22. 2026-09-07 16:00 UTCEPSS rescoreEPSS 0.4% · 35th percentile
  23. 2026-09-06 13:46 UTCEPSS rescoreEPSS 0.4% · 35th percentile
  24. 2026-09-04 05:05 UTCEPSS rescoreEPSS 0.4% · 34th percentile
  25. 2026-09-02 14:11 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  26. 2026-09-01 13:53 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  27. 2026-09-01 04:38 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  28. 2026-08-30 19:16 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  29. 2026-08-30 01:21 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  30. 2026-08-28 21:40 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  31. 2026-08-27 14:24 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  32. 2026-08-26 14:45 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  33. 2026-08-25 13:48 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  34. 2026-08-24 12:30 UTCOSV refresh
  35. 2026-08-23 00:18 UTCEPSS rescoreEPSS 0.4% · 34th percentile
  36. 2026-08-21 23:48 UTCEPSS rescoreEPSS 0.4% · 34th percentile
  37. 2026-08-20 22:54 UTCEPSS rescoreEPSS 0.4% · 34th percentile
  38. 2026-08-19 17:03 UTCEPSS rescoreEPSS 0.4% · 34th percentile
  39. 2026-08-18 13:47 UTCEPSS rescoreEPSS 0.4% · 34th percentile
  40. 2026-08-17 13:46 UTCEPSS rescoreEPSS 0.4% · 34th percentile
  41. 2026-08-16 14:55 UTCEPSS rescoreEPSS 0.4% · 34th percentile
  42. 2026-08-16 02:13 UTCEPSS rescoreEPSS 0.4% · 34th percentile
  43. 2026-08-15 01:29 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  44. 2026-08-13 21:59 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  45. 2026-08-12 13:50 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  46. 2026-08-09 13:46 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  47. 2026-08-08 16:36 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  48. 2026-08-08 08:20 UTCEG score recompute
  49. 2026-08-08 08:20 UTCVendor advisory
  50. 2026-08-08 08:20 UTCGHSA enrichmentGHSA-2vg8-pj5q-762f · GitHub severity CRITICAL · GitHub CVSS 9.8
  51. 2026-08-07 16:26 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  52. 2026-08-06 13:46 UTCEPSS rescoreEPSS 0.4% · 33rd percentile
  53. 2026-08-05 12:50 UTCEG score recompute
  54. 2026-08-05 12:50 UTCVendor advisory
  55. 2026-08-05 12:50 UTCGHSA enrichmentGHSA-2vg8-pj5q-762f · GitHub severity CRITICAL · GitHub CVSS 9.8
  56. 2026-08-04 15:09 UTCEPSS rescoreEPSS 0.4% · 29th percentile
  57. 2026-08-04 10:37 UTCEPSS rescoreEPSS 0.4% · 29th percentile
  58. 2026-08-03 10:35 UTCEPSS rescoreEPSS 0.4% · 29th percentile
  59. 2026-08-02 02:26 UTCEPSS rescoreEPSS 0.4% · 29th percentile
  60. 2026-08-01 04:15 UTCEPSS rescoreEPSS 0.4% · 29th percentile
  61. 2026-07-30 16:27 UTCEPSS rescoreEPSS 0.4% · 29th percentile
  62. 2026-07-30 06:24 UTCEG score recomputeFirst assessed: 9.8 CRITICAL
  63. 2026-07-30 06:24 UTCVendor advisory
  64. 2026-07-30 06:24 UTCGHSA enrichmentGHSA-2vg8-pj5q-762f
  65. 2026-07-30 06:18 UTCMITRE cvelistV5CVSS v3 → 9.8 · severity → CRITICAL
  66. 2026-07-30 01:29 UTCEPSS rescoreEPSS 0.2% · 6th percentile
  67. 2026-07-28 15:35 UTCEPSS rescoreEPSS 0.2% · 6th percentile
  68. 2026-07-27 06:09 UTCOSV refresh
  69. 2026-07-26 14:54 UTCEPSS rescoreEPSS 0.2% · 5th percentile
  70. 2026-07-25 14:17 UTCEPSS rescoreEPSS 0.2% · 5th percentile
  71. 2026-07-24 14:17 UTCEPSS rescoreEPSS 0.2% · 5th percentile
  72. 2026-07-23 02:55 UTCEG score recompute

Frequently asked(5)

What is CVE-2025-40320?
CVE-2025-40320 is a critical-severity vulnerability; its CVE record was published on December 8, 2025. In the Linux kernel, the following vulnerability has been resolved: smb: client: fix potential cfid UAF in smb2queryinfo_compound When smb2queryinfo_compound() retries, a previously allocated cfid may have been freed in the first attempt. Because cfid wasn't reset on replay, later cleanup could act…
When was the CVE record for CVE-2025-40320 published?
The CVE record for CVE-2025-40320 was published on December 8, 2025. That is the record's publication date; the vulnerability itself may have been made public earlier. EchelonGraph's copy of the record carries a last-modified date of October 14, 2026; the record at its source may have been updated since.
Is CVE-2025-40320 actively exploited?
CVE-2025-40320 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 0.4% probability of exploitation in the next 30 days (34th percentile of EPSS-scored CVEs).
What is the CVSS score of CVE-2025-40320?
CVE-2025-40320 has a CVSS base score of 9.8 (a secondary CVSS source that NVD displays; NVD's own analysis pending).
How do I remediate CVE-2025-40320?
A fix for CVE-2025-40320 is available: update to the fixed version the vendor names in its advisory. The vendor advisories EchelonGraph has for CVE-2025-40320 are linked in the Vendor Advisories panel on this page.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2025-40320

Explore →

Is Your Infrastructure Affected by CVE-2025-40320?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.