mbedtls/ChangeLog.d
Gilles Peskine cc794d8501 Tighten CSR extensionRequest bounds
Don't allow parts of a compound (SEQUENCE or SET) to go beyond the
containing compound.

The inline CSR regression test is derived from the existing "X509 CSR
ASN.1 (OK)" DER test vector. In the extensionRequest attribute, the original
well-formed fragment is:

    a029 3027 06092a864886f70d01090e 311a 3018 ...

where 31 1a is the SET containing the Extensions sequence and 30 18 is the
contained Extensions sequence. The malformed test changes only the SET
length byte, from 1a to 19:

    a029 3027 06092a864886f70d01090e 3119 3018 ...

The attribute SEQUENCE length and the inner Extensions sequence length are
left unchanged. This makes the SET one byte too short for its containing
attribute, so the parser must reject it with
MBEDTLS_ERR_ASN1_LENGTH_MISMATCH instead of parsing the trailing byte as
data outside the SET.

There is no known security impact, just some risk reduction.

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2026-06-05 11:35:38 +02:00
..
00README.md scripts: fix paths for files moved to framework 2025-01-08 09:59:18 +01:00
cmake-destdir-instal.txt ChangeLog fix 2026-04-13 15:00:44 +01:00
fix-tls12-rsa-pss-sigalgs.txt ssl: narrow TLS 1.2 RSA-PSS handling and add interop coverage 2026-04-16 04:36:48 +03:00
pr_10695__fix_build_llvm_mingw.txt update ChangeLog 2026-04-22 11:05:04 +08:00
security-advice.txt Mention the new advice about compiler options in the changelog 2026-04-01 11:08:46 +02:00
x509-crt-parse-basicConstraints.txt Fix lax basicConstraints parsing 2026-05-26 21:07:09 +02:00
x509-csr-extension-request-bounds.txt Tighten CSR extensionRequest bounds 2026-06-05 11:35:38 +02:00