CVE-2025-22040 Details
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.
A use-after-free vulnerability has been identified in the Linux kernel's ksmbd component, specifically in multichannel connections. This issue arises from a race condition between session setup and the deregistration of sessions, allowing a session to be freed before its connection is added to the session's channel list. The vulnerability affects several versions of the Linux kernel.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 21, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/3980770cb1470054e6400fd97668665975726737 | kernel.org | Patch |
| https://git.kernel.org/stable/c/596407adb9af1ee75fe7c7529607783d31b66e7f | kernel.org | Patch |
| https://git.kernel.org/stable/c/7dfbd4c43eed91dd2548a95236908025707a8dfd | kernel.org | Patch |
| https://git.kernel.org/stable/c/9069939d762138e232a6f79e3e1462682ed6a17d | kernel.org | Patch |
| https://git.kernel.org/stable/c/94c281721d4ed2d972232414b91d98a6f5bdb16b | kernel.org | Patch |
| https://git.kernel.org/stable/c/fa4cdb8cbca7d6cb6aa13e4d8d83d1103f6345db | kernel.org | Patch |
| https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html | CVE | Mailing ListThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.15, < 6.1.134 >= 6.2, < 6.6.87 >= 6.7, < 6.12.23 >= 6.13, < 6.13.11 >= 6.14, < 6.14.2 |
CPE
Remediation
| |
| debian debian linux | 11.0 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 6, 2026 | Modified Analysis | [email protected] |
| Apr 2, 2026 | CVE Modified | kernel.org |
| Nov 3, 2025 | CVE Modified | CVE |
| Apr 25, 2025 | Initial Analysis | [email protected] |
| Apr 21, 2025 | CVE Modified | CISA-ADP |
| Apr 16, 2025 | New CVE Received | kernel.org |