Bug 995839 - (CVE-2013-4237) CVE-2013-4237 glibc: Buffer overwrite when using readdir_r on file systems returning file names longer than NAME_MAX characters
CVE-2013-4237 glibc: Buffer overwrite when using readdir_r on file systems re...
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20130811,repor...
: Security
Depends On: 995841 996227 1111460
Blocks: 856696 1101912
  Show dependency treegraph
 
Reported: 2013-08-11 08:46 EDT by Jan Lieskovsky
Modified: 2015-10-15 13:56 EDT (History)
15 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
An out-of-bounds write flaw was found in the way the glibc's readdir_r() function handled file system entries longer than the NAME_MAX character constant. A remote attacker could provide a specially crafted NTFS or CIFS file system that, when processed by an application using readdir_r(), would cause that application to crash or, potentially, allow the attacker to execute arbitrary code with the privileges of the user running the application.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2014-10-14 05:42:39 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Jan Lieskovsky 2013-08-11 08:46:37 EDT
An out-of buffer bounds write flaw was found in the way the readdir_r function in glibc, the GNU C Library, handled a directory entry whose file name name contained more byte than the NAME_MAX characters constant indicated. An attacker could provide a specially-crafted (local) NTFS or (remote) CIFS file system that, when processed in an application using the readdir_r() function, would cause that application to crash or, potentially, execute arbitrary code with the privileges of the user running the application.

Upstream bug report:
[1] http://sourceware.org/bugzilla/show_bug.cgi?id=14699

Latest patch proposal:
[2] http://sourceware.org/ml/libc-alpha/2013-05/msg00445.html
Comment 1 Jan Lieskovsky 2013-08-11 08:55:09 EDT
This issue affects the (latest) versions of the glibc package, as shipped with Fedora release of 18 and 19. Please schedule an update.
Comment 2 Jan Lieskovsky 2013-08-11 08:55:41 EDT
Created glibc tracking bugs for this issue:

Affects: fedora-all [bug 995841]
Comment 4 Jan Lieskovsky 2013-08-11 09:05:59 EDT
CVE Request:
  http://www.openwall.com/lists/oss-security/2013/08/11/2
Comment 10 Vincent Danen 2013-08-13 10:38:55 EDT
This was assigned CVE-2013-4237:

http://www.openwall.com/lists/oss-security/2013/08/12/8
Comment 12 Fedora Update System 2013-08-21 20:49:27 EDT
glibc-2.17-13.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 16 Vincent Danen 2014-03-18 12:08:54 EDT
Mitigation:

Do not open untrusted filesystem image files on production systems.
Comment 19 Vincent Danen 2014-06-19 14:20:29 EDT
Statement:

This issue affects the versions of glibc as shipped with Red Hat Enterprise Linux 5. This issue is not planned to be fixed in Red Hat Enterprise Linux 5 as it is now in Production 3 Phase of the support and maintenance life cycle, https://access.redhat.com/support/policy/updates/errata/
Comment 22 Martin Prpic 2014-10-10 04:43:38 EDT
IssueDescription:

An out-of-bounds write flaw was found in the way the glibc's readdir_r() function handled file system entries longer than the NAME_MAX character constant. An attacker could provide a specially crafted NTFS or CIFS file system that, when processed by an application using readdir_r(), would cause that application to crash or, potentially, allow the attacker to execute arbitrary code with the privileges of the user running the application.
Comment 23 errata-xmlrpc 2014-10-14 00:41:52 EDT
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2014:1391 https://rhn.redhat.com/errata/RHSA-2014-1391.html

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