Bug 1837650 (CVE-2018-21232) - CVE-2018-21232 re2c: uncontrolled recursion that causes stack consumption in find_fixed_tags
Summary: CVE-2018-21232 re2c: uncontrolled recursion that causes stack consumption in ...
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2018-21232
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 1837651
TreeView+ depends on / blocked
 
Reported: 2020-05-19 18:23 UTC by Guilherme de Almeida Suckevicz
Modified: 2021-02-16 20:01 UTC (History)
5 users (show)

Fixed In Version: re2c 2.0
Clone Of:
Environment:
Last Closed: 2020-05-20 03:15:22 UTC
Embargoed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2020-05-19 18:23:35 UTC
re2c before 2.0 has uncontrolled recursion that causes stack consumption in find_fixed_tags.

References:
https://github.com/skvadrik/re2c/issues/219
https://www.openwall.com/lists/oss-security/2020/04/27/2
http://www.openwall.com/lists/oss-security/2020/05/14/4

Comment 1 Todd Cullum 2020-05-20 02:36:05 UTC
It appears that re2c was either not tested or not designed for use with small-stack systems (~256kb) in mind. In more than 4 components[1], it uses recursion which creates a stack overflow on systems with such small stack sizes.

1. https://www.openwall.com/lists/oss-security/2020/04/27/2

Comment 2 Todd Cullum 2020-05-20 02:37:14 UTC
Statement:

This vulnerability does not affect any version of re2c shipped with any version of Red Hat Enterprise Linux.

Comment 3 Product Security DevOps Team 2020-05-20 03:15:22 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-2018-21232


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