Bug 2231854 (CVE-2023-40305) - CVE-2023-40305 indent: heap-based buffer overflow in search_brace() in indent.c
Summary: CVE-2023-40305 indent: heap-based buffer overflow in search_brace() in indent.c
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2023-40305
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Nobody
QA Contact:
URL:
Whiteboard:
Depends On: 2231919 2231920
Blocks: 2231855
TreeView+ depends on / blocked
 
Reported: 2023-08-14 12:55 UTC by Rohit Keshri
Modified: 2023-08-29 17:29 UTC (History)
1 user (show)

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.
Clone Of:
Environment:
Last Closed: 2023-08-14 21:05:09 UTC
Embargoed:


Attachments (Terms of Use)

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.


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