CVE-2026-31705

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 out-of-bounds write in smb2_get_ea() EA alignment

smb2_get_ea() applies 4-byte alignment padding via memset() after writing each EA entry. The bounds check on buf_free_len is performed before the value memcpy, but the alignment memset fires unconditionally afterward with no check on remaining space.

When the EA value exactly fills the remaining buffer (buf_free_len == 0 after value subtraction), the alignment memset writes 1-3 NUL bytes past the buf_free_len boundary. In compound requests where the response buffer is shared across commands, the first command (e.g., READ) can consume most of the buffer, leaving a tight remainder for the QUERY_INFO EA response. The alignment memset then overwrites past the physical kvmalloc allocation into adjacent kernel heap memory.

Add a bounds check before the alignment memset to ensure buf_free_len can accommodate the padding bytes.

This is the same bug pattern fixed by commit beef2634f81f ("ksmbd: fix potencial OOB in get_file_all_info() for compound requests") and commit fda9522ed6af ("ksmbd: fix OOB write in QUERY_INFO for compound requests"), both of which added bounds checks before unconditional writes in QUERY_INFO response handlers.

CVSS v3
9.8
EG Score
9.8(medium)
EPSS
31.1%
KEV
Not listed

Published

May 1, 2026

Last Modified

June 14, 2026

Advisory Details (6)

Auto-updated Jun 20, 2026
No patch confirmed yet.
generic

ksmbd: fix out-of-bounds write in smb2_get_ea() EA alignment - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/30010c952077a1c89ecdd71fc4d574c75a8f5617
generic

ksmbd: fix out-of-bounds write in smb2_get_ea() EA alignment - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/922d48fe8c19f388ffa2f709f33acaae4e408de2
generic

ksmbd: fix out-of-bounds write in smb2_get_ea() EA alignment - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/790304c02bf9bd7b8171feda4294d6e62d32ae8f
generic

ksmbd: fix out-of-bounds write in smb2_get_ea() EA alignment - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/98f3de6ef4efbd899348d333f0902dc4ff14380c
generic

ksmbd: fix out-of-bounds write in smb2_get_ea() EA alignment - kernel/git/stable/linux.git - Linux kernel stable tree

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

ksmbd: fix out-of-bounds write in smb2_get_ea() EA alignment - kernel/git/stable/linux.git - Linux kernel stable tree

https://git.kernel.org/stable/c/ddbbc8b2a09dd2cfed90871313e3691ae1db08a2

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

Frequently asked(5)

What is CVE-2026-31705?
CVE-2026-31705 is a critical vulnerability published on May 1, 2026. In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix out-of-bounds write in smb2getea() EA alignment smb2getea() applies 4-byte alignment padding via memset() after writing each EA entry. The bounds check on buffreelen is performed before the value memcpy, but the…
When was CVE-2026-31705 disclosed?
CVE-2026-31705 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-31705 actively exploited?
CVE-2026-31705 is not currently on CISA's Known Exploited Vulnerabilities catalog. FIRST EPSS estimates a 31.1% percentile likelihood of exploitation in the next 30 days — higher percentiles indicate greater predicted risk.
What is the CVSS score of CVE-2026-31705?
CVE-2026-31705 has a CVSS v4.0 base score of 9.8 (CNA self-assessment; NVD's own analysis pending).
How do I remediate CVE-2026-31705?
Patch to the fixed version published by the affected vendor. Where vendor advisories exist for CVE-2026-31705, 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-31705

Explore →

Is Your Infrastructure Affected by CVE-2026-31705?

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