CVE-2025-39942
ksmbd: smbdirect: verify remaining_data_length respects max_fragmented_recv_size
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < 196a3a7676d726ee67621ea2bf3b7815ac2685b4; >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < d3cb3f209d35c44b7ee74f77ed27ebb28995b9ce; >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < 9644798294c7287e65a7b26e35aa6d2ce3345bcc; >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < c64b915bb3d9339adcae5db4be2c35ffbef5e615; >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < e1868ba37fd27c6a68e31565402b154beaa65df0
- Anyone running Linux 5.15
Vulnerability facts
- Affected
- Linux >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < 196a3a7676d726ee67621ea2bf3b7815ac2685b4; >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < d3cb3f209d35c44b7ee74f77ed27ebb28995b9ce; >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < 9644798294c7287e65a7b26e35aa6d2ce3345bcc; >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < c64b915bb3d9339adcae5db4be2c35ffbef5e615; >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < e1868ba37fd27c6a68e31565402b154beaa65df0; Linux 5.15
- Fixed in
- Linux 196a3a7676d726ee67621ea2bf3b7815ac2685b4, Linux 9644798294c7287e65a7b26e35aa6d2ce3345bcc
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.53% chance of exploitation in 30 days (percentile 38, 2026-11-26)
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < 196a3a7676d726ee67621ea2bf3b7815ac2685b4; >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < d3cb3f209d35c44b7ee74f77ed27ebb28995b9ce; >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < 9644798294c7287e65a7b26e35aa6d2ce3345bcc; >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < c64b915bb3d9339adcae5db4be2c35ffbef5e615; >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < e1868ba37fd27c6a68e31565402b154beaa65df0 | — | cvelist |
| Linux | 5.15 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-39942. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-39942.md Affected: Linux >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < 196a3a7676d726ee67621ea2bf3b7815ac2685b4; >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < d3cb3f209d35c44b7ee74f77ed27ebb28995b9ce; >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < 9644798294c7287e65a7b26e35aa6d2ce3345bcc; >= 2ea086e35c3d726a3bacd0a… Fixed in: Linux 196a3a7676d726ee67621ea2bf3b7815ac2685b4, Linux 9644798294c7287e65a7b26e35aa6d2ce3345bcc Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/196a3a7676d726ee67621ea2bf3b7815ac2685b4
- https://git.kernel.org/stable/c/d3cb3f209d35c44b7ee74f77ed27ebb28995b9ce
- https://git.kernel.org/stable/c/9644798294c7287e65a7b26e35aa6d2ce3345bcc
- https://git.kernel.org/stable/c/c64b915bb3d9339adcae5db4be2c35ffbef5e615
- https://git.kernel.org/stable/c/e1868ba37fd27c6a68e31565402b154beaa65df0
FAQ
Is CVE-2025-39942 being exploited?
There is no confirmed exploitation: CVE-2025-39942 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.53% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-39942?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2025-39942?
Linux >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < 196a3a7676d726ee67621ea2bf3b7815ac2685b4; >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < d3cb3f209d35c44b7ee74f77ed27ebb28995b9ce; >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < 9644798294c7287e65a7b26e35aa6d2ce3345bcc; >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < c64b915bb3d9339adcae5db4be2c35ffbef5e615; >= 2ea086e35c3d726a3bacd0a971c1f02a50e98206, < e1868ba37fd27c6a68e31565402b154beaa65df0; Linux 5.15.
Is there a fix for CVE-2025-39942?
Yes. Fixed in Linux 196a3a7676d726ee67621ea2bf3b7815ac2685b4, Linux 9644798294c7287e65a7b26e35aa6d2ce3345bcc. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2025-39942?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.