CVE-2023-4863: libwebp, backport upstream fix (no version bump) - #39
CVE-2023-4863: libwebp, backport upstream fix (no version bump)#39jasonodoom wants to merge 2 commits into
Conversation
Comparison against the upstream fixTranscription lane (this PR's payload). The added and removed code lines of the embedded patch (src/dec/vp8l_dec.c, src/utils/huffman_utils.c, src/utils/huffman_utils.h) are identical to the upstream fix commit libwebp 2af26267, normalized for whitespace; the only difference is the git format-patch trailer line, which is not code. The cross-family Reviewer attested this; the check here was recomputed independently against the bundle's upstream-fix.patch. The Linux cert (trace run 33975629667) built libwebp at the pinned revision with and without the patch: the unpatched arm fired the discriminator, the patched arm was clean. Blind-authoring lane (separate measurement, not this payload). When the same CVE was given to claude-opus-4-8 with only the vulnerability description and the pre-fix source, never the upstream patch, the graded result against the human fix was WRONG: it added a check after BuildHuffmanTable had already written into the table, so the heap overflow remained. Report: trace data/reports/authoring-accuracy-vs-human-2026-09-04.json. The gap between the two lanes is the case for the gate. This 340-line fix is the largest backport on the fork so far, and the blind lane did not reproduce its chained-allocation redesign. |
This PR authors the upstream fix as an in-tree patch against the current nixpkgs version (no version bump). An agent generated it; a cross-family reviewer verified it transcribes the upstream commit, and a cert proved the bundled reproducer goes red→green. A human maintainer must still confirm sufficiency before merging:
Opened as a draft deliberately — mark Ready-for-review only after the boxes above are checked.
Evidence: CVE-2023-4863 (human-review-required) trace bundle
d23c4c84ab95858ehttps://github.com/Ad-Astra-Computing/trace/.github/workflows/steward.yml@refs/heads/mainhttps://token.actions.githubusercontent.com92f41becba5701c37372ad1a990a31893779b43dVerify locally
Generated by trace.