Bug 903464 (CVE-2013-0221) - CVE-2013-0221 coreutils: segfault in "sort -d" and "sort -M" with long line input
Summary: CVE-2013-0221 coreutils: segfault in "sort -d" and "sort -M" with long line i...
Alias: CVE-2013-0221
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 903468 1015019
Blocks: 974906
TreeView+ depends on / blocked
Reported: 2013-01-24 03:46 UTC by Vincent Danen
Modified: 2021-02-17 08:09 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2015-03-05 13:03:22 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2013:1652 0 normal SHIPPED_LIVE Low: coreutils security, bug fix, and enhancement update 2013-11-20 21:53:21 UTC

Description Vincent Danen 2013-01-24 03:46:38 UTC
It was reported [1] that the sort command suffered from a segfault when processing input streams that contained extremely long strings when used with the -d and -M switches.  This flaw is due to the inclusion of the coreutils-i18n.patch.

SUSE has fixed this by fixing the patch.  The changes can be seen here [2].  (There is probably e better place to get the patch, but I don't know where).

[1] https://bugzilla.novell.com/show_bug.cgi?id=798538
[2] https://build.opensuse.org/request/show/149348#diff_headline_coreutils-i18n-patch_diff_action_0_submit_0_19



Comment 1 Vincent Danen 2013-01-24 03:54:22 UTC
Created coreutils tracking bugs for this issue

Affects: fedora-all [bug 903468]

Comment 2 Ondrej Vasik 2013-01-24 15:58:04 UTC
Thanks Vincent, but fedora-all is not really true, I already fixed the issue in Rawhide...  
- fix multiple segmantation faults in i18n patch (by SUSE) (#869442, #902917)

Should I just close the bugzillas reported by you as duplicates of #902917/#869442 ?

Btw. all RHELs are affected as well, they use the vulnerable alloca constructs as well...

Comment 3 Vincent Danen 2013-01-29 23:30:04 UTC
Well, we're not as concerned with Rawhide as we are with released versions.  So unless it's fixed in Fedora 17 and 18, the fedora-all tracker should remain open.  Once they are fixed there, feel free to close it via the regular process.

For RHEL, we know they are affected.  See #c0's statement regarding how we are deferring the fix (low-impact flaw).

Comment 4 Fedora Update System 2013-02-01 16:28:04 UTC
coreutils-8.17-8.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 errata-xmlrpc 2013-11-21 20:59:04 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2013:1652 https://rhn.redhat.com/errata/RHSA-2013-1652.html

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