{"id":"CVE-2025-22041","summary":"ksmbd: fix use-after-free in ksmbd_sessions_deregister()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix use-after-free in ksmbd_sessions_deregister()\n\nIn multichannel mode, UAF issue can occur in session_deregister\nwhen the second channel sets up a session through the connection of\nthe first channel. session that is freed through the global session\ntable can be accessed again through -\u003esessions of connection.","modified":"2026-05-18T05:57:24.691209443Z","published":"2025-04-16T14:11:58.250Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22041.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/15a9605f8d69dc85005b1a00c31a050b8625e1aa"},{"type":"WEB","url":"https://git.kernel.org/stable/c/33cc29e221df7a3085ae413e8c26c4e81a151153"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8ed0e9d2f410f63525afb8351181eea36c80bcf1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/a8a8ae303a8395cbac270b5b404d85df6ec788f8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ca042cc0e4f9e0d2c8f86dd67e4b22f30a516a9b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f0eb3f575138b816da74697bd506682574742fcd"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22041.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22041"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0626e6641f6b467447c81dd7678a69c66f7746cf"},{"fixed":"f0eb3f575138b816da74697bd506682574742fcd"},{"fixed":"a8a8ae303a8395cbac270b5b404d85df6ec788f8"},{"fixed":"ca042cc0e4f9e0d2c8f86dd67e4b22f30a516a9b"},{"fixed":"8ed0e9d2f410f63525afb8351181eea36c80bcf1"},{"fixed":"33cc29e221df7a3085ae413e8c26c4e81a151153"},{"fixed":"15a9605f8d69dc85005b1a00c31a050b8625e1aa"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-22041.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.15.0"},{"fixed":"6.1.134"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.87"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.23"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.13.11"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.14.0"},{"fixed":"6.14.2"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-22041.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}