CVE-2025-22040

ksmbd: fix session use-after-free in multichannel connection

HIGH
8.8
CVSS Score
Published: April 16, 2025 at 02:11 PM UTC
Updated: August 5, 2026 at 12:44 PM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 0.7%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix session use-after-free in multichannel connection There is a race condition between session setup and ksmbd_sessions_deregister. The session can be freed before the connection is added to channel list of session. This patch check reference count of session before freeing it.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.15 ≤ v < 6.1.1345.15 ≤ v < 6.12.235.15 ≤ v < 6.13.115.15 ≤ v < 6.14.25.15 ≤ v < 6.155.15 ≤ v < 6.6.876.13 ≤ v < 6.13.116.14 ≤ v < 6.14.26.2 ≤ v < 6.6.876.7 ≤ v < 6.12.235.15626e6641f6b467447c81dd7678a69c66f7746cf
Vendor states this is fixed in 3980770cb1470054e6400fd97668665975726737 (fixed)
Vendor states this is fixed in 596407adb9af1ee75fe7c7529607783d31b66e7f (fixed)
Vendor states this is fixed in 7dfbd4c43eed91dd2548a95236908025707a8dfd (fixed)
Vendor states this is fixed in 9069939d762138e232a6f79e3e1462682ed6a17d (fixed)
Vendor states this is fixed in 94c281721d4ed2d972232414b91d98a6f5bdb16b (fixed)
Vendor states this is fixed in fa4cdb8cbca7d6cb6aa13e4d8d83d1103f6345db (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 6.1.134 (unaffected)
Vendor states this is fixed in 6.12.23 (unaffected)
Vendor states this is fixed in 6.13.11 (unaffected)
Vendor states this is fixed in 6.14.2 (unaffected)
Vendor states this is fixed in 6.15 (unaffected)
Vendor states this is fixed in 6.6.87 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3980770cb1470054e6400fd97668665975726737
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/596407adb9af1ee75fe7c7529607783d31b66e7f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7dfbd4c43eed91dd2548a95236908025707a8dfd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9069939d762138e232a6f79e3e1462682ed6a17d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/94c281721d4ed2d972232414b91d98a6f5bdb16b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fa4cdb8cbca7d6cb6aa13e4d8d83d1103f6345db
Mailing ListThird Party Advisory
Source: af854a3a-2127-422b-91ae-364da2661108
https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

8.8HIGHLinux
Vector?

Quick Info

StatusANALYZED
CWE
CWE-416

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card