Skip to main content

Linux Kernel (ksmbd) EUVDEUVD-2026-24835

| CVE-2026-31478 CRITICAL
Incorrect Calculation of Buffer Size (CWE-131)
2026-04-22 416baaa9-dc9f-4396-8d5f-8c081fb06d67 GHSA-hjcf-h98x-x745
9.8
CVSS 3.1 · Vendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Reach ksmbd on TCP 445
  2. Delivery
    Establish SMB session to share
  3. Exploit
    Send crafted compound read request
  4. Execution
    Trigger mis-sized out-buffer calculation
  5. Persist
    Server over-reads kernel memory
  6. Impact
    Leak kernel data to client

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Buffer size calculation
Exploitation Conditions

Requires the target to be running the in-kernel ksmbd SMB server (CONFIG_SMB_SERVER) with at least one share exported and reachable on TCP 445 - this is NOT the default state of a typical Linux install, which is the primary limiting factor. The vulnerable code path is the SMB2 read-compound handling added by commit e2b76ab8b5c9, so the target kernel must be in the 6.6-7.0-rc3 window (or an unpatched backport) that includes read-compound support. Reaching compound read processing realistically requires an established SMB session to the share, so despite the NVD vector's PR:N, authentication requirements are not confirmed as trivially bypassable from the available data and should be verified against ksmbd's session model. Limiting factors: ksmbd must be explicitly enabled and serving, the kernel must be an affected/unpatched version, and network access to port 445 is needed.

Impact

The signals conflict sharply and must be weighed carefully. NVD assigns CVSS 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H), the automated maximal score routinely applied to kernel CVEs, but the description and 'Information Disclosure' tag point to a memory over-read, not authenticated-bypass full-system RCE - the C:H/I:H/A:H triad is very likely overstated. EPSS is 0.03% (9th percentile) and there is no KEV listing and no known POC, indicating no observed or predicted mass exploitation. Critically, exploitation presupposes that ksmbd is actually enabled and a share is exported, which is NOT a default configuration on the vast majority of Linux systems, and reaching the read-compound path realistically requires an established SMB session. The honest read: this is a real bug worth patching on any host running ksmbd, but it is a low-real-risk item for the general Linux fleet, not a drop-everything emergency. The PR:N in the NVD vector should be treated skeptically - verify against ksmbd's session/authentication model, as issuing compound reads typically requires an authenticated SMB session.

Exploit ScenarioDerived

An attacker with network reach to a Linux host running ksmbd, and an SMB session to an exported share, sends crafted compound read requests that exercise the mis-sized output-buffer path. Because the maximum output length is computed from a wrong header offset, the server over-reads adjacent kernel memory into the SMB response, returning fragments of kernel heap data to the attacker (potential info leak of credentials, keys, or pointers usable to defeat KASLR). No public POC is currently known, and success depends on the low attack complexity but non-default ksmbd deployment.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

Information disclosure and memory corruption in the Linux kernel's in-kernel SMB3 server (ksmbd) arises from smb2_calc_max_out_buf_len() being called with a hardcoded header length instead of the true offsetof() of the response ->Buffer field, after the read-compound rework in commit e2b76ab8b5c9. On affected kernels running ksmbd (6.6 through 7.0-rc3, plus stable backports), a miscalculated maximum output buffer length can cause the server to over-read into the response IOV, leaking adjacent kernel memory to an SMB client or corrupting response buffers. No public exploit identified at time of analysis, and EPSS is very low (0.03%, 9th percentile), consistent with a niche, non-default kernel subsystem rather than mass exploitation.

RemediationAI

