CVE-2026-43185: ksmbd: fix signededness bug in smb_direct_prepare_negotiation()

Published May 6, 2026
·
Updated

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

ksmbd: fix signededness bug in smbdirectpreparenegotiation()

smbdirectpreparenegotiation() casts an unsigned u32 value from sp->maxrecvsize and req->preferredsendsize to a signed int before computing mint(int, ...). A maliciously provided preferredsendsize of 0x80000000 will return as smaller than maxrecvsize, 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 mint(int, ...) with mint(u32)

Affected Software

4 affected components
Linux Linux kernel (ksmbd)
Linux Linux kernel>=5.15<6.18.16
Linux Linux kernel>=6.19<6.19.6
Linux Linux kernel=7.0-rc1

Event History

May 6, 2026
CVE Published
via MITRE·11:27 AM
Data Sourced
via MITRE·11:27 AM
DescriptionSeverity
Data Sourced
via NVD·12:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-43185?

CVE-2026-43185 has been classified with a medium severity level due to its potential to cause issues in the smb_direct_prepare_negotiation function.

2

How do I fix CVE-2026-43185?

To fix CVE-2026-43185, update your Linux kernel to the latest stable version which contains the patched code.

3

What systems are affected by CVE-2026-43185?

CVE-2026-43185 affects systems running the Linux kernel with ksmbd, particularly those using SMB direct.

4

What kind of vulnerability is CVE-2026-43185?

CVE-2026-43185 is a signedness bug that impacts the proper functioning of the smb_direct_prepare_negotiation function.

5

What is the impact of CVE-2026-43185 on system security?

The impact of CVE-2026-43185 can lead to unexpected behaviors in file sharing over SMB if exploited.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203