Vendors › Linux
LINUX-CVE-2026-31478
Critical (9.8) EPSS 0.5% Linux · fs
Linux kernel: ksmbd: replace hardcoded hdr2_len with offsetof() in smb2_calc_max_out_buf_len()
A vulnerability in the Linux kernel fs subsystem (fs/smb/server/smb2pdu.c), assigned CVE-2026-31478. The issue was introduced in kernel 5.15.145 and is fixed in 5.15.203, 6.1.168, 6.6.131, 6.12.80, 6.18.21, 6.19.11, 7.0. Updating to a fixed stable release resolves it.
| Published | 2026-04-22 |
| Updated | 2026-08-05 |
| Affected | Linux kernel 5.15.145 and later, before the fix (fixed in 5.15.203, 6.1.168, 6.6.131, 6.12.80, 6.18.21, 6.19.11, 7.0) |
| Fix | Update to kernel 5.15.203, 6.1.168, 6.6.131, 6.12.80, 6.18.21, 6.19.11, 7.0 or later |
| Vendor advisory | https://cve.org/CVERecord/?id=CVE-2026-31478 |
CVEs (1)
| CVE | CWE | Type | Impact | Links |
|---|---|---|---|---|
| CVE-2026-31478 | CWE-131 | Overflow | Other | NVD · CVE.org · EUVD |
CWE, type and impact come from the NVD enrichment pass; unfilled rows are pending enrichment.
Same CVE in other advisories
- CVE-2026-31478 — Microsoft · Critical (9.8) · 2026-04-14
ksmbd: replace hardcoded hdr2_len with offsetof() in smb2_calc_max_out_buf_len()
Open in the CVEMesh app Create a free account
Track this advisory against your own stack — add your assets and CVEMesh shows which advisories actually apply to the versions you run.
CVEMesh aggregates public vendor advisories as guidance; always verify against the vendor's official advisory before patching or upgrading.