Bug 2231854 (CVE-2023-40305)

Summary: CVE-2023-40305 indent: heap-based buffer overflow in search_brace() in indent.c
Product: [Other] Security Response Reporter: Rohit Keshri <rkeshri>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: CLOSED WONTFIX QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: ppisar
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 flaw was found in indent, a program for formatting C code. This flaw allows an attacker who can trick a user into processing a specially crafted file to trigger a heap-based buffer overflow, causing the application to crash.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-08-14 21:05:09 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: 2231919, 2231920    
Bug Blocks: 2231855    

Description Rohit Keshri 2023-08-14 12:55:07 UTC
GNU indent 2.2.13 has a heap-based buffer overflow in search_brace in indent.c via a crafted file.

References:
https://ftp.gnu.org/gnu/indent/
https://savannah.gnu.org/bugs/index.php?64503

Comment 1 Guilherme de Almeida Suckevicz 2023-08-14 16:28:25 UTC
Created indent tracking bugs for this issue:

Affects: epel-all [bug 2231920]
Affects: fedora-all [bug 2231919]

Comment 2 Product Security DevOps Team 2023-08-14 21:05:07 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2023-40305

Comment 3 Petr Pisar 2023-08-16 14:41:26 UTC
I posted a fix to the upstream bug report.