Bug 34210 - libxml2 new security issues CVE-2025-3241[45]
Summary: libxml2 new security issues CVE-2025-3241[45]
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL:
Whiteboard: MGA9-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2025-04-22 11:46 CEST by Nicolas Salguero
Modified: 2025-04-25 19:35 CEST (History)
3 users (show)

See Also:
Source RPM: libxml2-2.10.4-1.6.mga9
CVE: CVE-2025-32414, CVE-2025-32415
Status comment: Fixed upstream in 2.13.8


Attachments

Description Nicolas Salguero 2025-04-22 11:46:48 CEST
Those issues were announced here:
https://openwall.com/lists/oss-security/2025/04/17/3
Nicolas Salguero 2025-04-22 11:48:00 CEST

CVE: (none) => CVE-2025-32414, CVE-2025-32415
Status comment: (none) => Fixed upstream in 2.13.8
Whiteboard: (none) => MGA9TOO
Source RPM: (none) => libxml2-2.13.6-1.mga10.src.rpm, libxml2-2.10.4-1.6.mga9.src.rpm

Comment 1 Lewis Smith 2025-04-22 21:54:03 CEST
Luckily just a version update. Assigning globally.

Assignee: bugsquad => pkg-bugs

katnatek 2025-04-23 05:15:24 CEST

Assignee: pkg-bugs => j.alberto.vc

Comment 2 katnatek 2025-04-23 05:22:50 CEST
Nicolas for mageia 9 should I add other patch or go to 2.13.8 ?
It builds without issue but want to ask first
Comment 3 Nicolas Salguero 2025-04-23 08:30:49 CEST
(In reply to katnatek from comment #2)
> Nicolas for mageia 9 should I add other patch or go to 2.13.8 ?
> It builds without issue but want to ask first

Hi,

For Mageia 9, you should add a patch.  Even if it builds without issue, it might cause problems with other packages that depend on it at run time.

Best regards,

Nico.
Comment 4 katnatek 2025-04-23 18:30:31 CEST
(In reply to Nicolas Salguero from comment #3)
> (In reply to katnatek from comment #2)
> > Nicolas for mageia 9 should I add other patch or go to 2.13.8 ?
> > It builds without issue but want to ask first
> 
> Hi,
> 
> For Mageia 9, you should add a patch.  Even if it builds without issue, it
> might cause problems with other packages that depend on it at run time.
> 
> Best regards,
> 
> Nico.

I will test if works, I can't find a clear patch for CVE-2025-32415
For CVE-2025-32414, I think can use https://gitlab.gnome.org/-/project/1665/uploads/47cc2f2673c3df5e714a38400b56ff16/bug-889-v2.10.4-and-below.patch
Comment 5 katnatek 2025-04-23 18:49:10 CEST
(In reply to katnatek from comment #4)
> (In reply to Nicolas Salguero from comment #3)
> > (In reply to katnatek from comment #2)
> > > Nicolas for mageia 9 should I add other patch or go to 2.13.8 ?
> > > It builds without issue but want to ask first
> > 
> > Hi,
> > 
> > For Mageia 9, you should add a patch.  Even if it builds without issue, it
> > might cause problems with other packages that depend on it at run time.
> > 
> > Best regards,
> > 
> > Nico.
> 
> I will test if works, I can't find a clear patch for CVE-2025-32415
> For CVE-2025-32414, I think can use
> https://gitlab.gnome.org/-/project/1665/uploads/
> 47cc2f2673c3df5e714a38400b56ff16/bug-889-v2.10.4-and-below.patch

Well chromium-browser and vlc works , I find now the diff for CVE-2025-32415,
But why keep a version not supported upstream?
Comment 6 katnatek 2025-04-23 19:07:07 CEST
Have to check with care the CVE-2025-32415 patch, not works out of the box 
Later, have things to do
Comment 7 katnatek 2025-04-24 00:42:30 CEST
Packages:
lib(64)xml2-devel-2.10.4-1.7.mga9
lib(64)xml2_2-2.10.4-1.7.mga9
libxml2-python3-2.10.4-1.7.mga9
libxml2-utils-2.10.4-1.7.mga9

SRPM
libxml2-2.10.4-1.7.mga9

Whiteboard: MGA9TOO => (none)
Source RPM: libxml2-2.13.6-1.mga10.src.rpm, libxml2-2.10.4-1.6.mga9.src.rpm => libxml2-2.10.4-1.6.mga9
Assignee: j.alberto.vc => qa-bugs

katnatek 2025-04-24 00:42:50 CEST

Version: Cauldron => 9

Comment 8 katnatek 2025-04-24 01:48:31 CEST
RH x86_64

run the POC for CVE-2025-32414
xmlPythonFileRead: result is not a String
Traceback (most recent call last):
  File "/home/katnatek/qatest/CVE-2025-32414-libxml2.py", line 20, in <module>
    xml.sax.parseString(text, handler=ContentHandler())
  File "/usr/lib64/python3.10/xml/sax/__init__.py", line 48, in parseString
    parser.parse(inpsrc)
  File "/usr/lib/python3.10/site-packages/drv_libxml2.py", line 181, in parse
    self._reportErrors(1)
  File "/usr/lib/python3.10/site-packages/drv_libxml2.py", line 136, in _reportErrors
    self._err_handler.fatalError(exception)
  File "/usr/lib64/python3.10/xml/sax/handler.py", line 38, in fatalError
    raise exception
xml.sax._exceptions.SAXParseException: <unknown>:1:-1: Extra content at the end of the document

Not sure how to test CVE-2025-32415 schema command not exits

Update

installing lib64xml2_2-2.10.4-1.7.mga9.x86_64.rpm libxml2-utils-2.10.4-1.7.mga9.x86_64.rpm libxml2-python3-2.10.4-1.7.mga9.x86_64.rpm from //home/katnatek/qa-testing/x86_64
Preparing...                     ##################################################################################################
      1/3: lib64xml2_2           ##################################################################################################
      2/3: libxml2-utils         ##################################################################################################
      3/3: libxml2-python3       ##################################################################################################
      1/3: removing libxml2-python3-2.10.4-1.6.mga9.x86_64
                                 ##################################################################################################
      2/3: removing libxml2-utils-2.10.4-1.6.mga9.x86_64
                                 ##################################################################################################
      3/3: removing lib64xml2_2-2.10.4-1.6.mga9.x86_64
                                 ##################################################################################################


Not see diference for CVE-2025-32414
xmlPythonFileRead: result is not a String
Traceback (most recent call last):
  File "/home/katnatek/qatest/CVE-2025-32414-libxml2.py", line 20, in <module>
    xml.sax.parseString(text, handler=ContentHandler())
  File "/usr/lib64/python3.10/xml/sax/__init__.py", line 48, in parseString
    parser.parse(inpsrc)
  File "/usr/lib/python3.10/site-packages/drv_libxml2.py", line 181, in parse
    self._reportErrors(1)
  File "/usr/lib/python3.10/site-packages/drv_libxml2.py", line 136, in _reportErrors
    self._err_handler.fatalError(exception)
  File "/usr/lib64/python3.10/xml/sax/handler.py", line 38, in fatalError
    raise exception
xml.sax._exceptions.SAXParseException: <unknown>:1:-1: Extra content at the end of the document

Perhaps is necessary to use valgrind as in the upstream report
Comment 9 katnatek 2025-04-24 02:55:02 CEST
RH x86_64

Reference bug#33975 comment#3

python testxml.py
Tested OK

xmllint --auto
<?xml version="1.0"?>
<info>abc</info>

xmlcatalog --create
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"/>

strace chromium-browser shows
openat(AT_FDCWD, "/lib64/libxml2.so.2", O_RDONLY|O_CLOEXEC) = 3

And I can open an xml file

Looks good
katnatek 2025-04-24 03:36:37 CEST

Keywords: (none) => advisory

Comment 10 Herman Viaene 2025-04-24 14:28:40 CEST
MGA9-64 Plasma Wayland on Compaq H000SB
No installation issues.
Ref bug 33975
$ python testxml.py
Tested OK
$ xmllint --auto
<?xml version="1.0"?>
<info>abc</info>
$ xmlcatalog --create
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"/>
Chromium works OK on newspaper site and youtube.
Let's go.

Whiteboard: (none) => MGA9-64-OK
CC: (none) => herman.viaene

Comment 11 Thomas Andrews 2025-04-25 02:07:16 CEST
Validating.

CC: (none) => andrewsfarm, sysadmin-bugs
Keywords: (none) => validated_update

Comment 12 Mageia Robot 2025-04-25 19:35:37 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2025-0139.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.