# CVE-2025-40084: ksmbd: transport_ipc: validate payload size before reading handle

- Severity: High 7.1 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/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.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2025-10-29T13:37:03.185Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ksmbd: transport_ipc: validate payload size before reading handle

handle_response() dereferences the payload as a 4-byte handle without
verifying that the declared payload size is at least 4 bytes. A malformed
or truncated message from ksmbd.mountd can lead to a 4-byte read past the
declared payload size. Validate the size before dereferencing.

This is a minimal fix to guard the initial handle read.

(As written by CVE List.)

## Affected

- Linux Linux: from 0626e6641f6b467447c81dd7678a69c66f7746cf before a02e432d5130da4c723aabe1205bac805889fdb2; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 2dc125f5da134c0915a840b62565c60a595673dd; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 898d527ed94c19980a4d848f10057f1fed578ffb; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 867ffd9d67285612da3f0498ca618297f8e41f01; from 0626e6641f6b467447c81dd7678a69c66f7746cf before 6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0; 5.15 (not affected: before 5.15; from 6.1.158 up to 6.1.*; from 6.6.115 up to 6.6.*; from 6.12.56 up to 6.12.*; from 6.17.6 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/a02e432d5130da4c723aabe1205bac805889fdb2>
- <https://git.kernel.org/stable/c/2dc125f5da134c0915a840b62565c60a595673dd>
- <https://git.kernel.org/stable/c/898d527ed94c19980a4d848f10057f1fed578ffb>
- <https://git.kernel.org/stable/c/867ffd9d67285612da3f0498ca618297f8e41f01>
- <https://git.kernel.org/stable/c/6f40e50ceb99fc8ef37e5c56e2ec1d162733fef0>

## Sources

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

---

Page: https://cve.day/CVE-2025-40084 · Whole record: https://cve.day/CVE-2025-40084.json · Rebuilt by cve.day 2026-11-25T22:59:06.989Z
