CVE-2025-22040 HIGH

CVE-2025-22040: ksmbd: fix session use-after-free in multichannel connection

Vendor Linux
Product Linux
Published April 16, 2025
Last update May 11, 2026

CVSS base score

8.8/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

What the vulnerability does

01Description

In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix session use-after-free in multichannel connection There is a race condition between session setup and ksmbd_sessions_deregister. The session can be freed before the connection is added to channel list of session. This patch check reference count of session before freeing it.

Key dates

02Disclosure timeline

April 16, 2025 CVE published
May 11, 2026 Record updated