Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2026-31478

9.8 · CRITICAL
Published Apr 22, 2026 linux EPSS 0.50% (41th pctl)

Overview

CVE-2026-31478 is a critical-severity vulnerability affecting linux linux_kernel. It was published on April 22, 2026 and has a CVSS 3.1 base score of 9.8 (CRITICAL).

This vulnerability has a CVSS 3.1 base score of 9.8, rated CRITICAL. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

Technical Description

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

ksmbd: replace hardcoded hdr2_len with offsetof() in smb2_calc_max_out_buf_len()

After this commit (e2b76ab8b5c9 "ksmbd: add support for read compound"),

response buffer management was changed to use dynamic iov array.

In the new design, smb2_calc_max_out_buf_len() expects the second

argument (hdr2_len) to be the offset of ->Buffer field in the

response structure, not a hardcoded magic number.

Fix the remaining call sites to use the correct offsetof() value.

Remediation

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 5.15.145, < 5.15.203 Affected

Frequently Asked Questions

What is CVE-2026-31478?

CVE-2026-31478 is a critical-severity vulnerability affecting linux linux_kernel. It was published on April 22, 2026 and has a CVSS 3.1 base score of 9.8 (CRITICAL).

How severe is CVE-2026-31478?

This vulnerability has a CVSS 3.1 base score of 9.8, rated CRITICAL. It can be exploited remotely over the network. No authentication or special privileges are required for exploitation.

How do I fix or remediate CVE-2026-31478?

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2026-31478?

CyberStrike's AI-powered security agents can automatically detect CVE-2026-31478 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.