CVE-2026-31718

CRITICALPre-NVD 9.89.8
EchelonGraph scoreMEDIUM confidence

Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2026-05-01. the CNA's CVSS baseline 9.8; sources differ by 0.0.

Triggered by: GitHub Security Advisory CVSS
Sources: cna:linux, epss, ghsa
9.8EG
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS PROB: 0%CVSS: 9.8Exploit: None knownExposed: 0

No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.

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

ksmbd: fix use-after-free in __ksmbd_close_fd() via durable scavenger

When a durable file handle survives session disconnect (TCP close without SMB2_LOGOFF), session_fd_check() sets fp->conn = NULL to preserve the handle for later reconnection. However, it did not clean up the byte-range locks on fp->lock_list.

Later, when the durable scavenger thread times out and calls __ksmbd_close_fd(NULL, fp), the lock cleanup loop did:

spin_lock(&fp->conn->llist_lock);

This caused a slab use-after-free because fp->conn was NULL and the original connection object had already been freed by ksmbd_tcp_disconnect().

The root cause is asymmetric cleanup: lock entries (smb_lock->clist) were left dangling on the freed conn->lock_list while fp->conn was nulled out.

To fix this issue properly, we need to handle the lifetime of smb_lock->clist across three paths:

  • Safely skip clist deletion when list is empty and fp->conn is NULL.
  • Remove the lock from the old connection's lock_list in
session_fd_check()
  • Re-add the lock to the new connection's lock_list in
ksmbd_reopen_durable_fd().

CVSS v3
9.8
EG Score
9.8(medium)
EG Risk
49(Track)
EG Risk 49/100SSVC: Track

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
Severity98% × 45%
Exploitation0% × 40%
Automatability30% × 15%
Action: Routine — remediate on your standard cadence.
EPSS PROB
0%
EPSS %ILE
29%
KEV
Not listed

Published

May 1, 2026

Last Modified

August 5, 2026

Advisory Details (5)

Auto-updated Sep 2, 2026
No patch confirmed yet.
generic

ksmbd: fix use-after-free in __ksmbd_close_fd() via durable scavenger - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/235e32320a470fcd3998fb3774f2290a0eb302a1
generic

ksmbd: fix use-after-free in __ksmbd_close_fd() via durable scavenger - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/b34fc42cfe922e551f7a27d3ac3bb016e41d7dd9
generic

ksmbd: fix use-after-free in __ksmbd_close_fd() via durable scavenger - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/3d6682726c2d3a46d31dae88b8166786b09b03ad
generic

ksmbd: fix use-after-free in __ksmbd_close_fd() via durable scavenger - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/e33c65f011980b4ad4abfd93585ec2079856368f
generic

ksmbd: fix use-after-free in __ksmbd_close_fd() via durable scavenger - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/0000a7780e0e446a28a273572f6ea8f7f582f694

Vendor Advisories for CVE-2026-31718(2)

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

Patch Availability(1)

Vendor / EcosystemFixed in / PatchReleasedSource
linuxKernel @ 6.6.140osv

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 rangeFixed inDependents
linux6.12.38-1 ... 6.12.85-1~bpo12+1 (17 versions)6.12.85-1
Debian:14(1)
PackageVulnerable rangeFixed inDependents
linux6.12.100-1 ... 7.0.1-1~exp1 (129 versions)7.0.3-1

Weakness Classification(1)

MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.

All Vendor Advisories

(13)

Data Freshness Timeline

(refreshed 8× in last 7d / 126× in last 30d)

Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. 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. Most recent first.

Showing the most recent 100 of 366 total refreshes for this CVE.

  1. 2026-09-04 05:06 UTCEPSS rescore
  2. 2026-09-04 00:59 UTCOSV refresh
  3. 2026-09-02 14:11 UTCEPSS rescore
  4. 2026-09-01 13:53 UTCEPSS rescore
  5. 2026-09-01 04:39 UTCEPSS rescore
  6. 2026-09-01 04:39 UTCEPSS rescore
  7. 2026-08-30 19:17 UTCEPSS rescore
  8. 2026-08-30 01:22 UTCEPSS rescore
  9. 2026-08-28 21:41 UTCEPSS rescore
  10. 2026-08-27 14:25 UTCEPSS rescore
  11. 2026-08-26 14:46 UTCEPSS rescore
  12. 2026-08-25 13:49 UTCEPSS rescore
  13. 2026-08-24 14:17 UTCEPSS rescore
  14. 2026-08-23 00:19 UTCEPSS rescore
  15. 2026-08-21 23:49 UTCEPSS rescore
  16. 2026-08-20 22:55 UTCEPSS rescore
  17. 2026-08-20 22:55 UTCEPSS rescore
  18. 2026-08-19 17:03 UTCEPSS rescore
  19. 2026-08-18 13:48 UTCEPSS rescore
  20. 2026-08-17 13:47 UTCEPSS rescore
  21. 2026-08-17 13:44 UTCEG score recompute
  22. 2026-08-17 13:44 UTCVendor advisory
  23. 2026-08-17 13:44 UTCGHSA enrichment
  24. 2026-08-16 14:56 UTCEPSS rescore
  25. 2026-08-16 09:15 UTCVendor advisory
Show 75 more
  1. 2026-08-16 09:15 UTCGHSA enrichment
  2. 2026-08-16 05:18 UTCEG score recompute
  3. 2026-08-16 05:18 UTCVendor advisory
  4. 2026-08-16 05:18 UTCGHSA enrichment
  5. 2026-08-16 02:14 UTCEPSS rescore
  6. 2026-08-15 01:56 UTCEG score recompute
  7. 2026-08-15 01:56 UTCVendor advisory
  8. 2026-08-15 01:56 UTCGHSA enrichment
  9. 2026-08-15 01:30 UTCEPSS rescore
  10. 2026-08-14 22:18 UTCVendor advisory
  11. 2026-08-14 22:18 UTCGHSA enrichment
  12. 2026-08-14 18:21 UTCVendor advisory
  13. 2026-08-14 18:21 UTCGHSA enrichment
  14. 2026-08-14 14:42 UTCVendor advisory
  15. 2026-08-14 14:42 UTCGHSA enrichment
  16. 2026-08-14 11:04 UTCVendor advisory
  17. 2026-08-14 11:04 UTCGHSA enrichment
  18. 2026-08-14 07:25 UTCVendor advisory
  19. 2026-08-14 07:25 UTCGHSA enrichment
  20. 2026-08-14 03:47 UTCEG score recompute
  21. 2026-08-14 03:47 UTCVendor advisory
  22. 2026-08-14 03:47 UTCGHSA enrichment
  23. 2026-08-13 22:00 UTCEPSS rescore
  24. 2026-08-13 08:21 UTCVendor advisory
  25. 2026-08-13 08:21 UTCGHSA enrichment
  26. 2026-08-13 04:37 UTCVendor advisory
  27. 2026-08-13 04:37 UTCGHSA enrichment
  28. 2026-08-13 00:58 UTCVendor advisory
  29. 2026-08-13 00:58 UTCGHSA enrichment
  30. 2026-08-12 21:20 UTCVendor advisory
  31. 2026-08-12 21:20 UTCGHSA enrichment
  32. 2026-08-12 17:25 UTCEG score recompute
  33. 2026-08-12 17:25 UTCVendor advisory
  34. 2026-08-12 17:25 UTCGHSA enrichment
  35. 2026-08-12 13:50 UTCEPSS rescore
  36. 2026-08-11 23:47 UTCVendor advisory
  37. 2026-08-11 23:47 UTCGHSA enrichment
  38. 2026-08-11 20:09 UTCVendor advisory
  39. 2026-08-11 20:09 UTCGHSA enrichment
  40. 2026-08-11 16:22 UTCEG score recompute
  41. 2026-08-11 16:22 UTCVendor advisory
  42. 2026-08-11 16:22 UTCGHSA enrichment
  43. 2026-08-11 09:06 UTCVendor advisory
  44. 2026-08-11 09:06 UTCGHSA enrichment
  45. 2026-08-11 05:28 UTCVendor advisory
  46. 2026-08-11 05:27 UTCGHSA enrichment
  47. 2026-08-11 01:49 UTCEG score recompute
  48. 2026-08-11 01:49 UTCVendor advisory
  49. 2026-08-11 01:49 UTCGHSA enrichment
  50. 2026-08-11 00:00 UTCEPSS rescore
  51. 2026-08-10 12:09 UTCVendor advisory
  52. 2026-08-10 12:09 UTCGHSA enrichment
  53. 2026-08-10 08:23 UTCVendor advisory
  54. 2026-08-10 08:23 UTCGHSA enrichment
  55. 2026-08-10 04:44 UTCVendor advisory
  56. 2026-08-10 04:44 UTCGHSA enrichment
  57. 2026-08-10 01:06 UTCVendor advisory
  58. 2026-08-10 01:06 UTCGHSA enrichment
  59. 2026-08-09 21:27 UTCVendor advisory
  60. 2026-08-09 21:27 UTCGHSA enrichment
  61. 2026-08-09 17:48 UTCVendor advisory
  62. 2026-08-09 17:48 UTCGHSA enrichment
  63. 2026-08-09 14:10 UTCEG score recompute
  64. 2026-08-09 14:10 UTCVendor advisory
  65. 2026-08-09 14:10 UTCGHSA enrichment
  66. 2026-08-09 13:46 UTCEPSS rescore
  67. 2026-08-09 10:31 UTCVendor advisory
  68. 2026-08-09 10:31 UTCGHSA enrichment
  69. 2026-08-09 06:35 UTCVendor advisory
  70. 2026-08-09 06:35 UTCGHSA enrichment
  71. 2026-08-09 02:56 UTCEG score recompute
  72. 2026-08-09 02:56 UTCVendor advisory
  73. 2026-08-09 02:56 UTCGHSA enrichment
  74. 2026-08-08 16:37 UTCEPSS rescore
  75. 2026-08-08 10:10 UTCVendor advisory

Frequently asked(5)

What is CVE-2026-31718?
CVE-2026-31718 is a critical vulnerability published on May 1, 2026. In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix use-after-free in ksmbdclosefd() via durable scavenger When a durable file handle survives session disconnect (TCP close without SMB2LOGOFF), sessionfd_check() sets fp->conn = NULL to preserve the handle for later…
When was CVE-2026-31718 disclosed?
CVE-2026-31718 was first published in the National Vulnerability Database on May 1, 2026, with the most recent update on August 5, 2026. EchelonGraph re-ingests CVE updates from NVD on a 2-hour cycle, so this page reflects the latest published state.
Is CVE-2026-31718 actively exploited?
CVE-2026-31718 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 0% probability of exploitation in the next 30 days, which ranks it in the top 71.4% of all scored CVEs.
What is the CVSS score of CVE-2026-31718?
CVE-2026-31718 has a CVSS v4.0 base score of 9.8 (CNA self-assessment; NVD's own analysis pending).
How do I remediate CVE-2026-31718?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-31718, EchelonGraph cross-links them in the Vendor Advisories panel below — those typically contain the canonical remediation steps, fixed version numbers, and any vendor-specific mitigations.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2026-31718

Explore →

Is Your Infrastructure Affected by CVE-2026-31718?

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