Skip to content

Take musl 1.2.6-r6 from Alpine 3.25 to clear CVE-2026-107891 - #10

Merged
zamibd merged 1 commit into
mainfrom
fix-musl-cve
Nov 28, 2026
Merged

zamibd merged 1 commit into
mainfrom
fix-musl-cve

Conversation

@zamibd

@zamibd zamibd commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Problem

Docker Scout reports CVE-2026-107891 (8.1 high) for musl 1.2.6-r3, with the fix listed as 1.2.6-r6.

Alpine 3.24's 1.2.6-r3 already carries the CVE patch (its APKBUILD lists the CVE under 1.2.6-r3, and the patch has the same code changes as the one in edge). But 1.2.6-r6 is the Alpine 3.25 version, and Scout goes by that number. alpine:3.25 is not published as a Docker image yet, so the base image cannot move.

Fix

The runtime stage installs musl and musl-utils >=1.2.6-r6 from the Alpine v3.25 repository, for that one apk add only:

  • /etc/apk/repositories in the image stays on 3.24.
  • musl has no dependencies and 1.2.6-r6 has the same ABI (so:libc.musl-x86_64.so.1=1).
  • The extra changes in r6 are small: a popen race fix, fstatat with a NULL path, and a paths.h header change.
  • MUSL_REPOSITORY is a build argument with a comment to remove it once the base image is alpine:3.25 or later.

Testing (local build)

  • musl 1.2.6-r6, musl-utils 1.2.6-r6, zlib 1.4-r0 installed; apk verify passes, so the 3.25 packages are signed with keys the 3.24 image trusts.
  • Trivy, all severities: 0 vulnerabilities.
  • Smoke test passes, including HTTP/3.
  • 50,000 HTTP/2 requests with 0 failures, then a reload with no errors.
  • hadolint passes.

Releasing

After merging:

git tag v1.31.10-1
git push origin v1.31.10-1

Alpine 3.24's musl 1.2.6-r3 already carries the patch for
CVE-2026-107891, but Docker Scout lists the fix as 1.2.6-r6, the version
in Alpine 3.25, and reports the image as vulnerable. alpine:3.25 is not
yet published as a Docker image.

musl and musl-utils 1.2.6-r6 have the same ABI and no dependencies, so
the runtime stage installs them from the v3.25 repository for that one
command; the image's repository list stays on 3.24. The package
signatures verify against the keys in the 3.24 image. Remove
MUSL_REPOSITORY once the base image is alpine:3.25 or later.
@zamibd
zamibd merged commit 6ab58b1 into main Nov 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant