# CVE-2025-39942: ksmbd: smbdirect: verify remaining_data_length respects max_fragmented_recv_size

- Severity: High 7.5 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/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.29%, higher than 22% of CVEs (2026-12-01)
- Published: 2025-10-04T07:31:04.810Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## Description

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

ksmbd: smbdirect: verify remaining_data_length respects max_fragmented_recv_size

This is inspired by the check for data_offset + data_length.

(As written by CVE List.)

## Affected

- Linux Linux: from 2ea086e35c3d726a3bacd0a971c1f02a50e98206 before 196a3a7676d726ee67621ea2bf3b7815ac2685b4; from 2ea086e35c3d726a3bacd0a971c1f02a50e98206 before d3cb3f209d35c44b7ee74f77ed27ebb28995b9ce; from 2ea086e35c3d726a3bacd0a971c1f02a50e98206 before 9644798294c7287e65a7b26e35aa6d2ce3345bcc; from 2ea086e35c3d726a3bacd0a971c1f02a50e98206 before c64b915bb3d9339adcae5db4be2c35ffbef5e615; from 2ea086e35c3d726a3bacd0a971c1f02a50e98206 before e1868ba37fd27c6a68e31565402b154beaa65df0; 5.15 (not affected: before 5.15; from 6.1.154 up to 6.1.*; from 6.6.108 up to 6.6.*; from 6.12.49 up to 6.12.*; from 6.16.9 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 5.15.1 before 6.1.154; from 6.2 before 6.6.108; from 6.7 before 6.12.49; from 6.13 before 6.16.9; 5.15; 6.17

## Every score

- Linux: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/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/196a3a7676d726ee67621ea2bf3b7815ac2685b4> (patch)
- <https://git.kernel.org/stable/c/d3cb3f209d35c44b7ee74f77ed27ebb28995b9ce> (patch)
- <https://git.kernel.org/stable/c/9644798294c7287e65a7b26e35aa6d2ce3345bcc> (patch)
- <https://git.kernel.org/stable/c/c64b915bb3d9339adcae5db4be2c35ffbef5e615> (patch)
- <https://git.kernel.org/stable/c/e1868ba37fd27c6a68e31565402b154beaa65df0> (patch)

## Sources

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

---

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