| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2025-21844: smb: client: Add check for next_buffer in receive_encrypted_standard() |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| smb: client: Add check for next_buffer in receive_encrypted_standard() |
| |
| Add check for the return value of cifs_buf_get() and cifs_small_buf_get() |
| in receive_encrypted_standard() to prevent null pointer dereference. |
| |
| The Linux kernel CVE team has assigned CVE-2025-21844 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 5.10.211 with commit b03c8099a738a04d2343547ae6a04e5f0f63d3fa and fixed in 5.10.235 with commit f277e479eea3d1aa18bc712abe1d2bf3dece2e30 |
| Issue introduced in 5.15.150 with commit 858e73ff25639a0cc1f6f8d2587b62c045867e41 and fixed in 5.15.179 with commit f618aeb6cad2307e48a641379db610abcf593edf |
| Issue introduced in 6.1.69 with commit 9f528a8e68327117837b5e28b096f52af4c26a05 and fixed in 6.1.130 with commit 24e8e4523d3071bc5143b0db9127d511489f7b3b |
| Issue introduced in 6.6.8 with commit 534733397da26de0303057ce0b93a22bda150365 and fixed in 6.6.80 with commit 9e5d99a4cf2e23c716b44862975548415fae5391 |
| Issue introduced in 6.7 with commit eec04ea119691e65227a97ce53c0da6b9b74b0b7 and fixed in 6.12.17 with commit a9b0b4b29877cb4dc5d0842b59b5ccbacddb85bd |
| Issue introduced in 6.7 with commit eec04ea119691e65227a97ce53c0da6b9b74b0b7 and fixed in 6.13.5 with commit 554736b583f529ee159aa95af9a0cbc12b5ffc96 |
| Issue introduced in 6.7 with commit eec04ea119691e65227a97ce53c0da6b9b74b0b7 and fixed in 6.14 with commit 860ca5e50f73c2a1cef7eefc9d39d04e275417f7 |
| |
| 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-21844 |
| 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/smb2ops.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/f277e479eea3d1aa18bc712abe1d2bf3dece2e30 |
| https://git.kernel.org/stable/c/f618aeb6cad2307e48a641379db610abcf593edf |
| https://git.kernel.org/stable/c/24e8e4523d3071bc5143b0db9127d511489f7b3b |
| https://git.kernel.org/stable/c/9e5d99a4cf2e23c716b44862975548415fae5391 |
| https://git.kernel.org/stable/c/a9b0b4b29877cb4dc5d0842b59b5ccbacddb85bd |
| https://git.kernel.org/stable/c/554736b583f529ee159aa95af9a0cbc12b5ffc96 |
| https://git.kernel.org/stable/c/860ca5e50f73c2a1cef7eefc9d39d04e275417f7 |