CVE-2025-39933: smb: client: let recv_done verify data_offset, data_length and remaining_data_length
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
smb: client: let recv_done verify data_offset, data_length and remaining_data_length
This is inspired by the related server fixes.
The Linux kernel CVE team has assigned CVE-2025-39933 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.16 with commit f198186aa9bbd60fae7a2061f4feec614d880299 and fixed in 6.16.9 with commit 581fb78e0388b78911b0c920e4073737090c8b5f Issue introduced in 4.16 with commit f198186aa9bbd60fae7a2061f4feec614d880299 and fixed in 6.17 with commit f57e53ea252363234f86674db475839e5b87102e
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-39933
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
fs/smb/client/smbdirect.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/581fb78e0388b78911b0c920e4073737090c8b5f https://git.kernel.org/stable/c/f57e53ea252363234f86674db475839e5b87102e