Bug 1012974 (CVE-2013-4385) - CVE-2013-4385 chicken: buffer overrun
Summary: CVE-2013-4385 chicken: buffer overrun
Alias: CVE-2013-4385
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1012977 1012979
Blocks: 1012976
TreeView+ depends on / blocked
Reported: 2013-09-27 13:28 UTC by Ratul Gupta
Modified: 2019-09-29 13:08 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2013-11-25 02:40:40 UTC

Attachments (Terms of Use)

Description Ratul Gupta 2013-09-27 13:28:01 UTC
Chicken, a compiler for the Scheme programming language, is found to have a buffer overrrun flaw due to the read-string! procedure from the "extras" unit, when used in a particular way.

It was found that there was a missing check for the situation when NUM was at #f (the scheme value for false) in the buffer as the buffer size, then it will read beyond the buffer until the input port is exhausted. This may result in a DoS or a remote code execution.

Though currently all stable releases are vulnerable to this flaw, there is a simple workaround to be used in code that uses read-string!: simply convert all (read-string! #f buf ...) invocations to (read-string! (string-length buf) buf ...) or, if possible, use the non-destructive read-string procedure from the same unit.


Comment 1 Ratul Gupta 2013-09-27 13:31:18 UTC
Created chicken tracking bugs for this issue:

Affects: fedora-all [bug 1012977]
Affects: epel-6 [bug 1012979]

Comment 2 Fedora Update System 2013-09-30 00:48:00 UTC
chicken- has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

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