Bug 1167548 (CVE-2014-9471) - CVE-2014-9471 coreutils: memory corruption flaw in parse_datetime()
Summary: CVE-2014-9471 coreutils: memory corruption flaw in parse_datetime()
Keywords:
Status: CLOSED WONTFIX
Alias: CVE-2014-9471
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: 1069657 1167549 1185947
Blocks: 1167550
TreeView+ depends on / blocked
 
Reported: 2014-11-25 04:51 UTC by Murray McAllister
Modified: 2021-02-17 05:58 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-02-17 18:59:49 UTC
Embargoed:


Attachments (Terms of Use)

Description Murray McAllister 2014-11-25 04:51:43 UTC
A memory corruption flaw was reported in parse_datetime(). If an application using parse_datetime(), such as touch or date, accepted untrusted input, it could cause the application to crash or, potentially, execute arbitrary code.

Patch:

http://debbugs.gnu.org/cgi/bugreport.cgi?msg=11;filename=date-tz-crash.patch;att=1;bug=16872

References:
http://seclists.org/oss-sec/2014/q4/782
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16872

Comment 1 Murray McAllister 2014-11-25 04:52:46 UTC
Created coreutils tracking bugs for this issue:

Affects: fedora-all [bug 1167549]

Comment 2 Ondrej Vasik 2014-11-25 08:50:29 UTC
I believe this vulnerability was already addressed in F20+ Fedora (e.g. http://pkgs.fedoraproject.org/cgit/coreutils.git/commit/?h=f20 , https://bugzilla.redhat.com/show_bug.cgi?id=1069657 ). I consider this as a corner case - actually the issue is there since 5.3.0 , so RHEL-5+ are affected. That's the primary reason why I fixed that only in F20+. I'm going to close the F20 one as duplicate and keeping the tracking one opened. F19 was not yet fixed, if you believe this is imporant enough to issue a fix for f19, I can do that. Still, RHEL5+ are affected as I said.

Comment 3 Martin Prpič 2014-12-02 14:40:51 UTC
In coreutils 8.4 (shipped with RHEL5 and 6), this is limited to an indefinite hang and 100% CPU consumption.

The affected function in coreutils 8.4 is get_date().

Reproducers:

$ touch '--date=TZ="123"345" @1'
$ date '--date=TZ="123"345" @1'

Comment 5 Martin Prpič 2015-01-06 09:29:05 UTC
MITRE assigned CVE-2014-9471 to this issue: http://seclists.org/oss-sec/2015/q1/17

Comment 7 Vincent Danen 2015-02-17 18:59:49 UTC
Statement:

Red Hat Product Security has rated this issue as having Low security impact. This issue is not currently planned to be addressed in future updates. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.


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