Skip to content

fix: block the revoked eMudhra RSA intermediates - #55738

Merged
MarshallOfSound merged 1 commit into
mainfrom
clavin/emudhra-rsa-spki-blocklist
Nov 11, 2026
Merged

MarshallOfSound merged 1 commit into
mainfrom
clavin/emudhra-rsa-spki-blocklist

Conversation

@clavin

@clavin clavin commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Description of Change

Follow-up to #55126. On Nov 7 eMudhra revoked the eight RSA-4096 intermediates (G2B/G2C) generated in the same key ceremony as the ECDSA set blocked in October. Their keys weren't truncated, but they were handled outside a cryptographic module, so eMudhra can't show they stayed confidential (Bugzilla 2083449, comment 82, Appendix C). They still chain to emSign Root TLS CA - G1 and emSign Root CS CA - G2, and Electron doesn't consume CRLSet, so this adds their SPKI hashes to both lists:

  • Chromium: a new add_entries_to_the_spki_blocklist.patch that adds the eight hashes to the end of kSPKIBlockList. The October version of this patch was dropped once upstream CL 8618876 shipped the ECDSA set, and upstream at 159.0.8154.0 doesn't have the RSA set.
  • Node: the eight hashes are added to kBlockedSPKIs in the existing tls_adapt_the_upstream_spki_blocklist_for_electron.patch. Node v26.13.0 only has the ECDSA set.

How the hashes were derived and checked:

  • Each certificate was fetched from crt.sh by the fingerprint in the incident report. Its SHA-256, subject and serial all match the report.
  • The SPKI hash is SHA-256 over the DER SubjectPublicKeyInfo. The same computation reproduces the existing e7568fe6… entry exactly.
  • Both patches apply cleanly with git am onto the pinned upstream files (for Node, after fix_handle_boringssl_and_openssl_incompatibilities.patch). Every resulting file matches the blob hash recorded in the patch's index line.
Certificate Fingerprint (SHA-256) SPKI (SHA-256)
EM DV TLS CA - G2B 829ec444…bae793 04db3b7d…a9eb5b
EM DV TLS CA - G2C 0427ea3c…ac876d 34556838…a1f00e
EM OV TLS CA - G2B 6a7a9386…bd9012 84293510…9a48e1
EM OV TLS CA - G2C de767792…f94ba9 aa4216dc…61e3ce
EM EV TLS CA - G2B e072b30d…898750 c2690b6b…82b04e
EM EV TLS CA - G2C c3bc2b48…77aa20 1a942e39…f0adbe
EM OV CS CA - G2B 913f1a04…58e072 01696135…f13881
EM OV CS CA - G2C ebac91b8…84f27b c073efb3…946b86

Each part can be dropped once the hashes land upstream in Chromium or Node.

Checklist

🤖 Generated with Claude Code

Release Notes

Notes: Stopped trusting certificates issued by eMudhra's revoked RSA intermediates.

eMudhra revoked the eight RSA (G2B/G2C) intermediates from the same key
ceremony as the ECDSA set blocked in October, because their private keys
were handled outside a cryptographic module. They still chain to roots
Electron trusts, so add their SPKI hashes to both the Chromium net
blocklist and Node's list.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@clavin
clavin requested a review from a team as a code owner November 11, 2026 20:54
@clavin clavin added semver/patch backwards-compatible bug fixes target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. target/45-x-y PR should also be added to the "45-x-y" branch. target/46-x-y PR should also be added to the "46-x-y" branch. labels Nov 11, 2026
@release-clerk

release-clerk Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Release note looks good now.

@MarshallOfSound
MarshallOfSound enabled auto-merge (squash) November 11, 2026 20:55
@MarshallOfSound MarshallOfSound added the fast-track 🚅 Indicates that this PR is intended to bypass the 24 hour rule. Needs approval from Releases label Nov 11, 2026

@claude claude Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed this PR from a standalone clone, with no Chromium or Node tree available, and found no new bugs. It changes TLS certificate trust in both network stacks, and /patches/ has code owners, so a human look is still worthwhile.

What was reviewed:

  • I compared the eight new arrays in the Chromium and Node patches entry by entry. They match byte for byte, each has 32 bytes, and each matches the fingerprint/SPKI prefixes in the description table.
  • Hunk headers add up: Chromium -450,7 +450,39, and Node -1437,6 +1437,49. The 43-line shift explains the later +1537 and +1646 offsets. The trailing comma and closing }; placement in the Chromium array look right.
  • I didn't check whether the hashes are the real SPKI digests of the eMudhra certificates. Reading can't settle that. I also didn't build or apply the patches; CI covers that.
Extended reasoning...

