# CVE-2025-21748: ksmbd: fix integer overflows on 32 bit systems

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.82%, higher than 54% of CVEs (2026-11-30)
- Published: 2025-02-27T02:12:19.705Z
- Modified: 2026-08-05T11:54:06.626Z
- Weaknesses: CWE-190
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 0626e6641f6b467447c81dd7678a69c66f7746cf before f3b9fb2764591d792d160f375851013665a9e820; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 760568c1f62ea874e8fb492f9cfa4f47b4b8391e; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 82f59d64e6297f270311b16b5dcf65be406d1ea3; from 0626e6641f6b467447c81dd7678a69c66f7746cf before b4b902737746c490258de5cb55cab39e79927a67; from 0626e6641f6b467447c81dd7678a69c66f7746cf before ecb9947fa7c99a77b04d43404c6988a0d326e4a0; from 0626e6641f6b467447c81dd7678a69c66f7746cf before aab98e2dbd648510f8f51b83fbf4721206ccae45; 5.15 (not affected: before 5.15; from 5.15.179 up to 5.15.*; from 6.1.129 up to 6.1.*; from 6.6.78 up to 6.6.*; from 6.12.14 up to 6.12.*; from 6.13.3 up to 6.13.*; from 6.14 up to *)
- linux linux_kernel: from 5.15 before 6.1.129; from 6.2 before 6.6.78; from 6.7 before 6.12.14; from 6.13 before 6.13.3

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/f3b9fb2764591d792d160f375851013665a9e820>
- <https://git.kernel.org/stable/c/760568c1f62ea874e8fb492f9cfa4f47b4b8391e> (patch)
- <https://git.kernel.org/stable/c/82f59d64e6297f270311b16b5dcf65be406d1ea3> (patch)
- <https://git.kernel.org/stable/c/b4b902737746c490258de5cb55cab39e79927a67> (patch)
- <https://git.kernel.org/stable/c/ecb9947fa7c99a77b04d43404c6988a0d326e4a0> (patch)
- <https://git.kernel.org/stable/c/aab98e2dbd648510f8f51b83fbf4721206ccae45> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00028.html>

## Sources

- CVE List: [CVE-2025-21748](https://www.cve.org/CVERecord?id=CVE-2025-21748), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2025-21748](https://nvd.nist.gov/vuln/detail/CVE-2025-21748), Public domain, modified 2026-07-30

---

Page: https://cve.day/CVE-2025-21748 · Whole record: https://cve.day/CVE-2025-21748.json · Rebuilt by cve.day 2026-11-25T22:58:54.526Z
