Skip to content

[staging-23.05] libwebp: cherry-pick suspected upstream fix for CVE-2023-4863#254789

Merged
mweinelt merged 1 commit intoNixOS:staging-23.05from
delroth:backport-CVE-2023-4863
Sep 12, 2023
Merged

[staging-23.05] libwebp: cherry-pick suspected upstream fix for CVE-2023-4863#254789
mweinelt merged 1 commit intoNixOS:staging-23.05from
delroth:backport-CVE-2023-4863

Conversation

@delroth
Copy link
Contributor

@delroth delroth commented Sep 12, 2023

Description of changes

Backport of #254775 to 23.05

This CVE is critical severity and has been exploited in the wild. It was reported as being a Chromium vulnerability, but it seems to in fact impact libwebp (and thus all its downstream users). There is however no official confirmation of this yet.

The upstream fix patch (webmproject/libwebp@902bc919) does not cleanly apply onto 1.3.1, so we vendor a very slightly modified version which does cleanly apply. This is my original work, so YMMV on whether you trust it or not, reviews very much welcomed :-)

(cherry picked from commit 0f11042)

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 23.11 Release Notes (or backporting 23.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

This CVE is critical severity and has been exploited in the wild. It was
reported as being a Chromium vulnerability, but it seems to in fact
impact libwebp (and thus all its downstream users). There is however no
official confirmation of this yet.

The upstream fix patch (webmproject/libwebp@902bc919) does not cleanly
apply onto 1.3.1, so we vendor a very slightly modified version which
does cleanly apply. This is my original work, so YMMV on whether you
trust it or not, reviews very much welcomed :-)

(cherry picked from commit 0f11042)
@delroth delroth requested a review from mweinelt September 12, 2023 16:22
@yu-re-ka yu-re-ka changed the title libwebp: cherry-pick suspected upstream fix for CVE-2023-4863 [staging-23.05] libwebp: cherry-pick suspected upstream fix for CVE-2023-4863 Sep 12, 2023
@lilyinstarlight lilyinstarlight added the 1.severity: security Issues which raise a security issue, or PRs that fix one label Sep 12, 2023
@mweinelt
Copy link
Member

@ofborg build libwebp

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

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants