Skip to contentSkip to conversation

libxml2: Upgrade 2.11.5 -> 2.12.5

PATCH In review [email protected] 4 participants 4 messages Feb 23, 2024 – Feb 24, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libxml2: Upgrade 2.11.5 -> 2.12.5

From: Simone Weiß <[email protected]>

Upgraded to address CVE-2024-25062

License-Update: hash.c was rewritten and now also has MIT license, trio was totally removed, hence remove license checksum as well. Files are not mentioned as exception in overall license any more, therefore, checksum changed there as well.

Previous upgrades of libxml2 caused issues when building libsoup, this in the meantime has been adressed via commit "9f57bfb74e280827" ("libsoup-2.4: Fix build with clang-17 and libxml2-2.12") already.

Changes:
- [CVE-2024-25062] xmlreader: Don't expand XIncludes when backtracking
- parser: Fix crash in xmlParseInNodeContext with HTML documents

---
 meta/recipes-core/libxml/libxml2/install-tests.patch      | 8 ++++----
 .../libxml/{libxml2_2.11.5.bb => libxml2_2.12.5.bb}       | 8 +++-----
 2 files changed, 7 insertions(+), 9 deletions(-)
 rename meta/recipes-core/libxml/{libxml2_2.11.5.bb => libxml2_2.12.5.bb} (91%)
meta/recipes-core/libxml/libxml2/install-tests.patch +4 -4
index 14ccce5873..4bddf9f05e 100644
@@ -1,4 +1,4 @@
-From 3fc716357ce1372d9418dc86f24315b34d9808de Mon Sep 17 00:00:00 2001
+From 582af12c9e89cd3d7c93c63756acb6e8180a776c Mon Sep 17 00:00:00 2001
 From: Ross Burton <[email protected]>
 Date: Mon, 5 Dec 2022 17:02:32 +0000
 Subject: [PATCH] add yocto-specific install-ptest target
@@ -13,11 +13,11 @@ Signed-off-by: Ross Burton <[email protected]>
  1 file changed, 10 insertions(+)
 
 diff --git a/Makefile.am b/Makefile.am
-index 5bc4018..57d27af 100644
+index 0a49d37..1097c63 100644
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -26,6 +26,16 @@ check_PROGRAMS = \
- 	testlimits \
+@@ -27,6 +27,16 @@ check_PROGRAMS = \
+ 	testparser \
  	testrecurse
  
 +ptestdir=$(libexecdir)
meta/recipes-core/libxml/libxml2_2.12.5.bb renamed from meta/recipes-core/libxml/libxml2_2.11.5.bb +3 -5
similarity index 91%
rename from meta/recipes-core/libxml/libxml2_2.11.5.bb
rename to meta/recipes-core/libxml/libxml2_2.12.5.bb
index 44336c25e1..01e23b21cc 100644
@@ -4,10 +4,8 @@ HOMEPAGE = "https://gitlab.gnome.org/GNOME/libxml2"
 BUGTRACKER = "http://bugzilla.gnome.org/buglist.cgi?product=libxml2"
 SECTION = "libs"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://Copyright;md5=2044417e2e5006b65a8b9067b683fcf1 \
-                    file://hash.c;beginline=6;endline=15;md5=e77f77b12cb69e203d8b4090a0eee879 \
-                    file://list.c;beginline=4;endline=13;md5=b9c25b021ccaf287e50060602d20f3a7 \
-                    file://trio.c;beginline=5;endline=14;md5=cd4f61e27f88c1d43df112966b1cd28f"
+LIC_FILES_CHKSUM = "file://Copyright;md5=fec7ecfe714722b2bb0aaff7d200c701 \
+                    file://list.c;beginline=4;endline=13;md5=b9c25b021ccaf287e50060602d20f3a7"
 
 DEPENDS = "zlib virtual/libiconv"
 
@@ -19,7 +17,7 @@ SRC_URI += "http://www.w3.org/XML/Test/xmlts20130923.tar;subdir=${BP};name=testt
            file://install-tests.patch \
            "
 
