CVE-2026-31476

ksmbd: do not expire session on binding failure

State
Published
Severity
8.2 High
Published
Apr 22, 2026
Updated
Aug 5, 2026
Reserved
Mar 9, 2026

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.18.2 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • f5a544e3bab78142207e0242d22442db85ba1eff to before 4642ea35c03cf3d3558c009df4757cdb7af3f82dAffected
  • f5a544e3bab78142207e0242d22442db85ba1eff to before f5300690c23c5ac860499bb37dbc09cf43fd62e6Affected
  • f5a544e3bab78142207e0242d22442db85ba1eff to before 6fafc4c4238e538969f1375f9ecdc6587c53f1ccAffected
  • f5a544e3bab78142207e0242d22442db85ba1eff to before 1d1888b4a7aec518b707f6eca0bf08992c0e8da3Affected
  • f5a544e3bab78142207e0242d22442db85ba1eff to before a897064a457056acb976e20e3007cdf553de340fAffected
  • f5a544e3bab78142207e0242d22442db85ba1eff to before e0e5edc81b241c70355217de7e120c97c3429debAffected
  • f5a544e3bab78142207e0242d22442db85ba1eff to before 9bbb19d21ded7d78645506f20d8c44895e3d0fb9Affected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 5.15.209 through 5.15.*Not affected
  • 6.1.168 through 6.1.*Not affected
  • 6.6.131 through 6.6.*Not affected
  • 6.12.80 through 6.12.*Not affected
  • 6.18.21 through 6.18.*Not affected
  • 6.19.11 through 6.19.*Not affected
  • 7.0 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.