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 A46A21F2BAD for ; Fri, 1 May 2026 14:21:54 +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=1777645314; cv=none; b=PipNrVptBFgl5oV4Jzve6kvFV4oWaSAKTCFhJ+UBcVQNCgD49NPZSFtmFbZelWojHXuwShoEAwIhxPBfBIEf6llkjL1f+EH/hKszqfsJz30lv0oOyOdlFcIsij5A5Uj3tl6jt1iw0sj47e8LLSEW6s4oTJwJYZ4o60RaARRk260= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645314; c=relaxed/simple; bh=cwEUQ/dYVz7z11PYEgUrYP7Rug1d1+vjSGhqQvaikjw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=L1JmNP/SM5T7nvlNuV0vXxih2iStqNnhrkEQtJX7gDG+7Uk6RLtoDz2udsqbyWCOdbm7tZ3RpDOuMs0XMV50z4Z3deJSY2Ds4TQ0n3sW74Firf8DHbPygbOkBY/hs1nLDkCBZPQIjdT/OnVZ1giVx2oCBwqAOM3z5O/xUJdPfPI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ksMgs2JD; 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="ksMgs2JD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A885C2BCB9; Fri, 1 May 2026 14:21:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645314; bh=cwEUQ/dYVz7z11PYEgUrYP7Rug1d1+vjSGhqQvaikjw=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ksMgs2JDHpBluqLH+l9Hihieo0pOXvWT3VHngoAT/l4ndwMKYza3hr2C3oQIpcJ4i nGAr1TCvQb2jWy4oloZhJlW0bGpbzIqaqvA1K8uc1ow3OdHK3QAzKWQ40f/1iOFvB4 An+h45R0/Sm4bQE5Dpi4dFx/Lt8h5J0jBIyj83HA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43043: crypto: af-alg - fix NULL pointer dereference in scatterwalk Date: Fri, 1 May 2026 16:16:16 +0200 Message-ID: <2026050104-CVE-2026-43043-6997@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3751; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DEFLq3G8H5PXv3DEzj/fDoyNKo1vgdM+bLFFuDcYq0g=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftma8LncQ6KyS3DHJ59yuLQyhjqFyYjIB2au1z79Z3 5mbtcqlI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZyYh/D/IT1XLYBqwN/ro6V c5245bNXZ1rgCob5Ti8+dP5/Xf/KQmjexoidp3am3ysqAAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: crypto: af-alg - fix NULL pointer dereference in scatterwalk The AF_ALG interface fails to unmark the end of a Scatter/Gather List (SGL) when chaining a new af_alg_tsgl structure. If a sendmsg() fills an SGL exactly to MAX_SGL_ENTS, the last entry is marked as the end. A subsequent sendmsg() allocates a new SGL and chains it, but fails to clear the end marker on the previous SGL's last data entry. This causes the crypto scatterwalk to hit a premature end, returning NULL on sg_next() and leading to a kernel panic during dereference. Fix this by explicitly unmarking the end of the previous SGL when performing sg_chain() in af_alg_alloc_tsgl(). The Linux kernel CVE team has assigned CVE-2026-43043 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.38 with commit 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 and fixed in 5.10.253 with commit f48d3dd99199180cf37d6253550c55e86372309a Issue introduced in 2.6.38 with commit 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 and fixed in 5.15.203 with commit f9acceae7b004956851fd4268edf9f518a9bce04 Issue introduced in 2.6.38 with commit 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 and fixed in 6.1.168 with commit 7195350fb78538c25cd790d703f8f2c73ee0d395 Issue introduced in 2.6.38 with commit 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 and fixed in 6.6.134 with commit 7cdf2c6381b21ab5ccf8116750d5582fcd6c0f49 Issue introduced in 2.6.38 with commit 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 and fixed in 6.12.81 with commit 44eafa39363e8d5dfda6a8c6eb6b45458ed4b948 Issue introduced in 2.6.38 with commit 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 and fixed in 6.18.22 with commit 00cbdec17c15d024a1c5002c7365df7624a18a75 Issue introduced in 2.6.38 with commit 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 and fixed in 6.19.12 with commit 4b03ab0a587ec57eb7ddb5c115d84a42896f60f7 Issue introduced in 2.6.38 with commit 8ff590903d5fc7f5a0a988c38267a3d08e6393a2 and fixed in 7.0 with commit 62397b493e14107ae82d8b80938f293d95425bcb 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-2026-43043 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/af_alg.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/f48d3dd99199180cf37d6253550c55e86372309a https://git.kernel.org/stable/c/f9acceae7b004956851fd4268edf9f518a9bce04 https://git.kernel.org/stable/c/7195350fb78538c25cd790d703f8f2c73ee0d395 https://git.kernel.org/stable/c/7cdf2c6381b21ab5ccf8116750d5582fcd6c0f49 https://git.kernel.org/stable/c/44eafa39363e8d5dfda6a8c6eb6b45458ed4b948 https://git.kernel.org/stable/c/00cbdec17c15d024a1c5002c7365df7624a18a75 https://git.kernel.org/stable/c/4b03ab0a587ec57eb7ddb5c115d84a42896f60f7 https://git.kernel.org/stable/c/62397b493e14107ae82d8b80938f293d95425bcb