Kernel memory corruption via stale SMB lock
Published Apr 1, 2025 · Updated Aug 5, 2026
Use-after-free in affected Linux kernel ksmbd releases allows remote authenticated users to corrupt memory via a crafted SMB2 LOCK request. A zero-length lock remains linked while smb2_lock reuses stale file-lock state, leaving freed objects reachable during error handling. A low-privileged account with an open file on an exported share is sufficient; exploitation can disclose or corrupt kernel memory and panic the server.
Summary
What happened
Use-after-free in affected Linux kernel ksmbd releases allows remote authenticated users to corrupt memory via a crafted SMB2 LOCK request. A zero-length lock remains linked while smb2_lock reuses stale file-lock state, leaving freed objects reachable during error handling. A low-privileged account with an open file on an exported share is sufficient; exploitation can disclose or corrupt kernel memory and panic the server.
The record
- CVE
- CVE-2025-21945
- Published
- Apr 1, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-416, T1190
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Apr 1, 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 <410ce35a2ed6d0e114132bba29af49b69880c8c7
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <636e021646cf9b52ddfea7c809b018e91f2188cb
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <84d2d1641b71dec326e8736a749b7ee76a9599fc
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <8573571060ca466cbef2c6f03306b2cc7b883506
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <a0609097fd10d618aed4864038393dd75131289e
- Affected versionversion=5.15
What conditions does exploitation require?
What is affected?
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