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 68785386C15 for ; Mon, 20 Apr 2026 09:43:12 +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=1776678192; cv=none; b=Mf2Mp4LOvwYDC6nU46l6nSuzQHcx6yDLYAbhZBRBTXIwjSSR91l66XNiDumr0f6+aqdRuzz9ghpxrxoVAMsTf+QAALNMoZYaa+Phf8IgQx5jxGFJrso2/mCsgs/r1kJTF6NsvKncs8swbYfPourreuOCzCT5s6P0wWb0ym7BcvE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776678192; c=relaxed/simple; bh=vZ0CnZNKP9aYm1Qs3JSRZiOB9wFkw7QYclF3mwDRq6g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NZyRfwIPTHW/G6+gPFZmd8uiR9QWeNIGdTkr3GOPKTMkmM0T9DgMWB8NdYm4fzPF1vNIDmBnQVudHxA0XAqEV5EYpDdmg+FpcS4fT+yr1R53wThY2qLLclAfGfDFsKdNP4zkq/NbNmQcWhGUKf3CGx74ZOa3sf9fNosk6PXM21s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=i6LbXrzB; 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="i6LbXrzB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BB66AC19425; Mon, 20 Apr 2026 09:43:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1776678192; bh=vZ0CnZNKP9aYm1Qs3JSRZiOB9wFkw7QYclF3mwDRq6g=; h=From:To:Cc:Subject:Date:Reply-To:From; b=i6LbXrzBQJj+wtxRuVnQQwXJ2F1VeqmSsab/hwYbxcuU0hJSodVXiKwQsRKiptJDI g2vpCp5F4BAidiT5uJumdPHAtu8nt82kwqsOGMiHmgWzrgiweSSylIvDMMkB/J+vBo kmpquYRcWoSmKL21maC9r05fBave+2YoXzThtE24= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31430: X.509: Fix out-of-bounds access when parsing extensions Date: Mon, 20 Apr 2026 11:43:08 +0200 Message-ID: <2026042008-CVE-2026-31430-299d@gregkh> X-Mailer: git-send-email 2.53.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=2897; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+3zAHXYjNI076vs6l6Q2JymP0auJKS7P3tM623+27qM=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlPv+pEs8cUe/D4ruI5bSVkZ7z+kG/2VcUqnwV/dQ9J2 X4Jvvy1I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACYSt5NhQf+7miehPDX+l6Sm iGxvvGS1YkrJZ4b5fude28+fK7Vun/VZjxtBjs666fePAQA= 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: X.509: Fix out-of-bounds access when parsing extensions Leo reports an out-of-bounds access when parsing a certificate with empty Basic Constraints or Key Usage extension because the first byte of the extension is read before checking its length. Fix it. The bug can be triggered by an unprivileged user by submitting a specially crafted certificate to the kernel through the keyrings(7) API. Leo has demonstrated this with a proof-of-concept program responsibly disclosed off-list. The Linux kernel CVE team has assigned CVE-2026-31430 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 30eae2b037af54b24109dcaea21db46f6285c69b and fixed in 6.6.135 with commit 672b526def1f94c1be8eb11b885b803da0d8c2f1 Issue introduced in 6.4 with commit 30eae2b037af54b24109dcaea21db46f6285c69b and fixed in 6.12.82 with commit 30ab358fad0c7daa1d282ec48089901b21b36a20 Issue introduced in 6.4 with commit 30eae2b037af54b24109dcaea21db46f6285c69b and fixed in 6.18.23 with commit 206121294b9cf27f0589857f80d64f87e496ffb2 Issue introduced in 6.4 with commit 30eae2b037af54b24109dcaea21db46f6285c69b and fixed in 6.19.13 with commit 7fb4dadc2734f4020d7543d688b8d49c8e569c61 Issue introduced in 6.4 with commit 30eae2b037af54b24109dcaea21db46f6285c69b and fixed in 7.0 with commit d702c3408213bb12bd570bb97204d8340d141c51 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-31430 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/asymmetric_keys/x509_cert_parser.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/672b526def1f94c1be8eb11b885b803da0d8c2f1 https://git.kernel.org/stable/c/30ab358fad0c7daa1d282ec48089901b21b36a20 https://git.kernel.org/stable/c/206121294b9cf27f0589857f80d64f87e496ffb2 https://git.kernel.org/stable/c/7fb4dadc2734f4020d7543d688b8d49c8e569c61 https://git.kernel.org/stable/c/d702c3408213bb12bd570bb97204d8340d141c51