-SRC_URI[archive.sha256sum] = "3727b078c360ec69fa869de14bd6f75d7ee8d36987b071e6928d4720a28df3a6"
+SRC_URI[archive.sha256sum] = "a972796696afd38073e0f59c283c3a2f5a560b5268b4babc391b286166526b21"
 SRC_URI[testtar.sha256sum] = "c6b2d42ee50b8b236e711a97d68e6c4b5c8d83e69a2be4722379f08702ea7273"
 
 # Disputed as a security issue, but fixed in d39f780
Signature · 1 line
2.39.2
#1 lore raw
Quoted 75 lines · Simone Weiß

From: Simone Weiß <[email protected]>

Upgraded to address CVE-2024-25062

License-Update: hash.c was rewritten and now also has MIT license, trio was totally removed, hence remove license checksum as well. Files are not mentioned as exception in overall license any more, therefore, checksum changed there as well.

Previous upgrades of libxml2 caused issues when building libsoup, this in the meantime has been adressed via commit "9f57bfb74e280827" ("libsoup-2.4: Fix build with clang-17 and libxml2-2.12") already.

Changes:
- [CVE-2024-25062] xmlreader: Don't expand XIncludes when backtracking
- parser: Fix crash in xmlParseInNodeContext with HTML documents

---
 meta/recipes-core/libxml/libxml2/install-tests.patch      | 8 ++++---- .../libxml/{libxml2_2.11.5.bb => libxml2_2.12.5.bb}       | 8 +++-----

 2 files changed, 7 insertions(+), 9 deletions(-)

 rename meta/recipes-core/libxml/{libxml2_2.11.5.bb => libxml2_2.12.5.bb} (91%)

meta/recipes-core/libxml/libxml2/install-tests.patch +1 -1
index 14ccce5873..4bddf9f05e 100644
@@ -1,4 +1,4 @@
-From 3fc716357ce1372d9418dc86f24315b34d9808de Mon Sep 17 00:00:00 2001
+From 582af12c9e89cd3d7c93c63756acb6e8180a776c Mon Sep 17 00:00:00 2001

 From: Ross Burton <[email protected]>
 Date: Mon, 5 Dec 2022 17:02:32 +0000
 Subject: [PATCH] add yocto-specific install-ptest target

meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0
@@ -13,11 +13,11 @@ Signed-off-by: Ross Burton <[email protected]>
   1 file changed, 10 insertions(+)


 diff --git a/Makefile.am b/Makefile.am

meta/recipes-core/libxml/libxml2/install-tests.patch +1 -1
-index 5bc4018..57d27af 100644
+index 0a49d37..1097c63 100644

 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -26,6 +26,16 @@ check_PROGRAMS = \
-  testlimits \
+@@ -27,6 +27,16 @@ check_PROGRAMS = \
+  testparser \
   testrecurse

 +ptestdir=$(libexecdir)

meta/recipes-core/libxml/libxml2_2.12.5.bb renamed from meta/recipes-core/libxml/libxml2_2.11.5.bb +0 -0
similarity index 91%
rename from meta/recipes-core/libxml/libxml2_2.11.5.bb
rename to meta/recipes-core/libxml/libxml2_2.12.5.bb
index 44336c25e1..01e23b21cc 100644
@@ -4,10 +4,8 @@ HOMEPAGE = "https://gitlab.gnome.org/GNOME/libxml2"

 BUGTRACKER = "http://bugzilla.gnome.org/buglist.cgi?product=libxml2" SECTION = "libs"
 LICENSE = "MIT"

meta/recipes-core/libxml/libxml2_2.12.5.bb renamed from meta/recipes-core/libxml/libxml2_2.11.5.bb +2 -4
-LIC_FILES_CHKSUM = "file://Copyright;md5=2044417e2e5006b65a8b9067b683fcf1 \
-                    file://hash.c;beginline=6;endline=15;md5=e77f77b12cb69e203d8b4090a0eee879 \
-                    file://list.c;beginline=4;endline=13;md5=b9c25b021ccaf287e50060602d20f3a7 \
-                    file://trio.c;beginline=5;endline=14;md5=cd4f61e27f88c1d43df112966b1cd28f"
+LIC_FILES_CHKSUM = "file://Copyright;md5=fec7ecfe714722b2bb0aaff7d200c701 \
+                    file://list.c;beginline=4;endline=13;md5=b9c25b021ccaf287e50060602d20f3a7"


 DEPENDS = "zlib virtual/libiconv"

