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
Summary: CVE-2013-4237 glibc: Buffer overwrite when using readdir_r on file systems re...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2013-4237
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 995841 996227 1111460
Blocks: 856696 1101912
TreeView+ depends on / blocked
 
Reported: 2013-08-11 12:46 UTC by Jan Lieskovsky
Modified: 2021-02-17 07:26 UTC (History)
15 users (show)

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.
Clone Of:
Environment:
Last Closed: 2014-10-14 09:42:39 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2014:1391 0 normal SHIPPED_LIVE Moderate: glibc security, bug fix, and enhancement update 2014-10-14 01:11:04 UTC

Description Jan Lieskovsky 2013-08-11 12:46:37 UTC
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 12:55:09 UTC
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 12:55:41 UTC
Created glibc tracking bugs for this issue:

Affects: fedora-all [bug 995841]

Comment 4 Jan Lieskovsky 2013-08-11 13:05:59 UTC
CVE Request:
  http://www.openwall.com/lists/oss-security/2013/08/11/2

Comment 10 Vincent Danen 2013-08-13 14:38:55 UTC
This was assigned CVE-2013-4237:

http://www.openwall.com/lists/oss-security/2013/08/12/8

Comment 12 Fedora Update System 2013-08-22 00:49:27 UTC
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 16:08:54 UTC
Mitigation:

Do not open untrusted filesystem image files on production systems.

Comment 19 Vincent Danen 2014-06-19 18:20:29 UTC
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 Prpič 2014-10-10 08:43:38 UTC
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 04:41:52 UTC
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.