From 5b7873647225dbb427157933eb8e04485fb5144c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gutyina=20Gerg=C5=91?= Date: Thu, 17 Jul 2025 00:38:14 +0200 Subject: [PATCH] libxml2_13: add patch for CVE-2025-49794 and CVE-2025-49796 --- pkgs/development/libraries/libxml2/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/libraries/libxml2/default.nix b/pkgs/development/libraries/libxml2/default.nix index 8bc4ddcdd079..762f3c554217 100644 --- a/pkgs/development/libraries/libxml2/default.nix +++ b/pkgs/development/libraries/libxml2/default.nix @@ -2,6 +2,7 @@ lib, callPackage, fetchFromGitLab, + fetchpatch2, }: let @@ -19,6 +20,11 @@ let # same as upstream patch but fixed conflict and added required import: # https://gitlab.gnome.org/GNOME/libxml2/-/commit/acbbeef9f5dcdcc901c5f3fa14d583ef8cfd22f0.diff ./CVE-2025-6021.patch + (fetchpatch2 { + name = "CVE-2025-49794-49796.patch"; + url = "https://gitlab.gnome.org/GNOME/libxml2/-/commit/f7ebc65f05bffded58d1e1b2138eb124c2e44f21.patch"; + hash = "sha256-k+IGq6pbv9EA7o+uDocEAUqIammEjLj27Z+2RF5EMrs="; + }) ]; freezeUpdateScript = true; extraMeta = {