8000 SECURITY: microvm-rootfs: distrust emSign ECC Root CA - G3 via ca-certificates-bundle 20261020-r0 (CVE-2026-111943) by bryan-minimal · Pull Request #947 · gominimal/pkgs · GitHub
[go: up one dir, main page]

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions packages/microvm-rootfs/build.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,24 @@ in
"libssl3-3.5.9-r0"
"20ac252b276d73f2c69c1d25f84537c7fba81caefc026c6be1094b394af2082e"
"05e3393fb95aa5751ca2f9d242f659f6cff82c1cc7767cc2df4a086f7ad01877",

# The CA trust store, same override pattern. alpine-minirootfs-3.24.1 ships
# ca-certificates-bundle 20260611-r0 (119 roots), which still trusts
# "emSign ECC Root CA - G3" (SHA-256 86A1ECBA...A36BBE6B). Its operator,
# eMudhra, had an intermediate key compromised (CVE-2026-111943, Mozilla
# bug 2083449) and Mozilla distrusted the root; 20261020-r0 (118 roots) is
# Alpine's rebuild without it. The package is a single file,
# etc/ssl/certs/ca-certificates.crt (plus the etc/ssl/cert.pem and
# etc/ssl1.1 symlinks), and has no install script, so overlaying it replaces
# the base layer's bundle outright; build.sh's apk-db reconcile then moves
# the recorded `V:` to 20261020-r0.
#
# DROP THIS once `alpine_release` reaches a minirootfs carrying
# >= 20261020-r0.
apk
"ca-certificates-bundle-20261020-r0"
"d0a573c27d337c369ad3abe3f39f09ffe67b95af23861577a8d134738375176a"
"bb008f6d214b6af7576324659856fb63dc8dcb4373f8345ff706388696f1254d",
],

cmd = "./build.sh",
Expand Down
24 changes: 22 additions & 2 deletions packages/microvm-rootfs/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ tar -xzf "${minirootfs[0]}" -C "$STAGE"

# Overlay the pinned .apk closure. An .apk is a gzipped tar, so it is unpacked
# with tar rather than apk — the guest root is read-only and nothing in the
# closure has an install script to run (the busybox applet symlinks and the CA
# bundle that do need one are already applied in the minirootfs). Unpack via a
# closure has an install script to run (the busybox applet symlinks that do need
# one are already applied in the minirootfs; ca-certificates-bundle, which the
# closure overrides, is a single pre-generated file with no script). Unpack via a
# scratch dir so apk's own metadata entries — dotfiles at the archive root
# (.PKGINFO, .SIGN.*, .pre-/.post-install, .trigger) — can be dropped before
# the payload is merged into the staging tree.
Expand Down Expand Up @@ -159,6 +160,25 @@ while read -r name ver; do
done < "$OVERLAID"
rm -f "$OVERLAID"

# CA trust store: refuse to ship a bundle that still trusts a distrusted root.
# "emSign ECC Root CA - G3" (SHA-256 86A1ECBA089C4A8D3BBE2734C612BA341D813E04
# 3CF9E8A862CD5C57A36BBE6B) was distrusted by Mozilla after eMudhra's
# intermediate key compromise (CVE-2026-111943, Mozilla bug 2083449). The
# minirootfs base layer still carries it; build.ncl overlays a fixed
# ca-certificates-bundle. The needle is a line of the root's base64 PEM body
# (its public key), so it matches the PEM regardless of the comment headers
# around it. If the override is dropped while the base layer is still old, or
# an override carries an old bundle, this fails instead of shipping the root.
CA_BUNDLE="$STAGE/etc/ssl/certs/ca-certificates.crt"
[ -s "$CA_BUNDLE" ] || {
echo "ERROR: no CA bundle at /etc/ssl/certs/ca-certificates.crt in the staged rootfs" >&2
exit 1
}
if grep -q 'djAQBgcqhkjOPQIBBgUrgQQAIgNiAAQjpQy4LRL1KPOxst3iAhKAnjlfSU2fySU0' "$CA_BUNDLE"; then
echo "ERROR: the staged CA bundle still trusts emSign ECC Root CA - G3 (CVE-2026-111943)" >&2
exit 1
fi

# Per-VM writable volume mountpoint. The guest minimald mounts /dev/vdb here on
# first boot (after formatting it with mkfs.ext4). The root image is mounted
# read-only, so this directory cannot be created at runtime — it must ship in
Expand Down
Loading
0