# CVE-2025-39943: ksmbd: smbdirect: validate data_offset and data_length field of smb_direct_data_transfer

- Severity: Critical 9.4 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/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.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-10-04T07:31:05.581Z
- Modified: 2026-10-19T21:10:00.160Z
- Weaknesses: CWE-125
- Assigned by: Linux

## Description

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

ksmbd: smbdirect: validate data_offset and data_length field of smb_direct_data_transfer

If data_offset and data_length of smb_direct_data_transfer struct are
invalid, out of bounds issue could happen.
This patch validate data_offset and data_length field in recv_done.

(As written by CVE List.)

## Affected

- Linux Linux: from 2ea086e35c3d726a3bacd0a971c1f02a50e98206 before 773fddf976d282ef059c36c575ddb81567acd6bc; from 2ea086e35c3d726a3bacd0a971c1f02a50e98206 before bdaab5c6538e250a9654127e688ecbbeb6f771d5; from 2ea086e35c3d726a3bacd0a971c1f02a50e98206 before eb0378dde086363046ed3d7db7f126fc3f76fd70; from 2ea086e35c3d726a3bacd0a971c1f02a50e98206 before 8be498fcbd5b07272f560b45981d4b9e5a2ad885; from 2ea086e35c3d726a3bacd0a971c1f02a50e98206 before 529b121b00a6ee3c88fb3c01b443b2b81f686d48; from 2ea086e35c3d726a3bacd0a971c1f02a50e98206 before 5282491fc49d5614ac6ddcd012e5743eecb6a67c; 5.15 (not affected: before 5.15; from 5.15.194 up to 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 5.15.194; from 5.16 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 9.4 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:H`
- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/773fddf976d282ef059c36c575ddb81567acd6bc> (patch)
- <https://git.kernel.org/stable/c/bdaab5c6538e250a9654127e688ecbbeb6f771d5> (patch)
- <https://git.kernel.org/stable/c/eb0378dde086363046ed3d7db7f126fc3f76fd70> (patch)
- <https://git.kernel.org/stable/c/8be498fcbd5b07272f560b45981d4b9e5a2ad885> (patch)
- <https://git.kernel.org/stable/c/529b121b00a6ee3c88fb3c01b443b2b81f686d48> (patch)
- <https://git.kernel.org/stable/c/5282491fc49d5614ac6ddcd012e5743eecb6a67c> (patch)

## Sources

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

---

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