Bug 2215930 (CVE-2023-4156) - CVE-2023-4156 gawk: heap out of bound read in builtin.c
Summary: CVE-2023-4156 gawk: heap out of bound read in builtin.c
Keywords:
Status: NEW
Alias: CVE-2023-4156
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: 2215940 2215941 2215942 2229176
Blocks: 2215943
TreeView+ depends on / blocked
 
Reported: 2023-06-19 12:39 UTC by TEJ RATHI
Modified: 2025-05-02 10:02 UTC (History)
3 users (show)

Fixed In Version: gawk 5.1.1
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description TEJ RATHI 2023-06-19 12:39:55 UTC
A heap out of bound read issue exists in builtin.c of gawk prior to version 5.1.1. The array "the_args" takes an unsafe index "val", while it does not validate the index to ensure the index refers to a valid position in the array (e.g., exceedingly large or negative). The vulnerability can cause crash of the software and might be used by attackers to read sensitive information.

https://mail.gnu.org/archive/html/bug-gawk/2022-08/msg00000.html
https://mail.gnu.org/archive/html/bug-gawk/2022-08/msg00023.html
https://fossies.org/linux/gawk/ChangeLog#470 (Line: 470-475)

Comment 3 TEJ RATHI 2023-06-19 12:52:24 UTC
Created gawk tracking bugs for this issue:

Affects: fedora-all [bug 2215940]

Comment 8 Dale Lindsey 2024-04-02 03:11:08 UTC Comment hidden (spam)
Comment 9 Paul 2024-10-02 03:54:59 UTC Comment hidden (spam)
Comment 10 helen dam 2024-12-06 02:18:45 UTC Comment hidden (spam)
Comment 11 Jim Henderson 2024-12-23 01:49:12 UTC Comment hidden (spam)

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