Bug 2234595 (CVE-2023-30079)

Summary: CVE-2023-30079 libeconf: Stack overflow in function read_file at libeconf/lib/getfilecontents.c
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: ipedrosa
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libeconf 0.5.2 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the libeconf library. This issue occurs when parsing a specially crafted configuration file, causing a stack-based buffer overflow that results in a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2212467, 2212468, 2234596, 2235236, 2235239, 2235240    
Bug Blocks: 2234597    

Description Pedro Sampaio 2023-08-24 19:55:08 UTC
A stack overflow vulnerability exists in function read_file in atlibeconf/lib/getfilecontents.c in libeconf 0.5.1 allows attackers to cause a Denial of service or execute arbitrary code.

References:

https://raw.githubusercontent.com/yangjiageng/PoC/master/libeconf-PoC/tst-logindefs1.c
https://github.com/openSUSE/libeconf/issues/177
https://github.com/yangjiageng/PoC/blob/master/libeconf-PoC/read_file_503

Comment 2 Sandipan Roy 2023-08-28 05:39:00 UTC
Created libeconf tracking bugs for this issue:

Affects: fedora-all [bug 2235236]

Comment 4 errata-xmlrpc 2023-10-05 13:05:37 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Extended Update Support

Via RHSA-2023:5458 https://access.redhat.com/errata/RHSA-2023:5458