In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix use-after-free in ksmbdsessionsderegister()
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.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22041.json"
}"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22041.json"
[
{
"signature_version": "v1",
"target": {
"file": "fs/smb/server/mgmt/user_session.c",
"function": "ksmbd_sessions_deregister"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8ed0e9d2f410f63525afb8351181eea36c80bcf1",
"deprecated": false,
"digest": {
"function_hash": "304792353720739151089829909004267372018",
"length": 850.0
},
"id": "CVE-2025-22041-1897583b",
"signature_type": "Function"
},
{
"signature_version": "v1",
"target": {
"file": "fs/smb/server/mgmt/user_session.c"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@8ed0e9d2f410f63525afb8351181eea36c80bcf1",
"deprecated": false,
"digest": {
"line_hashes": [
"82464185884311199267369830343689737607",
"198967412189393731734139190774702699261",
"249590223279886348799249085325038598154",
"248030424898210743201626882991285662855"
],
"threshold": 0.9
},
"id": "CVE-2025-22041-dd45f4ed",
"signature_type": "Line"
}
]