Bug 1214025 (CVE-2023-4156) - VUL-0: CVE-2023-4156: gawk: heap out of bound read in builtin.c
Summary: VUL-0: CVE-2023-4156: gawk: heap out of bound read in builtin.c
Status: RESOLVED FIXED
Alias: CVE-2023-4156
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Minor
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/374209/
Whiteboard: CVSSv3.1:SUSE:CVE-2023-4156:3.3:(AV:L...
Keywords:
Depends on:
Blocks:
 
Reported: 2023-08-07 08:48 UTC by Cathy Hu
Modified: 2023-09-25 12:14 UTC (History)
1 user (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cathy Hu 2023-08-07 08:48:08 UTC
CVE-2023-4156

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)

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2023-4156
https://bugzilla.redhat.com/show_bug.cgi?id=2215930
Comment 1 Cathy Hu 2023-08-07 08:49:27 UTC
Affected:
- SUSE:SLE-11-SP1:Update/gawk        3.1.8
- SUSE:SLE-12:Update/gawk            4.1.0
- SUSE:SLE-15:Update/gawk            4.2.1

Not affected:
- SUSE:ALP:Source:Standard:1.0/gawk  5.2.1
- openSUSE:Factory/gawk              5.2.2
Comment 2 Cathy Hu 2023-08-07 08:50:46 UTC
sorry, this one is out of support, so no need to fix: 

- SUSE:SLE-11-SP1:Update/gawk        3.1.8
Comment 4 Maintenance Automation 2023-08-24 12:30:07 UTC
SUSE-SU-2023:3431-1: An update that solves one vulnerability can now be installed.

Category: security (low)
Bug References: 1214025
CVE References: CVE-2023-4156
Sources used:
SUSE Linux Enterprise High Performance Computing 12 SP5 (src): gawk-4.1.0-5.3.1
SUSE Linux Enterprise Server 12 SP5 (src): gawk-4.1.0-5.3.1
SUSE Linux Enterprise Server for SAP Applications 12 SP5 (src): gawk-4.1.0-5.3.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 5 Maintenance Automation 2023-08-28 08:30:09 UTC
SUSE-SU-2023:3440-1: An update that solves one vulnerability can now be installed.

Category: security (low)
Bug References: 1214025
CVE References: CVE-2023-4156
Sources used:
openSUSE Leap 15.4 (src): gawk-4.2.1-150000.3.3.1
openSUSE Leap 15.5 (src): gawk-4.2.1-150000.3.3.1
SUSE Linux Enterprise Micro for Rancher 5.3 (src): gawk-4.2.1-150000.3.3.1
SUSE Linux Enterprise Micro 5.3 (src): gawk-4.2.1-150000.3.3.1
SUSE Linux Enterprise Micro for Rancher 5.4 (src): gawk-4.2.1-150000.3.3.1
SUSE Linux Enterprise Micro 5.4 (src): gawk-4.2.1-150000.3.3.1
Basesystem Module 15-SP4 (src): gawk-4.2.1-150000.3.3.1
Basesystem Module 15-SP5 (src): gawk-4.2.1-150000.3.3.1
SUSE Manager Proxy 4.2 (src): gawk-4.2.1-150000.3.3.1
SUSE Manager Retail Branch Server 4.2 (src): gawk-4.2.1-150000.3.3.1
SUSE Manager Server 4.2 (src): gawk-4.2.1-150000.3.3.1
SUSE Linux Enterprise Micro 5.1 (src): gawk-4.2.1-150000.3.3.1
SUSE Linux Enterprise Micro 5.2 (src): gawk-4.2.1-150000.3.3.1
SUSE Linux Enterprise Micro for Rancher 5.2 (src): gawk-4.2.1-150000.3.3.1
openSUSE Leap Micro 5.3 (src): gawk-4.2.1-150000.3.3.1
openSUSE Leap Micro 5.4 (src): gawk-4.2.1-150000.3.3.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 6 Cathy Hu 2023-09-25 12:14:10 UTC
done, closing
Comment 7 Cathy Hu 2023-09-25 12:14:21 UTC
closing