Kernel compromise via multichannel session use-after-free
Published Apr 16, 2025 · Updated Aug 5, 2026
Use-after-free in Linux ksmbd allows remote authenticated users to compromise the kernel through a multichannel SMB session race. During second-channel binding, session setup can retain a session after ksmbd_sessions_deregister frees it, then add the connection to the freed session's channel list. The attacker must authenticate, bind a second channel, and disconnect the first during setup; the attacker-controlled race corrupts kernel memory.
Summary
What happened
Use-after-free in Linux ksmbd allows remote authenticated users to compromise the kernel through a multichannel SMB session race. During second-channel binding, session setup can retain a session after ksmbd_sessions_deregister frees it, then add the connection to the freed session's channel list. The attacker must authenticate, bind a second channel, and disconnect the first during setup; the attacker-controlled race corrupts kernel memory.
The record
- CVE
- CVE-2025-22040
- Published
- Apr 16, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1210
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 16, 2025CVE publishedPublication date reported by the CVE source.
- Aug 5, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <3980770cb1470054e6400fd97668665975726737
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <596407adb9af1ee75fe7c7529607783d31b66e7f
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <7dfbd4c43eed91dd2548a95236908025707a8dfd
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <9069939d762138e232a6f79e3e1462682ed6a17d
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <94c281721d4ed2d972232414b91d98a6f5bdb16b
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <fa4cdb8cbca7d6cb6aa13e4d8d83d1103f6345db
- Affected versionversion=5.15
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo