CVE-2025-22041
JSON

8.8high

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

Severity
8.8high CVSS:3.1 by Linux
Exploit likelihood
0.71% (higher than 54% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom 0626e6641f6b467447c81dd7678a69c66f7746cf before f0eb3f575138b816da74697bd506682574742fcd, from 0626e6641f6b467447c81dd7678a69c66f7746cf before a8a8ae303a8395cbac270b5b404d85df6ec788f8, from 0626e6641f6b467447c81dd7678a69c66f7746cf before ca042cc0e4f9e0d2c8f86dd67e4b22f30a516a9b, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 8ed0e9d2f410f63525afb8351181eea36c80bcf1, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 33cc29e221df7a3085ae413e8c26c4e81a151153, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 15a9605f8d69dc85005b1a00c31a050b8625e1aa, 5.15
Not affected: before 5.15, from 6.1.134 up to 6.1.*, from 6.6.87 up to 6.6.*, from 6.12.23 up to 6.12.*, from 6.13.11 up to 6.13.*, from 6.14.2 up to 6.14.*
CVE List
linux linux_kernelbefore 6.1.134, from 6.2 before 6.6.87, from 6.7 before 6.12.13, from 6.13 before 6.13.11, from 6.14 before 6.14.2NVD

All scores

Linux8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CISA-ADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ksmbd: corrección de use-after-free en ksmbd_sessions_deregister() En el modo multicanal, el problema de UAF puede ocurrir en session_deregister cuando el segundo canal configura una sesión a través de la conexión del primer canal. A la sesión que se libera a través de la tabla de sesiones global se puede acceder nuevamente a través de ->sessions de la conexión.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-22041 changed 2026-08-05CVE Terms of Use
NVDCVE-2025-22041 changed 2026-06-17Public domain