meta/recipes-core/libxml/libxml2_2.12.5.bb renamed from meta/recipes-core/libxml/libxml2_2.11.5.bb +0 -0
@@ -19,7 +17,7 @@ SRC_URI += "http://www.w3.org/XML/Test/xmlts20130923.tar;subdir=${BP};name=testt
             file://install-tests.patch \

            "

meta/recipes-core/libxml/libxml2_2.12.5.bb renamed from meta/recipes-core/libxml/libxml2_2.11.5.bb +1 -1
-SRC_URI[archive.sha256sum] = "3727b078c360ec69fa869de14bd6f75d7ee8d36987b071e6928d4720a28df3a6"
+SRC_URI[archive.sha256sum] = "a972796696afd38073e0f59c283c3a2f5a560b5268b4babc391b286166526b21"
Quoted 4 lines

 SRC_URI[testtar.sha256sum] = "c6b2d42ee50b8b236e711a97d68e6c4b5c8d83e69a2be4722379f08702ea7273"
 # Disputed as a security issue, but fixed in d39f780

Unfortunately this upgrade breaks webkitgtk:

https://autobuilder.yoctoproject.org/typhoon/#/builders/52/builds/8480/steps/11/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/117/builds/4416/steps/12/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/45/builds/8643/steps/11/logs/stdio

and so on.

Cheers,

Richard

#2 lore raw
Quoted 104 lines · Richard Purdie
Quoted 91 lines · Simone Weiß

From: Simone Weiß <[email protected]>

Upgraded to address CVE-2024-25062

License-Update: hash.c was rewritten and now also has MIT license, trio was totally removed, hence remove license checksum as well. Files are not mentioned as exception in overall license any more, therefore, checksum changed there as well.

Previous upgrades of libxml2 caused issues when building libsoup, this in the meantime has been adressed via commit "9f57bfb74e280827" ("libsoup-2.4: Fix build with clang-17 and libxml2-2.12") already.

Changes:
- [CVE-2024-25062] xmlreader: Don't expand XIncludes when backtracking
- parser: Fix crash in xmlParseInNodeContext with HTML documents

---
 meta/recipes-core/libxml/libxml2/install-tests.patch      | 8 ++++--- -
 .../libxml/{libxml2_2.11.5.bb => libxml2_2.12.5.bb}       | 8 +++---- -

 2 files changed, 7 insertions(+), 9 deletions(-)

 rename meta/recipes-core/libxml/{libxml2_2.11.5.bb => libxml2_2.12.5.bb} (91%)

meta/recipes-core/libxml/libxml2/install-tests.patch +0 -1
index 14ccce5873..4bddf9f05e 100644
@@ -1,4 +1,4 @@
-From 3fc716357ce1372d9418dc86f24315b34d9808de Mon Sep 17 00:00:00

2001
+From 582af12c9e89cd3d7c93c63756acb6e8180a776c Mon Sep 17 00:00:00 2001
 From: Ross Burton <[email protected]>
 Date: Mon, 5 Dec 2022 17:02:32 +0000
 Subject: [PATCH] add yocto-specific install-ptest target

meta/recipes-core/libxml/libxml2/install-tests.patch +0 -0
@@ -13,11 +13,11 @@ Signed-off-by: Ross Burton <[email protected]>
   1 file changed, 10 insertions(+)


 diff --git a/Makefile.am b/Makefile.am

meta/recipes-core/libxml/libxml2/install-tests.patch +1 -1
-index 5bc4018..57d27af 100644
+index 0a49d37..1097c63 100644

 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -26,6 +26,16 @@ check_PROGRAMS = \
-       testlimits \
+@@ -27,6 +27,16 @@ check_PROGRAMS = \
+       testparser \
        testrecurse

 +ptestdir=$(libexecdir)

