CVE-2026-43185
ksmbd: fix signededness bug in smb_direct_prepare_negotiation()
Check your servers for CVE-2026-43185
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-43185 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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)
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.89%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 60.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before 1c268fd2f59dc9ccb2c2a7d1f439b232dbe1c06c affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before 56eab82fa6fb5ca024b0514e249d40d9b23ee5a7 affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before a110dbe928561d440e9e117d17331139a0bedace affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before ceae058eb707ddd0d68f0872f9d9f23b7c30c37b affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before 55abc475d096da4a5356b6efb0cfdc6156bc1550 affected from 0626e6641f6b467447c81dd7678a69c66f7746cf, before 6b4f875aac344cdd52a1f34cc70ed2f874a65757
Other versions: unaffected
|
| Linux |
affected 5.15 unaffected before 5.15 unaffected from 6.1.191 up to and including 6.1.* unaffected from 6.6.160 up to and including 6.6.* unaffected from 6.12.114 up to and including 6.12.* unaffected from 6.18.16 up to and including 6.18.* unaffected from 6.19.6 up to and including 6.19.* unaffected 7.0 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-43185 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-43185
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-43185
trivy image --scanners vuln IMAGE | grep CVE-2026-43185
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/1c268fd2f59dc9ccb2c2a7d1f439b232dbe1c06c git.kernel.org
- https://git.kernel.org/stable/c/56eab82fa6fb5ca024b0514e249d40d9b23ee5a7 git.kernel.org
- https://git.kernel.org/stable/c/a110dbe928561d440e9e117d17331139a0bedace git.kernel.org
- https://git.kernel.org/stable/c/ceae058eb707ddd0d68f0872f9d9f23b7c30c37b git.kernel.org
- https://git.kernel.org/stable/c/55abc475d096da4a5356b6efb0cfdc6156bc1550 git.kernel.org
- https://git.kernel.org/stable/c/6b4f875aac344cdd52a1f34cc70ed2f874a65757 git.kernel.org
Source: the record CVE-2026-43185 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse