Repository navigation
fix: block the revoked eMudhra RSA intermediates - #55738
Conversation
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]>
|
Release note looks good now. |
There was a problem hiding this comment.
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.
|
Release Notes Persisted
|
|
I was unable to backport this PR to "45-x-y" cleanly; |
|
I was unable to backport this PR to "43-x-y" cleanly; |
|
I was unable to backport this PR to "44-x-y" cleanly; |
|
I have automatically backported this PR to "46-x-y", please check out #55741 |
### 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]>
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 - G1andemSign Root CS CA - G2, and Electron doesn't consume CRLSet, so this adds their SPKI hashes to both lists:add_entries_to_the_spki_blocklist.patchthat adds the eight hashes to the end ofkSPKIBlockList. 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.kBlockedSPKIsin the existingtls_adapt_the_upstream_spki_blocklist_for_electron.patch. Node v26.13.0 only has the ECDSA set.How the hashes were derived and checked:
e7568fe6…entry exactly.git amonto the pinned upstream files (for Node, afterfix_handle_boringssl_and_openssl_incompatibilities.patch). Every resulting file matches the blob hash recorded in the patch'sindexline.829ec444…bae79304db3b7d…a9eb5b0427ea3c…ac876d34556838…a1f00e6a7a9386…bd901284293510…9a48e1de767792…f94ba9aa4216dc…61e3cee072b30d…898750c2690b6b…82b04ec3bc2b48…77aa201a942e39…f0adbe913f1a04…58e07201696135…f13881ebac91b8…84f27bc073efb3…946b86Each part can be dropped once the hashes land upstream in Chromium or Node.
Checklist
npm testpasses🤖 Generated with Claude Code
Release Notes
Notes: Stopped trusting certificates issued by
eMudhra's revoked RSA intermediates.