libxml2: add follow-up patch for CVE-2026-0992
PATCH 1/1 libxml2: add follow-up patch for CVE-2026-0992
From: Peter Marko <[email protected]>
References:
* https://gitlab.gnome.org/GNOME/libxml2/-/issues/1019
* https://gitlab.gnome.org/GNOME/libxml2/-/merge_requests/377
Signed-off-by Peter Marko <[email protected]>
---
...2026-0992.patch => CVE-2026-0992-01.patch} | 0
.../libxml/libxml2/CVE-2026-0992-02.patch | 336 ++++++++++++++++++
.../libxml/libxml2/CVE-2026-0992-03.patch | 33 ++
meta/recipes-core/libxml/libxml2_2.15.1.bb | 4 +-
4 files changed, 372 insertions(+), 1 deletion(-)
rename meta/recipes-core/libxml/libxml2/{CVE-2026-0992.patch => CVE-2026-0992-01.patch} (100%)
create mode 100644 meta/recipes-core/libxml/libxml2/CVE-2026-0992-02.patch
create mode 100644 meta/recipes-core/libxml/libxml2/CVE-2026-0992-03.patchmeta/recipes-core/libxml/libxml2/CVE-2026-0992-01.patch renamed from meta/recipes-core/libxml/libxml2/CVE-2026-0992.patch +0 -0
meta/recipes-core/libxml/libxml2/CVE-2026-0992-02.patch new file +336 -0
336 lines not on this page · raw message
meta/recipes-core/libxml/libxml2/CVE-2026-0992-03.patch new file +33 -0
@@ -0,0 +1,33 @@ +From deed3b7873dff30b7f87f7f33154c9932a772522 Mon Sep 17 00:00:00 2001 +From: Daniel Garcia Moreno <[email protected]> +Date: Sun, 18 Jan 2026 19:47:11 +0100 +Subject: [PATCH] catalog: Do not check value for duplication nextCatalog + +The value field stores the path as it appears in the catalog definition, +the URL is built using xmlBuildURI that changes the relative paths to +absolute. + +This change fixes the issue of using relative path to the same catalog +in the same file. + +Fix https://gitlab.gnome.org/GNOME/libxml2/-/issues/1040 + +CVE: CVE-2026-0992 +Upstream-Status: Backport [https://gitlab.gnome.org/GNOME/libxml2/-/commit/deed3b7873dff30b7f87f7f33154c9932a772522] +Signed-off-by: Peter Marko <[email protected]> +--- + catalog.c | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/catalog.c b/catalog.c +index eb889162..ba9ee7ae 100644 +--- a/catalog.c ++++ b/catalog.c +@@ -1243,7 +1243,6 @@ xmlParseXMLCatalogNode(xmlNodePtr cur, xmlCatalogPrefer prefer, + while (prev != NULL) { + if ((prev->type == XML_CATA_NEXT_CATALOG) && + (xmlStrEqual (prev->URL, entry->URL)) && +- (xmlStrEqual (prev->value, entry->value)) && + (prev->prefer == entry->prefer) && + (prev->group == entry->group)) { + if (xmlDebugCatalogs)
meta/recipes-core/libxml/libxml2_2.15.1.bb +3 -1
@@ -16,12 +16,14 @@ inherit gnomebase SRC_URI += "http://www.w3.org/XML/Test/xmlts20130923.tar;subdir=${BP};name=testtar \ file://CVE-2026-0990.patch \ - file://CVE-2026-0992.patch \ + file://CVE-2026-0992-01.patch \ file://run-ptest \ file://install-tests.patch \ file://0001-Revert-cmake-Fix-installation-directories-in-libxml2.patch \ file://0001-testlimits-optionally-accept-timeout-input.patch \ file://CVE-2026-0989.patch \ + file://CVE-2026-0992-02.patch \ + file://CVE-2026-0992-03.patch \ " SRC_URI[archive.sha256sum] = "c008bac08fd5c7b4a87f7b8a71f283fa581d80d80ff8d2efd3b26224c39bc54c"
Quoted 7 lines · Peter Marko via lists.openembedded.org
From: Peter Marko <[email protected]>
References:
* https://gitlab.gnome.org/GNOME/libxml2/-/issues/1019
* https://gitlab.gnome.org/GNOME/libxml2/-/merge_requests/377Signed-off-by Peter Marko <[email protected]>
Quoted 9 lines
---
...2026-0992.patch => CVE-2026-0992-01.patch} | 0
.../libxml/libxml2/CVE-2026-0992-02.patch | 336 ++++++++++++++++++
.../libxml/libxml2/CVE-2026-0992-03.patch | 33 ++
meta/recipes-core/libxml/libxml2_2.15.1.bb | 4 +-
4 files changed, 372 insertions(+), 1 deletion(-)
rename meta/recipes-core/libxml/libxml2/{CVE-2026-0992.patch => CVE-2026-0992-01.patch} (100%)
create mode 100644 meta/recipes-core/libxml/libxml2/CVE-2026-0992-02.patch
create mode 100644 meta/recipes-core/libxml/libxml2/CVE-2026-0992-03.patchNote to the master review team: I have related CVE fixing patches queued for whinlatter and scarthgap.
This patch is currently in contrib/mathieu/master-next-success.
Signature · 2 lines
Yoann Congal Smile ECS