Hi all,
I'd like to raise the oldest BoringSSL revision we support. I'd also like CI to
build against that same revision, so we
test what we claim to support.
Where we are today:
- Our only enforcement is in CMakeLists.txt. When building against BoringSSL,
CMake reads BORINGSSL_API_VERSION from
openssl/base.h. If it's below the min_bssl variable, configuration fails.
min_bssl is currently 27, which is roughly
the September 2023 commit a1843d66.
- CI (tools/build_boringssl_h3_tools.sh) pins c3ffc330, from 2026-04-24,
which is API version 40.
Proposal: BoringSSL release 0.20261105.0
(3dc4b63808921e914a3fb1fa61869abc3938781b), with the minimum API version
(min_bssl) raised from 27 to 45.
Why move now: security fixes
- CVE-2026-35189 is a memory-allocation DoS in relative CRL distribution
point processing. BoringSSL's 2026-09-29
advisory says BoringSSL is affected. The fix is 9b639f5b, first included in
release 0.20260929.0. The advisory
lists TLS clients that verify server certificates and TLS servers that
verify client certificates as impacted. That
covers ATS's origin-side connections, and client-cert verification when
it's enabled. Our current minimum and our
CI pin both predate the fix. The 2026-11-24 advisory also says BoringSSL is
not affected by CVE-2026-121482 because
this feature was removed.
- rand double-free (bee44385, 2026-10-20). This bug was introduced in
0.20260616.0 and fixed in 0.20261020.0. It can
only be reached when setting up thread-local storage fails, and our current
CI pin predates it. But any minimum at
or after 0.20260616.0 has to be at or after the fix too.
The BoringSSL advisories published since then (Nov 10, 17, 24 and Dec 1) all
say BoringSSL is not affected.
Why 0.20261105.0: ML-DSA and MTC
- ML-DSA: support in libssl landed in 0.20260508.0, and in X.509 in
0.20260204.0. In 0.20261105.0, ML-DSA is only
advertised in TLS 1.3 (e2cc86c0).
- MTC: libssl has the trust_anchors extension, updated to draft-06 in
0.20261020.0.
SSL_CTX_set1_available_trust_anchors exists since 0.20260526.0.
X509_verify_cert can verify standalone MTCs
(draft-07) when X509_V_FLAG_USE_MTC_DRAFT_PLANTS_07 is set. 0.20261105.0
also includes MTC parsing fixes from
Oct 21-22 that 0.20261020.0 lacks.
Why API version 45 and not 44
BoringSSL says BORINGSSL_API_VERSION "is not meaningful" and doesn't recommend
relying on it for long. Still, it is the
only thing our CMake check can see, so the minimum should line up with it:
- CI pin c3ffc330 (API 40): no CVE fix; predates the double-free; no MTC in
crypto/x509
- 0.20260929.0 (API 43): CVE fix; has the double-free; MTC draft-05 behind a
flag
- 0.20261020.0 (API 44): both fixes; MTC draft-07 behind a flag
- 0.20261105.0 (API 45): both fixes; MTC draft-07 behind a flag <- proposed
API 44 begins at 558e6eef (Oct 15). So a minimum of 44 would still accept the
Oct 15-20 revisions that have the
double-free. API 45 begins at 76e26921 (Nov 4). Every API-45 revision includes
both fixes, so the CMake check enforces
what we actually want.
Why not the latest main
A tagged release is easier to cite and reproduce, and it's in the Bazel Central
Registry. Most of main's 98 commits
since the release are MTC follow-up work. MTC is still a draft and still
changing. On main,
X509_V_FLAG_USE_MTC_DRAFT_PLANTS_07 was removed on Nov 18 and MTC verification
is now always on, with no API version
bump. So any MTC code in ATS should check "#ifdef
X509_V_FLAG_USE_MTC_DRAFT_PLANTS_07", not the API version. I expect
we'll raise the minimum again once MTC settles.
Changes:
1. CMakeLists.txt: change set(min_bssl "27") to set(min_bssl "45"), and
update the comment above it to name
0.20261105.0 and the reason.
2. tools/build_boringssl_h3_tools.sh: BORINGSSL_COMMIT ->
3dc4b63808921e914a3fb1fa61869abc3938781b
If there are no objections, I'll open a PR with these changes.
Thanks,
Masakazu