Bug 2539673 - CVE-2026-96889 librsvg2: Use-after-free when XML includes have duplicated entities [fedora-all]
Summary: CVE-2026-96889 librsvg2: Use-after-free when XML includes have duplicated ent...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: librsvg2
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Matthias Clasen
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["04dbfa90-5b9c-462c-9f29-0...
Depends On:
Blocks: CVE-2026-96889, RUSTSEC-2026-0305
TreeView+ depends on / blocked
 
Reported: 2026-09-23 19:10 UTC by Samuele Negrini
Modified: 2026-09-26 00:16 UTC (History)
5 users (show)

Fixed In Version: librsvg2-2.63.2-1.fc45
Clone Of:
Environment:
Last Closed: 2026-09-26 00:16:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Samuele Negrini 2026-09-23 19:10:31 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

Librsvg uses libxml2, a C library, to parse XML.  When librsvg parses
an SVG document which has a nested Xinclude, an XML entity declaration
with a duplicate name as an existing one can cause a use-after-free error.

While libxml2 is expanding an internal entity, a recursive XInclude
can parse another document that declares an entity with the same
name. Both parses use the same `XmlState` entity
map on the librsvg side. `entity_insert()` replaces the first entry, whose `Drop`
implementation calls `xmlFreeNode()`. The outer `xmlCtxtParseEntity()`
then keeps using the freed 144-byte `xmlEntity`.

The included parse should not free an entity that the outer parser is still using.

The fix is in commit 8a1b0cd319e9af2d1e9cf878081dd77f227a0504, where
librsvg will no longer free xmlEntity pointers that libxml2 is still
using.

Comment 1 Fedora Update System 2026-09-23 19:15:21 UTC
FEDORA-2026-1e23d80c94 (librsvg2-2.63.2-1.fc45, rust-librsvg-2.63.2-1.fc45, and 1 more) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-1e23d80c94

Comment 2 Fedora Update System 2026-09-24 01:35:08 UTC
FEDORA-2026-1e23d80c94 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-1e23d80c94`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-1e23d80c94

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 3 Fedora Update System 2026-09-26 00:16:40 UTC
FEDORA-2026-1e23d80c94 (librsvg2-2.63.2-1.fc45, rust-librsvg-2.63.2-1.fc45, and 1 more) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.


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