Kernel memory corruption via 32-bit allocation overflow
Published Feb 27, 2025 · Updated Aug 5, 2026
Integer overflow in ksmbd in affected Linux kernel releases starting at 5.15 allows remote attackers to corrupt kernel memory via SMB. The ipc_msg_alloc() helper adds attacker-controlled message lengths on 32-bit systems without first bounding the total, so the wrapped allocation is smaller than the subsequent memcpy length. A reachable ksmbd service on TCP port 445 and a 32-bit kernel are required; exploitation overwrites adjacent kernel heap objects and can crash the host or redirect kernel control flow.
Summary
What happened
Integer overflow in ksmbd in affected Linux kernel releases starting at 5.15 allows remote attackers to corrupt kernel memory via SMB. The ipc_msg_alloc() helper adds attacker-controlled message lengths on 32-bit systems without first bounding the total, so the wrapped allocation is smaller than the subsequent memcpy length. A reachable ksmbd service on TCP port 445 and a 32-bit kernel are required; exploitation overwrites adjacent kernel heap objects and can crash the host or redirect kernel control flow.
The record
- CVE
- CVE-2025-21748
- Published
- Feb 27, 2025
- Updated
- Aug 5, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-190, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Feb 27, 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 <760568c1f62ea874e8fb492f9cfa4f47b4b8391e
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <82f59d64e6297f270311b16b5dcf65be406d1ea3
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <aab98e2dbd648510f8f51b83fbf4721206ccae45
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <b4b902737746c490258de5cb55cab39e79927a67
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <ecb9947fa7c99a77b04d43404c6988a0d326e4a0
- Affected versionversion=0626e6641f6b467447c81dd7678a69c66f7746cf <f3b9fb2764591d792d160f375851013665a9e820
- 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.
Weakness, pattern, technique
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