meta/recipes-core/libxml/libxml2_2.12.5.bb renamed from meta/recipes-core/libxml/libxml2_2.11.5.bb +0 -0
similarity index 91%
rename from meta/recipes-core/libxml/libxml2_2.11.5.bb
rename to meta/recipes-core/libxml/libxml2_2.12.5.bb
index 44336c25e1..01e23b21cc 100644
@@ -4,10 +4,8 @@ HOMEPAGE = "https://gitlab.gnome.org/GNOME/libxml2"

 BUGTRACKER = "http://bugzilla.gnome.org/buglist.cgi?product=libxml2" SECTION = "libs"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM = "file://Copyright;md5=2044417e2e5006b65a8b9067b683fcf1 \
- file://hash.c;beginline=6;endline=15;md5=e77f77b12cb69e203d8b4090a0eee879 \
- file://list.c;beginline=4;endline=13;md5=b9c25b021ccaf287e50060602d20f3a7 \
- file://trio.c;beginline=5;endline=14;md5=cd4f61e27f88c1d43df112966b1cd28f "
+LIC_FILES_CHKSUM = "file://Copyright;md5=fec7ecfe714722b2bb0aaff7d200c701 \
+ file://list.c;beginline=4;endline=13;md5=b9c25b021ccaf287e50060602d20f3a7 "

 DEPENDS = "zlib virtual/libiconv"

meta/recipes-core/libxml/libxml2_2.12.5.bb renamed from meta/recipes-core/libxml/libxml2_2.11.5.bb +0 -0
@@ -19,7 +17,7 @@ SRC_URI +=

"http://www.w3.org/XML/Test/xmlts20130923.tar;subdir=${BP};name=testt file://install-tests.patch \
            "

Quoted 9 lines

-SRC_URI[archive.sha256sum] = "3727b078c360ec69fa869de14bd6f75d7ee8d36987b071e6928d4720a28df3a6" +SRC_URI[archive.sha256sum] = "a972796696afd38073e0f59c283c3a2f5a560b5268b4babc391b286166526b21" SRC_URI[testtar.sha256sum] = "c6b2d42ee50b8b236e711a97d68e6c4b5c8d83e69a2be4722379f08702ea7273"
 # Disputed as a security issue, but fixed in d39f780

Unfortunately this upgrade breaks webkitgtk:

Quoted 8 lines

https://autobuilder.yoctoproject.org/typhoon/#/builders/52/builds/8480/steps/11/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/117/builds/4416/steps/12/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/45/builds/8643/steps/11/logs/stdio

and so on.

Cheers,

Argh sorry, I understood that only libsoup was an issue. I will propose a patch to webkitgtk and fix it there, then backport and finally upgrade this...

Quoted 14 lines

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#196120):
https://lists.openembedded.org/g/openembedded-core/message/196120
Mute This Topic: https://lists.openembedded.org/mt/104534962/8052774
Group Owner: [email protected] Unsubscribe:
https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]
]
-=-=-=-=-=-=-=-=-=-=-=-

#3 lore raw

You should perhaps check if latest webkitgtk release has a fix, and simply update to that.

Alex

Quoted 132 lines · Simone Weiß
Quoted 104 lines · Richard Purdie
Quoted 91 lines · Simone Weiß

From: Simone Weiß <[email protected]>

Upgraded to address CVE-2024-25062

License-Update: hash.c was rewritten and now also has MIT license, trio was totally removed, hence remove license checksum as well. Files are not mentioned as exception in overall license any more, therefore, checksum changed there as well.

Previous upgrades of libxml2 caused issues when building libsoup, this in the meantime has been adressed via commit "9f57bfb74e280827" ("libsoup-2.4: Fix build with clang-17 and libxml2-2.12") already.

Changes:
- [CVE-2024-25062] xmlreader: Don't expand XIncludes when backtracking
- parser: Fix crash in xmlParseInNodeContext with HTML documents

---
 meta/recipes-core/libxml/libxml2/install-tests.patch      | 8 ++++---
(quoted diff) +0 -2
-
 .../libxml/{libxml2_2.11.5.bb => libxml2_2.12.5.bb}       | 8 +++----
-
 2 files changed, 7 insertions(+), 9 deletions(-)
 rename meta/recipes-core/libxml/{libxml2_2.11.5.bb =>

libxml2_2.12.5.bb} (91%)

