8.8high
ksmbd: fix session use-after-free in multichannel connection
- Severity
- 8.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.72% (higher than 55% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 0626e6641f6b467447c81dd7678a69c66f7746cf before 596407adb9af1ee75fe7c7529607783d31b66e7f, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 3980770cb1470054e6400fd97668665975726737, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 9069939d762138e232a6f79e3e1462682ed6a17d, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 94c281721d4ed2d972232414b91d98a6f5bdb16b, from 0626e6641f6b467447c81dd7678a69c66f7746cf before 7dfbd4c43eed91dd2548a95236908025707a8dfd, from 0626e6641f6b467447c81dd7678a69c66f7746cf before fa4cdb8cbca7d6cb6aa13e4d8d83d1103f6345db, 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_kernel | from 5.15 before 6.1.134, from 6.2 before 6.6.87, from 6.7 before 6.12.23, from 6.13 before 6.13.11, from 6.14 before 6.14.2 | NVD |
| debian debian_linux | 11.0 | NVD |
All scores
| Linux | 8.8high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CISA-ADP | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
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 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.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: ksmbd: corregir sesión use-after-free en conexión multicanal. Existe una condición de ejecución entre la configuración de la sesión y ksmbd_sessions_deregister. La sesión puede liberarse antes de que la conexión se añada a la lista de canales de la sesión. Este parche comprueba el número de referencias de la sesión antes de liberarla.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-22040 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2025-22040 changed 2026-06-17 | Public domain |