Bug 2292350 (CVE-2024-35325)

Summary: CVE-2024-35325 libyaml: double-free in yaml_event_delete in /src/libyaml/src/api.c
Product: [Other] Security Response Reporter: Rohit Keshri <rkeshri>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: agarcial, ahrabovs, aoconnor, aprice, asegurap, aucunnin, bdettelb, caswilli, crizzo, dfreiber, dhalasz, dkuc, dnakabaa, doconnor, drow, fjansen, hkataria, jburrell, jdobes, jmitchel, jsamir, jsherril, jtanner, jvasik, kaycoth, kholdawa, kshier, lbalhar, lcouzens, luizcosta, mhayden, mpierce, mskarbek, mstoklus, nweather, oezr, orabin, psegedy, rblanco, stcannon, sthirugn, teagle, vkrizan, vkumar, vmugicag, xiaoxwan, yguenane, zzhou
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A vulnerability was found in libyaml in versions up to 0.2.5. This issue affects the yaml_event_delete function in the /src/libyaml/src/api.c. file, leading to a double-free problem.
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-08-02 13:19:47 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: 2292357, 2292358, 2292359, 2292360    
Bug Blocks: 2292349    

Description Rohit Keshri 2024-06-14 06:04:51 UTC
A vulnerability was found in libyaml up to 0.2.5. Affected by this issue is the function yaml_event_delete of the file /src/libyaml/src/api.c. The manipulation leads to a double-free.

https://github.com/idhyt/pocs/blob/main/libyaml/CVE-2024-35325.c

Comment 1 Rohit Keshri 2024-06-14 06:17:02 UTC
Created R-yaml tracking bugs for this issue:

Affects: fedora-all [bug 2292359]


Created ghc-yaml tracking bugs for this issue:

Affects: epel-all [bug 2292358]


Created libyaml tracking bugs for this issue:

Affects: fedora-all [bug 2292357]


Created python-ruamel-yaml-clib tracking bugs for this issue:

Affects: fedora-all [bug 2292360]

Comment 3 Lumír Balhar 2024-08-01 10:53:02 UTC
The author of libyaml thinks it's a misuse of the API, not a vulnerability: https://github.com/yaml/libyaml/issues/303

Comment 4 Major Hayden 🤠 2024-08-02 13:19:47 UTC
Per the upstream developer, this involves a misuse of the underlying C API which is not necessary and not documented:

https://github.com/yaml/libyaml/issues/297#issuecomment-2161577994