Repository navigation
Take musl 1.2.6-r6 from Alpine 3.25 to clear CVE-2026-107891 - #10
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
Docker Scout reports CVE-2026-107891 (8.1 high) for
musl 1.2.6-r3, with the fix listed as1.2.6-r6.Alpine 3.24's
1.2.6-r3already carries the CVE patch (its APKBUILD lists the CVE under1.2.6-r3, and the patch has the same code changes as the one in edge). But1.2.6-r6is the Alpine 3.25 version, and Scout goes by that number.alpine:3.25is not published as a Docker image yet, so the base image cannot move.Fix
The runtime stage installs
muslandmusl-utils>=1.2.6-r6from the Alpine v3.25 repository, for that oneapk addonly:/etc/apk/repositoriesin the image stays on 3.24.1.2.6-r6has the same ABI (so:libc.musl-x86_64.so.1=1).popenrace fix,fstatatwith a NULL path, and apaths.hheader change.MUSL_REPOSITORYis a build argument with a comment to remove it once the base image isalpine:3.25or later.Testing (local build)
musl 1.2.6-r6,musl-utils 1.2.6-r6,zlib 1.4-r0installed;apk verifypasses, so the 3.25 packages are signed with keys the 3.24 image trusts.Releasing
After merging: