{"id":"CVE-2025-22040","published":"2025-04-16T14:11:57Z","modified":"2026-08-05T11:56:13Z","title":"ksmbd: fix session use-after-free in multichannel connection","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nksmbd: fix session use-after-free in multichannel connection\n\nThere is a race condition between session setup and\nksmbd_sessions_deregister. The session can be freed before the connection\nis added to channel list of session.\nThis patch check reference count of session before freeing it.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00717,"percentile":0.54723,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://git.kernel.org/stable/c/596407adb9af1ee75fe7c7529607783d31b66e7f","tags":[]},{"url":"https://git.kernel.org/stable/c/3980770cb1470054e6400fd97668665975726737","tags":[]},{"url":"https://git.kernel.org/stable/c/9069939d762138e232a6f79e3e1462682ed6a17d","tags":[]},{"url":"https://git.kernel.org/stable/c/94c281721d4ed2d972232414b91d98a6f5bdb16b","tags":[]},{"url":"https://git.kernel.org/stable/c/7dfbd4c43eed91dd2548a95236908025707a8dfd","tags":[]},{"url":"https://git.kernel.org/stable/c/fa4cdb8cbca7d6cb6aa13e4d8d83d1103f6345db","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":[]}],"priority":{"score":17.1,"factors":[{"name":"EPSS percentile","points":10.94},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 596407adb9af1ee75fe7c7529607783d31b66e7f",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 3980770cb1470054e6400fd97668665975726737",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 9069939d762138e232a6f79e3e1462682ed6a17d",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 94c281721d4ed2d972232414b91d98a6f5bdb16b",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < 7dfbd4c43eed91dd2548a95236908025707a8dfd",">= 0626e6641f6b467447c81dd7678a69c66f7746cf, < fa4cdb8cbca7d6cb6aa13e4d8d83d1103f6345db"]},{"vendor":"Linux","product":"Linux","versions":["5.15"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-21T14:57:48.411411Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-11248","exploited":false,"provenance":"source"}}