CVE-2025-22041: Linux kernel · ksmbd: fix use-after-free in ksmbd_sessions_deregister()
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 8.8 High · fixed in 6.8.0-1041.43~22.04.1 : patch Linux kernel soon.
Data as of 26 Oct 2026, 10:12 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 52% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 6.8.0-1041.43~22.04.1, 6.8.0-1041.47~22.04.1, 6.8.0-1042.45~22.04.1 +33
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 16 Apr 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 25.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde@6.17.0-1017.17?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinuxpkg:deb/ubuntu/linux@6.8.0-86.87?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-awspkg:deb/ubuntu/linux-aws@6.8.0-1041.43?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azurepkg:deb/ubuntu/linux-azure@6.8.0-1041.47?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azure-6.11pkg:deb/ubuntu/linux-azure-6.11@6.11.0-1018.18~24.04.1?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azure-fde-6.17pkg:deb/ubuntu/linux-azure-fde-6.17@6.17.0-1017.17~24.04.1?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2025-22041 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-22041 (opens in a new tab)
- git.kernel.org/linus/15a9605f8d69dc85005b1a00c31a050b8625e1aa (opens in a new tab)
- git.kernel.org/stable/c/15a9605f8d69dc85005b1a00c31a050b8625e1aa (opens in a new tab)
- git.kernel.org/stable/c/33cc29e221df7a3085ae413e8c26c4e81a151153 (opens in a new tab)
- git.kernel.org/stable/c/8ed0e9d2f410f63525afb8351181eea36c80bcf1 (opens in a new tab)
- git.kernel.org/stable/c/a8a8ae303a8395cbac270b5b404d85df6ec788f8 (opens in a new tab)
- git.kernel.org/stable/c/ca042cc0e4f9e0d2c8f86dd67e4b22f30a516a9b (opens in a new tab)
- git.kernel.org/stable/c/f0eb3f575138b816da74697bd506682574742fcd (opens in a new tab)
- ubuntu.com/security/notices/USN-7594-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7594-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7605-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7606-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7605-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7594-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7628-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7835-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7835-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7835-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7835-4 (opens in a new tab)