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 55F86F516 for ; Wed, 17 Apr 2024 09:44:49 +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=1713347089; cv=none; b=CatymQbNql7qD+wq2esTg6jDHcnnIrtZVZn26fNEEylbKm7kumA0NenafZTowM575O8BbIcrtuVtma9lagNMQtQUFoyv4lSaShiaKp4tVzadVDV0IYp+Qlxh/iUUlgm8DLe5ytx/KotBZ+UVKsvQJzY3/uHQCxTkyXRxxfK+qWk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713347089; c=relaxed/simple; bh=N3p5CXSS0eY27a87pTAIhrMvOuWKUUyAhTEqaUbdj5c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bUpcatJ/fg5Vhw2p/O6644gSCgoAtWz2OzSboEzM47eoVyyT8IC4fzV8LB+8PmDS7CcB6fV3hhVqVLdie2RkfxObs8vUtm424Zs9waLuyl/Hxv0vAGNFDBKaJmNaBU/IzQHx8hZBuN+heM6TM0S129IJES93q9aim3iGkElooMs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vZwZp2Tp; 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="vZwZp2Tp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 809AAC072AA; Wed, 17 Apr 2024 09:44:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713347088; bh=N3p5CXSS0eY27a87pTAIhrMvOuWKUUyAhTEqaUbdj5c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vZwZp2TpZYmUF+mrDO/+lPC0uE+asFRljjGP003oDJgXgKaI7EZVWPqtm6i7nI/Km hcV+V++unLyRNnxTknUXmC1fHLxXqk5Sbf9VBXB1GU0XY3ExUnlfjPaznfWtrTBugL ZzWkGdjydtmX4JDmzFlIDXbtBk2bJ9tdma0n00A0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26824: crypto: algif_hash - Remove bogus SGL free on zero-length error path Date: Wed, 17 Apr 2024 11:44:07 +0200 Message-ID: <2024041702-CVE-2024-26824-98e1@gregkh> X-Mailer: git-send-email 2.44.0 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=2048; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=N3p5CXSS0eY27a87pTAIhrMvOuWKUUyAhTEqaUbdj5c=; b=kA0DAAIRMUfUDdst+ykByyZiAGYfmeKinKU44Jv7yycZyNEh+NoKGQ7Hh1YDJEurVgnPKnpEi 4hdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmYfmeIACgkQMUfUDdst+ykhVQCeO6cr rm6PZgzKAdpFJFSccuLTiOQAni2bxNXcwhXMJ7fXnLLNS9QmBha8 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: crypto: algif_hash - Remove bogus SGL free on zero-length error path When a zero-length message is hashed by algif_hash, and an error is triggered, it tries to free an SG list that was never allocated in the first place. Fix this by not freeing the SG list on the zero-length error path. The Linux kernel CVE team has assigned CVE-2024-26824 to this issue. Affected and fixed versions =========================== Issue introduced in 6.5 with commit b6d972f68983 and fixed in 6.6.18 with commit 9c82920359b7 Issue introduced in 6.5 with commit b6d972f68983 and fixed in 6.7.6 with commit 775f3c1882a4 Issue introduced in 6.5 with commit b6d972f68983 and fixed in 6.8 with commit 24c890dd712f 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-2024-26824 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: crypto/algif_hash.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/9c82920359b7c1eddaf72069bcfe0ffddf088cd0 https://git.kernel.org/stable/c/775f3c1882a493168e08fdb8cde0865c8f3a8a29 https://git.kernel.org/stable/c/24c890dd712f6345e382256cae8c97abb0406b70