Bug 1219210 (CVE-2024-0911) - VUL-0: CVE-2024-0911: indent: heap-based buffer overflow in set_buf_break()
Summary: VUL-0: CVE-2024-0911: indent: heap-based buffer overflow in set_buf_break()
Status: RESOLVED FIXED
Alias: CVE-2024-0911
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/392196/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-0911:5.0:(AV:L...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-26 08:38 UTC by SMASH SMASH
Modified: 2024-04-19 08:31 UTC (History)
3 users (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 SMASH SMASH 2024-01-26 08:38:13 UTC
GNU Indent 2.2.13 has a heap-based buffer overflow in set_buf_break via a crafted file. 

Originally reported at: https://bugzilla.redhat.com/show_bug.cgi?id=2259883

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-0911
https://bugzilla.redhat.com/show_bug.cgi?id=2260399
https://bugzilla.redhat.com/show_bug.cgi?id=2259883
Comment 1 Andrea Mattiazzo 2024-01-26 08:38:46 UTC
Tracking as affected:
- SUSE:SLE-12:Update/indent  2.2.10
- SUSE:SLE-15:Update/indent  2.2.11
- openSUSE:Factory/indent    2.2.13
Comment 3 Petr Gajdos 2024-02-16 10:08:15 UTC
BEFORE

TW,15,12/indent

$ printf '/*a*/(' | valgrind -q indent - 
==30218== Invalid read of size 2
==30218==    at 0x11017A: set_buf_break (output.c:319)
==30218==    by 0x116BB5: indent_main_loop (indent.c:640)
==30218==    by 0x1196DF: indent.isra.0 (indent.c:759)
==30218==    by 0x10EC93: UnknownInlinedFun (indent.c:1004)
==30218==    by 0x10EC93: UnknownInlinedFun (indent.c:1042)
==30218==    by 0x10EC93: main (indent.c:1123)
==30218==  Address 0x4a6249c is 4 bytes before a block of size 16 alloc'd
==30218==    at 0x484C7BF: calloc (in /usr/libexec/valgrind/vgpreload_memcheck-amd64-linux.so)
==30218==    by 0x10FE6F: xmalloc (globs.c:42)
==30218==    by 0x10E461: UnknownInlinedFun (parse.c:73)
==30218==    by 0x10E461: main (indent.c:1101)
==30218== 
/*a*/ (
$

PATCH

see comment 2


AFTER

TW,15,12/indent

:/ # printf '/*a*/(' | valgrind -q indent -
/*a*/ (
:/ #
Comment 4 Petr Gajdos 2024-02-16 10:09:37 UTC
Submitted into devel project:
https://build.opensuse.org/request/show/1147061

Submitted also into 15,12/indent.

I believe all fixed.
Comment 6 Maintenance Automation 2024-03-22 12:30:43 UTC
SUSE-SU-2024:0965-1: An update that solves one vulnerability can now be installed.

Category: security (moderate)
Bug References: 1219210
CVE References: CVE-2024-0911
Maintenance Incident: [SUSE:Maintenance:32636](https://smelt.suse.de/incident/32636/)
Sources used:
Development Tools Module 15-SP5 (src):
 indent-2.2.11-150000.3.9.1
openSUSE Leap 15.5 (src):
 indent-2.2.11-150000.3.9.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 7 Maintenance Automation 2024-04-08 12:31:12 UTC
SUSE-SU-2024:1134-1: An update that solves one vulnerability can now be installed.

Category: security (moderate)
Bug References: 1219210
CVE References: CVE-2024-0911
Maintenance Incident: [SUSE:Maintenance:32637](https://smelt.suse.de/incident/32637/)
Sources used:
SUSE Linux Enterprise Software Development Kit 12 SP5 (src):
 indent-2.2.10-38.9.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 8 Carlos López 2024-04-19 08:31:34 UTC
All done, closing.