summaryrefslogtreecommitdiff
path: root/include/linux/platform_data
diff options
context:
space:
mode:
authorLukas Wunner <lukas@wunner.de>2026-05-14 09:55:58 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2026-05-22 15:25:29 +0300
commit3b626ba431c4501512ad07549310685e07fe4706 (patch)
tree18fbea68e3c872aec3497e6074f35df68db2f045 /include/linux/platform_data
parent86ad8069366642fec18c1bc53c24cad3da720ce5 (diff)
downloadlinux-3b626ba431c4501512ad07549310685e07fe4706.tar.xz
X.509: Fix validation of ASN.1 certificate header
x509_load_certificate_list() seeks to enforce that a certificate starts with 0x30 0x82 (ASN.1 SEQUENCE tag followed by a length of more than 256 and less than 65535 bytes). But it only enforces that *either* of those two byte values are present, instead of checking for the *conjunction* of the two values. Fix it. Fixes: 631cc66eb9ea ("MODSIGN: Provide module signing public keys to the kernel") Reported-by: Sashiko <sashiko-bot@kernel.org> Closes: https://lore.kernel.org/r/20260508033917.B5873C2BCB0@smtp.kernel.org/ Signed-off-by: Lukas Wunner <lukas@wunner.de> Cc: stable@vger.kernel.org # v3.7+ Reviewed-by: Ignat Korchagin <ignat@linux.win> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'include/linux/platform_data')
0 files changed, 0 insertions, 0 deletions