Bug 2501654

Summary: CVE-2026-57076 perl-YAML-Syck: YAML::Syck: Heap use-after-free via anchor name reuse [fedora-all]
Product: [Fedora] Fedora Reporter: Ganesh <gnaik>
Component: perl-YAML-SyckAssignee: Paul Howarth <paul>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: high    
Version: rawhideCC: paul, perl-devel, steve
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["246724d5-b8da-4347-b2f7-76bb95fbe3f9"]}
Fixed In Version: perl-YAML-Syck-1.47-1.fc43 perl-YAML-Syck-1.47-1.fc44 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-07-23 01:02:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2501583    

Description Ganesh 2026-07-17 03:17:33 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.

YAML::Syck versions before 1.47 for Perl allow a heap use-after-free via an anchor name reused as an anchors-table key in syck_hdlr_add_anchor.

In the bundled libsyck an anchor name allocated by syck_strndup is stored both as node->anchor, freed when the node is freed, and as the key in the parser's anchors table. Freeing the node frees the shared key, and a later anchor redefinition makes st_delete compare against the freed key, so st_strcmp reads freed heap memory. Anchors are a standard YAML feature and need no special flags, so this is reached on the default Load path.

Any caller that runs Load or LoadFile on an untrusted document that redefines an anchor reaches the read of freed memory.

Comment 1 Fedora Update System 2026-07-17 07:28:40 UTC
FEDORA-2026-2139aa7dce (perl-YAML-Syck-1.47-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-2139aa7dce

Comment 2 Fedora Update System 2026-07-17 07:29:24 UTC
FEDORA-2026-c8484f1afb (perl-YAML-Syck-1.47-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-c8484f1afb

Comment 3 Fedora Update System 2026-07-23 01:02:25 UTC
FEDORA-2026-c8484f1afb (perl-YAML-Syck-1.47-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2026-07-23 01:18:58 UTC
FEDORA-2026-2139aa7dce (perl-YAML-Syck-1.47-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.