Vendor-released patch: upgrade to a fixed stable kernel - 5.15.203, 6.1.168, 6.6.131, 6.12.80, 6.18.21, 6.19.11, or mainline 7.0 (or your distribution's equivalent), applying the backported commits referenced at git.kernel.org/stable. Distribution users should track and install the corresponding updates: Ubuntu via USN-8490-1 (https://ubuntu.com/security/notices/USN-8490-1) and the Red Hat/SUSE errata for their streams. Where immediate patching is not possible, the most effective compensating control is to stop exposing ksmbd: unload or disable the ksmbd kernel module and stop ksmbd.service if the host is not intentionally acting as an SMB server (side effect: SMB file sharing via ksmbd stops - migrate to userspace Samba if sharing is required), or firewall TCP 445 to restrict SMB access to trusted management networks only (side effect: blocks all SMB clients, not just malicious ones). If ksmbd must remain online, limit share access to authenticated, trusted principals and monitor for anomalous compound-read traffic. Do not rely on generic hardening alone - removing the ksmbd attack surface is the concrete mitigation here.

Affected VersionsENISA

Linux patch: 7.0
Linux e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d <0e55f63dd08f09651d39e1b709a91705a8a0ddcb
Linux e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d <4cb537ae4f37d7d0f617815ed4bed7173fb50861
Linux patch: 6.12.80
Linux e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d <c3a89e3ec1ccf64fa6a34e391e1581ebbcba8683
Linux 9f297df20d93411c0b4ddad7f88ba04a7cd36e77 <9a7166f0ef8cbb7bb48dd05e2471d995566003f5
Linux patch: 6.1.168
Linux patch: 6.6.131
Linux f2283680a80571ca82d710bc6ecd8f8beac67d63 <70b4c414889492c522b6e4331562360f49be2361
Linux e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d <80824c7e527b70cf9039534e60aff592e8f209d1
Linux 6.6
Linux patch: 0
Linux patch: 5.15.203
Linux e2b76ab8b5c9327ab2dae6da05d0752eb2f4771d <6aef1765d6807e0f027cd87f6ac973eb0879a46d
Linux patch: 6.18.21
Linux patch: 6.19.11

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

ksmbd is the Linux kernel's native SMB/CIFS file server, an alternative to userspace Samba that handles SMB2/SMB3 protocol processing directly in kernel space. Commit e2b76ab8b5c9 ('ksmbd: add support for read compound') switched response buffer management to a dynamic iov array design in which smb2_calc_max_out_buf_len() expects its second argument (hdr2_len) to be the byte offset of the ->Buffer field within the specific SMB2 response structure. Several remaining call sites still passed a hardcoded magic number instead of the correct offsetof() value, so the computed maximum output length no longer matches the real header layout. Because this governs how much data is written into or read from the response buffer during compound read handling, the mismatch is a length-miscalculation bug of the CWE-125 (out-of-bounds read) / CWE-131 (incorrect buffer size calculation) family, even though NVD lists CWE as N/A. The Information Disclosure tag reflects that the practical consequence is leaking kernel memory back to the requesting SMB client.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.1 HIGH

Network SMB path with low complexity, but reaching compound reads needs an authenticated session (PR:L); impact is primarily kernel memory disclosure (C:H) with possible crash (A:L), not integrity.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:L
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE CRITICAL

Primary rating from Vendor (416baaa9-dc9f-4396-8d5f-8c081fb06d67).

CVSS VectorVendor: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Patch released
Apr 27, 2026 - 23:23 nvd
Patch available
CVSS changed
Apr 27, 2026 - 15:22 NVD
9.8 (CRITICAL)
Patch available
Apr 22, 2026 - 16:33 EUVD
CVE Published
Apr 22, 2026 - 14:16 nvd
CRITICAL 9.8

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

Linux kernel versions 6.6-7.0-rc3 running ksmbd (the in-kernel SMB3 server) contain a critical vulnerability (CVSS 9.8) that enables memory disclosure to network-connected SMB clients. Organizations using ksmbd for file sharing could expose sensitive kernel data; however, ksmbd is a non-default kernel component deployed only in specific infrastructure configurations. The critical technical severity and information-disclosure potential warrant prompt patching, though real-world exploitation probability remains very low.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Prevalence
Medium
Linux kernel is ubiquitous, but ksmbd is a non-default, optionally-enabled subsystem
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

49
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +49
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Critical
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy