CVE-2025-22041

ksmbd: fix use-after-free in ksmbd_sessions_deregister()

HIGH
8.8
CVSS Score
Published: April 16, 2025 at 02:11 PM UTC
Updated: August 5, 2026 at 12:44 PM UTC
1 product affected across 1 vendorLinux Kernel

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 use-after-free in ksmbd_sessions_deregister() In multichannel mode, UAF issue can occur in session_deregister when the second channel sets up a session through the connection of the first channel. session that is freed through the global session table can be accessed again through ->sessions of connection.

Affected

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

v < 6.1.1345.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.135.15626e6641f6b467447c81dd7678a69c66f7746cf
Vendor states this is fixed in 15a9605f8d69dc85005b1a00c31a050b8625e1aa (fixed)
Vendor states this is fixed in 33cc29e221df7a3085ae413e8c26c4e81a151153 (fixed)
Vendor states this is fixed in 8ed0e9d2f410f63525afb8351181eea36c80bcf1 (fixed)
Vendor states this is fixed in a8a8ae303a8395cbac270b5b404d85df6ec788f8 (fixed)
Vendor states this is fixed in ca042cc0e4f9e0d2c8f86dd67e4b22f30a516a9b (fixed)
Vendor states this is fixed in f0eb3f575138b816da74697bd506682574742fcd (fixed)
Vendor states this is fixed in 5.15 (unaffected)
Vendor states this is fixed in 6.1.134 (unaffected)
Affected range stops below 6.12.13, so it looks safe — our inference, not a vendor statement
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/15a9605f8d69dc85005b1a00c31a050b8625e1aa
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/33cc29e221df7a3085ae413e8c26c4e81a151153
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8ed0e9d2f410f63525afb8351181eea36c80bcf1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a8a8ae303a8395cbac270b5b404d85df6ec788f8
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ca042cc0e4f9e0d2c8f86dd67e4b22f30a516a9b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f0eb3f575138b816da74697bd506682574742fcd
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

StatusMODIFIED
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