CVE-2026-31476

ksmbd: do not expire session on binding failure

8.2 high EPSS 0.74%

Published 22 Apr 2026 Updated 5 Aug 2026 CNA: Linux

Check your servers for CVE-2026-31476

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-31476 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.

Check my servers

Description

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

ksmbd: do not expire session on binding failure

When a multichannel session binding request fails (e.g. wrong password), the error path unconditionally sets sess->state = SMB2_SESSION_EXPIRED. However, during binding, sess points to the target session looked up via ksmbd_session_lookup_slowpath() -- which belongs to another connection's user. This allows a remote attacker to invalidate any active session by simply sending a binding request with a wrong password (DoS).

Fix this by skipping session expiration when the failed request was a binding attempt, since the session does not belong to the current connection. The reference taken by ksmbd_session_lookup_slowpath() is still correctly released via ksmbd_user_session_put().

Severity (CVSS)

8.2 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/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 none, integrity low, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.74%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 50.7% of all scored CVEs. Scores of 30 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from f5a544e3bab78142207e0242d22442db85ba1eff, before 4642ea35c03cf3d3558c009df4757cdb7af3f82d
affected from f5a544e3bab78142207e0242d22442db85ba1eff, before f5300690c23c5ac860499bb37dbc09cf43fd62e6
affected from f5a544e3bab78142207e0242d22442db85ba1eff, before 6fafc4c4238e538969f1375f9ecdc6587c53f1cc
affected from f5a544e3bab78142207e0242d22442db85ba1eff, before 1d1888b4a7aec518b707f6eca0bf08992c0e8da3
affected from f5a544e3bab78142207e0242d22442db85ba1eff, before a897064a457056acb976e20e3007cdf553de340f
affected from f5a544e3bab78142207e0242d22442db85ba1eff, before e0e5edc81b241c70355217de7e120c97c3429deb
affected from f5a544e3bab78142207e0242d22442db85ba1eff, before 9bbb19d21ded7d78645506f20d8c44895e3d0fb9
Other versions: unaffected
Linux
affected 5.15
unaffected before 5.15
unaffected from 5.15.209 up to and including 5.15.*
unaffected from 6.1.168 up to and including 6.1.*
unaffected from 6.6.131 up to and including 6.6.*
unaffected from 6.12.80 up to and including 6.12.*
unaffected from 6.18.21 up to and including 6.18.*
unaffected from 6.19.11 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-31476 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31476

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-31476
trivy image --scanners vuln IMAGE | grep CVE-2026-31476

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

Source: the record CVE-2026-31476 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.