CVE-2025-22041

published 16 Apr 2025 · updated 5 Aug 2026

ksmbd: fix use-after-free in ksmbd_sessions_deregister()

8.8HighCVSS 8.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in Kernel 15a9605f8d69dc85005b1a00c31a050b8625e1aa, Kernel 33cc29e221df7a3085ae413e8c26c4e81a151153, Kernel 8ed0e9d2f410f63525afb8351181eea36c80bcf1 and 3 more.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=5.15, >=0626e6641f6b467447c81dd7678a69c66f7746cf <15a9605f8d69dc85005b1a00c31a050b8625e1aa, >=0626e6641f6b467447c81dd7678a69c66f7746cf <33cc29e221df7a3085ae413e8c26c4e81a151153, >=0626e6641f6b467447c81dd7678a69c66f7746cf <8ed0e9d2f410f63525afb8351181eea36c80bcf1, >=0626e6641f6b467447c81dd7678a69c66f7746cf <a8a8ae303a8395cbac270b5b404d85df6ec788f8, >=0626e6641f6b467447c81dd7678a69c66f7746cf <ca042cc0e4f9e0d2c8f86dd67e4b22f30a516a9b, >=0626e6641f6b467447c81dd7678a69c66f7746cf <f0eb3f575138b816da74697bd506682574742fcd15a9605f8d69dc85005b1a00c31a050b8625e1aa, 33cc29e221df7a3085ae413e8c26c4e81a151153, 8ed0e9d2f410f63525afb8351181eea36c80bcf1, a8a8ae303a8395cbac270b5b404d85df6ec788f8, ca042cc0e4f9e0d2c8f86dd67e4b22f30a516a9b, f0eb3f575138b816da74697bd506682574742fcd

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-22041 severity on Zeptric[![CVE-2025-22041](https://zeptric.io/badge/cve/CVE-2025-22041.svg)](https://zeptric.io/cve/CVE-2025-22041)