Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A665723AE7E for ; Wed, 12 Mar 2025 09:43:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741772582; cv=none; b=q8UVl3agR8HP29EMsFOOxFdn6rUajM5UE76hbKW3kYu/4OJKV/TFDmOMjXuHHAp/FZJCG6k4y2FFuKGENask8KnuvtUH3v9JflGp8mcrLDcOtdpXQ8W35rHSnnA0fg8d/sSqWZkjKKzZncg3FqkJzg5as1MaYwIvguPyvGC1GUQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1741772582; c=relaxed/simple; bh=HXwAc4Vrle9lIgFPV/Nq4mTRSMbqB+EoiUeSKHPdad0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NS4bdxjRNE1X3ijiUglBnqRkbrpgP/iY/rIeXz8ju51ED3xqd8SjRFoMy7w2g90k0j6+QDCT6wQ7FQt+gmWwXdDr4vqTyHAH3IMs2w/KIlT4qbScyoFy/g1GAsLbz2Yg/E7dZaHrWRZYE39HpCWZiMho2UHeTCWwetISG7HW5KM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tkYQyzzP; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="tkYQyzzP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB568C4CEE3; Wed, 12 Mar 2025 09:43:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1741772582; bh=HXwAc4Vrle9lIgFPV/Nq4mTRSMbqB+EoiUeSKHPdad0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=tkYQyzzPETjvl5IshKdc55PENfxyOyobrCjXrmy/pXQJ/ytrUahhdwxn7etuomRn5 oQF73+I8Y8yUrDG2LekWKqYlp3e5k9Fx+1kmWAz0iAnjIyo+5AbKgndwKI3c/4AvGk iq3EtDDd0SwqLgjW40fxV8UtL3HQ64Um9v9cuA7o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21844: smb: client: Add check for next_buffer in receive_encrypted_standard() Date: Wed, 12 Mar 2025 10:42:10 +0100 Message-ID: <2025031210-CVE-2025-21844-a1cc@gregkh> X-Mailer: git-send-email 2.48.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2778; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HXwAc4Vrle9lIgFPV/Nq4mTRSMbqB+EoiUeSKHPdad0=; b=owGbwMvMwCRo6H6F97bub03G02pJDOkXwz53/Ln84x+rcvbexgS+gv0M/w2Xrfc/Pfffix5FF 7HCnr53HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR4nSG+WGqWcZblZQ93670 YbzBrtIqpbZsEsM8o2NOnakfu62UDfKWreg9f9kzamkPAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit 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 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-rc4 with commit 860ca5e50f73c2a1cef7eefc9d39d04e275417f7 Issue introduced in 5.10.211 with commit b03c8099a738a04d2343547ae6a04e5f0f63d3fa Issue introduced in 5.15.150 with commit 858e73ff25639a0cc1f6f8d2587b62c045867e41 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/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