CVE-2026-43185: ksmbd: fix signededness bug in smb_direct_prepare_negotiation()
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix signededness bug in smb_direct_prepare_negotiation()
smb_direct_prepare_negotiation() casts an unsigned __u32 value
from sp->max_recv_size and req->preferred_send_size to a signed
int before computing min_t(int, ...). A maliciously provided
preferred_send_size of 0x80000000 will return as smaller than
max_recv_size, and then be used to set the maximum allowed
alowed receive size for the next message.
By sending a second message with a large value (>1420 bytes)
the attacker can then achieve a heap buffer overflow.
This fix replaces min_t(int, ...) with min_t(u32)
Security readout for executives and security teams
Plain-English summary
A flaw in Linux’s ksmbd file-sharing server allows an unauthenticated remote attacker to corrupt kernel heap memory during SMB Direct negotiation. Successful exploitation could severely affect data confidentiality, integrity, and system availability. Actual exposure depends on ksmbd use, kernel patch status, and network reachability.
Executive priority
Treat remediation as urgent for internet-facing or otherwise untrusted-reachable ksmbd systems. Quickly establish whether ksmbd and SMB Direct are present before assigning fleet-wide emergency priority. Patch confirmed exposure promptly because exploitation requires no credentials or user action and may compromise all three security objectives.
Technical view
An unsigned 32-bit negotiation size is incorrectly compared as a signed integer in smb_direct_prepare_negotiation(). An attacker-controlled value can therefore establish an unsafe receive-size limit, allowing a subsequent message to cause a heap buffer overflow. The fix performs the comparison using u32 values.
Likely exposure
Linux hosts are most likely exposed when they run an affected kernel, use ksmbd, and permit untrusted access to SMB Direct negotiation. The supplied version entries are insufficiently clear for reliable distribution-level mapping, so confirm each kernel’s backport status with its distributor.
Exploitation context
The supplied CVSS 3.1 score is 9.8: network-accessible, low complexity, requiring neither privileges nor user interaction. The bundle marks KEV false and provides no evidence of active exploitation or a public exploit. Treat this as a high-risk reachable vulnerability, not a confirmed exploited one.
Researcher notes
The record identifies a signedness error corrected by replacing min_t(int, ...) with min_t(u32, ...). No CWE is supplied. The affected-version entries contain duplication and unclear boundaries, so precise distribution and backport claims require vendor confirmation. The cited commits are the strongest supplied references for fix verification.
Mitigation direction
Update to a distribution kernel incorporating the referenced fix; verify backport status with the Linux distributor.
Prioritize hosts where ksmbd is enabled and SMB Direct negotiation is reachable from untrusted networks.
If updating is delayed, request vendor-approved temporary mitigations; none are specified in the supplied sources.
Validation and detection
Inventory Linux kernel builds and identify hosts using ksmbd.
Determine whether SMB Direct negotiation is reachable from untrusted network segments.
Map each distribution kernel to vendor guidance or the three referenced stable commits.
After updating, confirm the running kernel includes the unsigned u32 comparison correction.
Document systems whose affected status cannot be confidently resolved from the supplied version data.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2026-43185 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
0ADP providers
4Source links
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.