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.8
EchelonGraph verdictPlan a fixSerious severity, but no confirmed exploitation yet.
  • High severity, but no confirmed exploitation yet
CISA-KEV: Not listedEPSS: 0%CVSS: 9.8Exploit: NoneExposed: 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)
EPSS
27.8%
KEV
Not listed

Published

May 1, 2026

Last Modified

June 14, 2026

Advisory Details (5)

Auto-updated Jun 20, 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.

Weakness Classification(1)

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

Data Freshness Timeline

(refreshed 10× in last 7d / 42× 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 263 total refreshes for this CVE.

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

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 June 14, 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 27.8% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
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

Explore the affected products and dependency analysis for 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.