The change adds eight SHA-256 SPKI hashes to Chromium's kSPKIBlockList, through a new patch registered in patches/chromium/.patches, and to Node's kBlockedSPKIs, through the existing tls_adapt_the_upstream_spki_blocklist_for_electron.patch. That is a security-sensitive surface because it decides which certificate chains Electron trusts. The two lists are identical, and the patch line counts and offsets are internally consistent. Whether the hashes are correct depends on the external certificates, which can't be checked from the repo. Everything under /patches/ is assigned to a code-owner team in CODEOWNERS.

@MarshallOfSound
MarshallOfSound merged commit 0b0dd43 into main Nov 11, 2026
104 checks passed
@MarshallOfSound
MarshallOfSound deleted the clavin/emudhra-rsa-spki-blocklist branch November 11, 2026 22:02
@release-clerk

release-clerk Bot commented Nov 11, 2026

Copy link
Copy Markdown

Release Notes Persisted

Stopped trusting certificates issued by eMudhra's revoked RSA intermediates.

@trop

trop Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "45-x-y" cleanly;
you will need to perform this backport manually.

@trop

trop Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "43-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot removed the target/45-x-y PR should also be added to the "45-x-y" branch. label Nov 11, 2026
@trop

trop Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

I was unable to backport this PR to "44-x-y" cleanly;
you will need to perform this backport manually.

@trop trop Bot added needs-manual-bp/45-x-y needs-manual-bp/43-x-y and removed target/43-x-y PR should also be added to the "43-x-y" branch. target/44-x-y PR should also be added to the "44-x-y" branch. labels Nov 11, 2026
@trop

trop Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "46-x-y", please check out #55741

@trop trop Bot added in-flight/46-x-y and removed target/46-x-y PR should also be added to the "46-x-y" branch. labels Nov 11, 2026
@trop

trop Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

@clavin has manually backported this PR to "45-x-y", please check out #55742

@trop

trop Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

@clavin has manually backported this PR to "44-x-y", please check out #55743

@trop

trop Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

@clavin has manually backported this PR to "43-x-y", please check out #55744

@trop trop Bot added in-flight/45-x-y in-flight/44-x-y in-flight/43-x-y merged/46-x-y PR was merged to the "46-x-y" branch. merged/44-x-y PR was merged to the "44-x-y" branch. merged/45-x-y PR was merged to the "45-x-y" branch. merged/43-x-y PR was merged to the "43-x-y" branch. and removed needs-manual-bp/44-x-y needs-manual-bp/43-x-y in-flight/46-x-y in-flight/44-x-y in-flight/45-x-y in-flight/43-x-y labels Nov 11, 2026
dylan-conway added a commit to oven-sh/bun that referenced this pull request Dec 2, 2026
### What does this PR do?

A certificate chain that holds the key of one of eight more eMudhra
intermediate CAs now fails with `CERT_REVOKED`: EM DV/OV/EV TLS CA and
EM OV CS CA, each as G2B and G2C.

eMudhra revoked them because it cannot show how their private keys were
handled ([incident
report](https://bugzilla.mozilla.org/show_bug.cgi?id=2083449#c82)). No
leak is known. The six TLS ones chain to the bundled emSign Root CA -
G1, and revocation is not checked by default, so they were still
accepted.

This adds eight entries to the list from #46300. Node does not have
them; Electron does (electron/electron#55738).

As with the existing entries, `ca` does not override the block. The
report says the certificates these CAs issued have been replaced.

Not changed: G1 and its other intermediates, such as those of InCommon,
stay trusted.

### How did you verify your code works?

- The hashes were computed from the certificates, whose fingerprints and
serials match the report. They equal those of Electron.
- Eight new tests in `node-tls-cert.test.ts` fail on main and pass here.
- With a forged leaf under each CA, `node:tls` (client and server),
`node:https`, `fetch`, `WebSocket`, `Bun.connect`, `node:quic` and `bun
install` go to `CERT_REVOKED`. For the six TLS ones main only objects to
the forged signature. Valid chains and other chains under G1 give the
same results as on main.
- Five of the eight copies cross-signed by AAA Certificate Services were
fetched and are blocked; the other three share key identifiers.

Run on Linux x64 debug only. `fetch` over HTTP/3 reports one error for
every refusal, so it shows no difference here.

---
_Generated by [Claude Code](https://claude.ai/code)_

Co-authored-by: Claude <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

47-x-y fast-track 🚅 Indicates that this PR is intended to bypass the 24 hour rule. Needs approval from Releases merged/43-x-y PR was merged to the "43-x-y" branch. merged/44-x-y PR was merged to the "44-x-y" branch. merged/45-x-y PR was merged to the "45-x-y" branch. merged/46-x-y PR was merged to the "46-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants