# CVE-2026-31476: ksmbd: do not expire session on binding failure

- Severity: High 8.2 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-04-22T13:54:04.779Z
- Modified: 2026-11-11T23:10:00.263Z
- Assigned by: Linux

## 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().

(As written by CVE List.)

## Affected

- Linux Linux: from f5a544e3bab78142207e0242d22442db85ba1eff before 4642ea35c03cf3d3558c009df4757cdb7af3f82d; from f5a544e3bab78142207e0242d22442db85ba1eff before f5300690c23c5ac860499bb37dbc09cf43fd62e6; from f5a544e3bab78142207e0242d22442db85ba1eff before 6fafc4c4238e538969f1375f9ecdc6587c53f1cc; from f5a544e3bab78142207e0242d22442db85ba1eff before 1d1888b4a7aec518b707f6eca0bf08992c0e8da3; from f5a544e3bab78142207e0242d22442db85ba1eff before a897064a457056acb976e20e3007cdf553de340f; from f5a544e3bab78142207e0242d22442db85ba1eff before e0e5edc81b241c70355217de7e120c97c3429deb; from f5a544e3bab78142207e0242d22442db85ba1eff before 9bbb19d21ded7d78645506f20d8c44895e3d0fb9; 5.15 (not affected: before 5.15; from 5.15.209 up to 5.15.*; from 6.1.168 up to 6.1.*; from 6.6.131 up to 6.6.*; from 6.12.80 up to 6.12.*; from 6.18.21 up to 6.18.*; from 6.19.11 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 5.15.1 before 6.1.168; from 6.2 before 6.6.131; from 6.7 before 6.12.80; from 6.13 before 6.18.21; from 6.19 before 6.19.11; 5.15; 7.0

## References

- <https://git.kernel.org/stable/c/4642ea35c03cf3d3558c009df4757cdb7af3f82d>
- <https://git.kernel.org/stable/c/f5300690c23c5ac860499bb37dbc09cf43fd62e6> (patch)
- <https://git.kernel.org/stable/c/6fafc4c4238e538969f1375f9ecdc6587c53f1cc> (patch)
- <https://git.kernel.org/stable/c/1d1888b4a7aec518b707f6eca0bf08992c0e8da3> (patch)
- <https://git.kernel.org/stable/c/a897064a457056acb976e20e3007cdf553de340f> (patch)
- <https://git.kernel.org/stable/c/e0e5edc81b241c70355217de7e120c97c3429deb> (patch)
- <https://git.kernel.org/stable/c/9bbb19d21ded7d78645506f20d8c44895e3d0fb9> (patch)

## Sources

- CVE List: [CVE-2026-31476](https://www.cve.org/CVERecord?id=CVE-2026-31476), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2026-31476](https://nvd.nist.gov/vuln/detail/CVE-2026-31476), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-31476 · Whole record: https://cve.day/CVE-2026-31476.json · Rebuilt by cve.day 2026-11-25T22:59:19.281Z
