Skip to content

fix: block the revoked eMudhra RSA intermediates - #55742

Merged
jkleinsc merged 1 commit into
45-x-yfrom
clavin/emudhra-rsa-spki-blocklist-45-x-y
Nov 11, 2026
Merged

jkleinsc merged 1 commit into
45-x-yfrom
clavin/emudhra-rsa-spki-blocklist-45-x-y

Conversation

@clavin

@clavin clavin commented Nov 11, 2026

Copy link
Copy Markdown
Member

Backport of #55738

See that PR for details.

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 22:15
@clavin clavin added backport This is a backport PR semver/patch backwards-compatible bug fixes 45-x-y labels Nov 11, 2026
@trop trop Bot mentioned this pull request Nov 11, 2026
2 of 5 tasks

@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.

Besides the inline finding, I compared the Chromium and Node lists entry by entry. All eight SHA-256 fingerprints and all 32-byte SPKI hashes are identical and appear in the same order in both. The hunk header counts are right too: Chromium is -450,7 +450,39 and Node is -1484,6 +1484,49, which moves the later Node hunks by +43 lines.

Extended reasoning...

I checked the bytes and fingerprints of patches/chromium/add_entries_to_the_spki_blocklist.patch line by line against the new kBlockedSPKIs entries in patches/node/tls_adapt_the_upstream_spki_blocklist_for_electron.patch and found no mismatches. I also counted the hunk header line totals against the added and context lines.

Comment on lines +23 to +57
+ 0x86, 0xc5, 0x41, 0x5f, 0x5e, 0xb4, 0xf6, 0xb6},
+ // 829ec444b8be3dfd2d030a0d9e7a1d0dd2a3c2c325d39589c27ac9a065bae793.pem
+ {0x04, 0xdb, 0x3b, 0x7d, 0xdf, 0x68, 0x3b, 0x1d, 0x4b, 0x5b, 0x64,
+ 0xfe, 0x74, 0x3a, 0x3a, 0x8d, 0x8c, 0x3d, 0x71, 0xf0, 0xc3, 0x39,
+ 0xd7, 0xdc, 0x25, 0xb3, 0x43, 0xe6, 0x65, 0xa9, 0xeb, 0x5b},
+ // 0427ea3cb4a7b4cb205e77a7b166d332bedb8e8ef469bc5e883169c8d0ac876d.pem
+ {0x34, 0x55, 0x68, 0x38, 0x28, 0x16, 0x88, 0xd1, 0xc9, 0x67, 0xd4,
+ 0x3d, 0x13, 0x72, 0xa1, 0xbb, 0xaf, 0x38, 0x92, 0x77, 0x22, 0x2f,
+ 0x03, 0xe1, 0x01, 0x7b, 0x18, 0xb3, 0x48, 0xa1, 0xf0, 0x0e},
+ // 6a7a93861982b664001710a0efd04c8a72f6a23e252b280911797e0bf1bd9012.pem
+ {0x84, 0x29, 0x35, 0x10, 0x35, 0xba, 0x90, 0xba, 0x14, 0xef, 0x3f,
+ 0x7a, 0xe3, 0x8c, 0xa3, 0x54, 0x80, 0x60, 0x5a, 0x02, 0x96, 0xaa,
+ 0x6c, 0x26, 0x3c, 0x6a, 0x9b, 0x26, 0xbb, 0x9a, 0x48, 0xe1},
+ // de767792e870bd32f331029fc89dc24c53f9df970dc70f1ea30cf29db3f94ba9.pem
+ {0xaa, 0x42, 0x16, 0xdc, 0x80, 0xa7, 0x29, 0x9a, 0xe6, 0xde, 0x08,
+ 0x44, 0x4b, 0xea, 0x2c, 0x58, 0x8d, 0xc8, 0x73, 0x63, 0x1e, 0xbc,
+ 0x56, 0x3c, 0x07, 0x76, 0xd8, 0x3a, 0x1b, 0x61, 0xe3, 0xce},
+ // e072b30d7f5b8bcf0080e51d6cc7765767072db2319e9bb1cd3d02a086898750.pem
+ {0xc2, 0x69, 0x0b, 0x6b, 0xf3, 0x5a, 0x93, 0x64, 0xe6, 0x97, 0x73,
+ 0x5e, 0xc6, 0x30, 0xbf, 0xd9, 0xd2, 0xcd, 0x59, 0x04, 0x0e, 0x39,
+ 0x08, 0xa6, 0x67, 0x65, 0x16, 0x8e, 0x32, 0x82, 0xb0, 0x4e},
+ // c3bc2b480fb1a1ab4d0ba1ed6c7b53e096447045733620991a32d6798d77aa20.pem
+ {0x1a, 0x94, 0x2e, 0x39, 0x25, 0xb8, 0x09, 0x89, 0x6b, 0x4b, 0x29,
+ 0x1a, 0x8c, 0xd2, 0xe7, 0xbc, 0x5f, 0x1d, 0x53, 0x3a, 0xa5, 0x23,
+ 0xb8, 0x35, 0x3b, 0x2d, 0xf3, 0x77, 0xb0, 0xf0, 0xad, 0xbe},
+ // 913f1a04b02814b604ac5275acb201b1c802b2c0f1b4986fb1a1eb595958e072.pem
+ {0x01, 0x69, 0x61, 0x35, 0x48, 0x12, 0x3d, 0xab, 0x14, 0xaf, 0xff,
+ 0xcb, 0x5a, 0x3f, 0x0e, 0x80, 0x4c, 0x70, 0xac, 0x90, 0x3f, 0x29,
+ 0xec, 0xad, 0x55, 0xed, 0x43, 0xdc, 0x75, 0xf1, 0x38, 0x81},
+ // ebac91b8ec9853323779edb393c595fadb29dd4ddb20c47e336f2a021684f27b.pem
+ {0xc0, 0x73, 0xef, 0xb3, 0x14, 0x22, 0xff, 0x4d, 0xb9, 0x9d, 0xc2,
+ 0x4d, 0x74, 0x42, 0x43, 0x8e, 0x94, 0x2c, 0x73, 0xcd, 0x3c, 0x61,
+ 0xb5, 0x29, 0xa8, 0xba, 0x32, 0x54, 0x2e, 0x94, 0x6b, 0x86}
};

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.

🔴 Chromium may still trust certificates from the eMudhra intermediates if it looks up kSPKIBlockList by binary search. The eight hashes are appended after the 0xec... entry, but they start with 0x04, 0x34, 0x84, 0xaa, 0xc2, 0x1a, 0x01 and 0xc0, so the array is no longer in byte order. I can't see net/cert from this standalone clone. Can you confirm whether CertVerifyProc's lookup needs the list sorted, and whether a BlocklistIsSorted-style unit test checks it? Fix: if the lookup needs sorted input, put each hash at its memcmp-sorted position in net/cert/cert_verify_proc_blocklist.inc instead of appending all eight at the end. [also at: patches/chromium/add_entries_to_the_spki_blocklist.patch:56 - The eight eMudhra hashes are appended after 0xec…, so the list is no longer in ascending order. A sorted lookup could then miss the new revoked intermediates, and possibly some existing ones.]

Why this was flagged

The new patch adds eight 32-byte SPKI hashes to the end of the array in net/cert/cert_verify_proc_blocklist.inc (patch lines 23-57). The previous last entry starts with 0xec (patch line 21). Every new entry sorts before it: 0x04, 0x34, 0x84, 0xaa, 0xc2, 0x1a, 0x01, 0xc0. Upstream Chromium has historically kept this list memcmp-sorted and checked it with std::binary_search (with a unit test asserting the order). If that is still the case at the pinned revision, binary search over the now-unsorted array can miss these hashes. A leaf chaining through "EM DV TLS CA - G2B" or a sibling intermediate would then still verify in Electron's network stack. Neither the hunk-count checks nor the Node-side list catches this: Node's kBlockedSPKIs has its own lookup, and the misordering only affects Chromium's net verifier.

Verification: patches/chromium/add_entries_to_the_spki_blocklist.patch:20-22 leaves the old last entry {0xec, 0x4f, 0xfa, ...} at the end of the hunk. Lines 24-55 then append entries that start with 0x04 (l.25), 0x34 (l.29), 0x84 (l.33), 0xaa (l.37), 0xc2 (l.41), 0x1a (l.45), 0x01 (l.49) and 0xc0 (l.53). Every one sorts before 0xec under memcmp, and they are not in order among themselves.

@jkleinsc
jkleinsc enabled auto-merge (squash) November 11, 2026 22:49
@jkleinsc
jkleinsc merged commit 3025e04 into 45-x-y Nov 11, 2026
110 checks passed
@jkleinsc
jkleinsc deleted the clavin/emudhra-rsa-spki-blocklist-45-x-y branch November 11, 2026 23:24
@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

45-x-y backport This is a backport PR semver/patch backwards-compatible bug fixes

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

2 participants