# CVE-2025-22041: ksmbd: fix use-after-free in ksmbd_sessions_deregister()

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.71%, higher than 54% of CVEs (2026-12-01)
- Published: 2025-04-16T14:11:58.250Z
- Modified: 2026-08-05T11:56:14.282Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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.*; from 6.15 up to *)
- linux linux_kernel: before 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.2

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/f0eb3f575138b816da74697bd506682574742fcd> (patch)
- <https://git.kernel.org/stable/c/a8a8ae303a8395cbac270b5b404d85df6ec788f8> (patch)
- <https://git.kernel.org/stable/c/ca042cc0e4f9e0d2c8f86dd67e4b22f30a516a9b> (patch)
- <https://git.kernel.org/stable/c/8ed0e9d2f410f63525afb8351181eea36c80bcf1> (patch)
- <https://git.kernel.org/stable/c/33cc29e221df7a3085ae413e8c26c4e81a151153> (patch)
- <https://git.kernel.org/stable/c/15a9605f8d69dc85005b1a00c31a050b8625e1aa> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>

## Sources

- CVE List: [CVE-2025-22041](https://www.cve.org/CVERecord?id=CVE-2025-22041), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-22041](https://nvd.nist.gov/vuln/detail/CVE-2025-22041), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-22041 · Whole record: https://cve.day/CVE-2025-22041.json · Rebuilt by cve.day 2026-11-25T22:58:56.579Z