meta/recipes-core/libxml/libxml2/install-tests.patch +0 -1
index 14ccce5873..4bddf9f05e 100644
@@ -1,4 +1,4 @@
-From 3fc716357ce1372d9418dc86f24315b34d9808de Mon Sep 17 00:00:00

2001
+From 582af12c9e89cd3d7c93c63756acb6e8180a776c Mon Sep 17 00:00:00 2001
From: Ross Burton <[email protected]>
Date: Mon, 5 Dec 2022 17:02:32 +0000
Subject: [PATCH] add yocto-specific install-ptest target

meta/recipes-core/libxml/libxml2/install-tests.patch +3 -3
@@ -13,11 +13,11 @@ Signed-off-by: Ross Burton <[email protected]>
  1 file changed, 10 insertions(+)
 
 diff --git a/Makefile.am b/Makefile.am
-index 5bc4018..57d27af 100644
+index 0a49d37..1097c63 100644
 --- a/Makefile.am
 +++ b/Makefile.am
-@@ -26,6 +26,16 @@ check_PROGRAMS = \
-       testlimits \
+@@ -27,6 +27,16 @@ check_PROGRAMS = \
+       testparser \
        testrecurse
 
 +ptestdir=$(libexecdir)
meta/recipes-core/libxml/libxml2_2.12.5.bb renamed from meta/recipes-core/libxml/libxml2_2.11.5.bb +0 -2
similarity index 91%
rename from meta/recipes-core/libxml/libxml2_2.11.5.bb
rename to meta/recipes-core/libxml/libxml2_2.12.5.bb
index 44336c25e1..01e23b21cc 100644
@@ -4,10 +4,8 @@ HOMEPAGE = "https://gitlab.gnome.org/GNOME/libxml2"
 BUGTRACKER = "http://bugzilla.gnome.org/buglist.cgi?product=libxml2"
 SECTION = "libs"
 LICENSE = "MIT"
-LIC_FILES_CHKSUM =
 "file://Copyright;md5=2044417e2e5006b65a8b9067b683fcf1 \
-

file://hash.c;beginline=6;endline=15;md5=e77f77b12cb69e203d8b4090a0eee879
\
- file://list.c;beginline=4;endline=13;md5=b9c25b021ccaf287e50060602d20f3a7
\
- file://trio.c;beginline=5;endline=14;md5=cd4f61e27f88c1d43df112966b1cd28f "
+LIC_FILES_CHKSUM = "file://Copyright;md5=fec7ecfe714722b2bb0aaff7d200c701 \
+ file://list.c;beginline=4;endline=13;md5=b9c25b021ccaf287e50060602d20f3a7 "

DEPENDS = "zlib virtual/libiconv"

meta/recipes-core/libxml/libxml2_2.12.5.bb renamed from meta/recipes-core/libxml/libxml2_2.11.5.bb +0 -0
@@ -19,7 +17,7 @@ SRC_URI +=

"http://www.w3.org/XML/Test/xmlts20130923.tar;subdir=${BP};name=testt

            file://install-tests.patch \
            "
Quoted 9 lines

-SRC_URI[archive.sha256sum] = "3727b078c360ec69fa869de14bd6f75d7ee8d36987b071e6928d4720a28df3a6" +SRC_URI[archive.sha256sum] = "a972796696afd38073e0f59c283c3a2f5a560b5268b4babc391b286166526b21"
SRC_URI[testtar.sha256sum] =
"c6b2d42ee50b8b236e711a97d68e6c4b5c8d83e69a2be4722379f08702ea7273"

# Disputed as a security issue, but fixed in d39f780

Unfortunately this upgrade breaks webkitgtk:

Quoted 8 lines

https://autobuilder.yoctoproject.org/typhoon/#/builders/52/builds/8480/steps/11/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/117/builds/4416/steps/12/logs/stdio
https://autobuilder.yoctoproject.org/typhoon/#/builders/45/builds/8643/steps/11/logs/stdio

and so on.

Cheers,

Argh sorry, I understood that only libsoup was an issue. I will propose a patch to webkitgtk and fix it there, then backport and finally upgrade this...

Quoted 5 lines

Richard

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#196121): https://lists.openembedded.org/g/openembedded-core/message/196121
Mute This Topic: https://lists.openembedded.org/mt/104534962/1686489
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-