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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.2
- **CVSS:** 8.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.74% (percentile 51, 2026-11-26)
- **Published:** 2026-04-22T13:54:04.779Z
- **Modified:** 2026-11-11T23:10:00.263Z

## Who should check

- Anyone running Linux \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 4642ea35c03cf3d3558c009df4757cdb7af3f82d; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< f5300690c23c5ac860499bb37dbc09cf43fd62e6; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 6fafc4c4238e538969f1375f9ecdc6587c53f1cc; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 1d1888b4a7aec518b707f6eca0bf08992c0e8da3; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< a897064a457056acb976e20e3007cdf553de340f; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< e0e5edc81b241c70355217de7e120c97c3429deb; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 9bbb19d21ded7d78645506f20d8c44895e3d0fb9
- Anyone running Linux 5.15

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

## Affected and fixed versions

- Linux: \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 4642ea35c03cf3d3558c009df4757cdb7af3f82d; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< f5300690c23c5ac860499bb37dbc09cf43fd62e6; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 6fafc4c4238e538969f1375f9ecdc6587c53f1cc; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 1d1888b4a7aec518b707f6eca0bf08992c0e8da3; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< a897064a457056acb976e20e3007cdf553de340f; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< e0e5edc81b241c70355217de7e120c97c3429deb; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 9bbb19d21ded7d78645506f20d8c44895e3d0fb9 (cvelist)
- Linux: 5.15 (cvelist)

## Mitigation

- Upgrade Linux to 9bbb19d21ded7d78645506f20d8c44895e3d0fb9 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-31476. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31476.md
Affected: Linux >= f5a544e3bab78142207e0242d22442db85ba1eff, < 4642ea35c03cf3d3558c009df4757cdb7af3f82d; >= f5a544e3bab78142207e0242d22442db85ba1eff, < f5300690c23c5ac860499bb37dbc09cf43fd62e6; >= f5a544e3bab78142207e0242d22442db85ba1eff, < 6fafc4c4238e538969f1375f9ecdc6587c53f1cc; >= f5a544e3bab78142207e024…
Fixed in: Linux 4642ea35c03cf3d3558c009df4757cdb7af3f82d, Linux 6fafc4c4238e538969f1375f9ecdc6587c53f1cc, Linux 1d1888b4a7aec518b707f6eca0bf08992c0e8da3, Linux 9bbb19d21ded7d78645506f20d8c44895e3d0fb9

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-31476 being exploited?

There is no confirmed exploitation: CVE-2026-31476 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.74% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-31476?

High: CVSS 8.2 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-31476?

Linux \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 4642ea35c03cf3d3558c009df4757cdb7af3f82d; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< f5300690c23c5ac860499bb37dbc09cf43fd62e6; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 6fafc4c4238e538969f1375f9ecdc6587c53f1cc; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 1d1888b4a7aec518b707f6eca0bf08992c0e8da3; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< a897064a457056acb976e20e3007cdf553de340f; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< e0e5edc81b241c70355217de7e120c97c3429deb; \>= f5a544e3bab78142207e0242d22442db85ba1eff, \< 9bbb19d21ded7d78645506f20d8c44895e3d0fb9; Linux 5.15.

### Is there a fix for CVE-2026-31476?

Yes. Fixed in Linux 4642ea35c03cf3d3558c009df4757cdb7af3f82d, Linux 6fafc4c4238e538969f1375f9ecdc6587c53f1cc, Linux 1d1888b4a7aec518b707f6eca0bf08992c0e8da3, Linux 9bbb19d21ded7d78645506f20d8c44895e3d0fb9. Upgrade Linux to 9bbb19d21ded7d78645506f20d8c44895e3d0fb9 or later.

### How do I check if I'm affected by CVE-2026-31476?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://git.kernel.org/stable/c/4642ea35c03cf3d3558c009df4757cdb7af3f82d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-31476>

HTML: <https://flawdb.com/CVE-2026-31476> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-31476>
