CVE-2025-21748 ksmbd: fix integer overflows on 32 bit systems
Integer overflows in the Linux kernel ksmbd module on 32-bit systems can lead to memory corruption, potentially allowing code execution or denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-21748?
CVE-2025-21748 is a critical vulnerability in Linux kernel, published on 27 Feb 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
ksmbd: fix integer overflows on 32 bit systems
On 32bit systems the addition operations in ipc_msg_alloc() can potentially overflow leading to memory corruption. Add bounds checking using KSMBD_IPC_MAX_PAYLOAD to avoid overflow.
Weakness: CWE-190
Which versions are affected by CVE-2025-21748?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2025-21748?
Apply the vendor's patch.
Is CVE-2025-21748 being exploited?
There is no known exploitation of CVE-2025-21748 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-57795, BELL-CVE-2025-21748, DEBIAN-CVE-2025-21748, GHSA-6hjx-r579-83fp, ROOT-OS-UBUNTU-2404-CVE-2025-21748, UBUNTU-CVE-2025-21748.