Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 540736 - (CVE-2009-4020) CVE-2009-4020 kernel: hfs buffer overflow
CVE-2009-4020 kernel: hfs buffer overflow
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
public=20091204,reported=20091124,sou...
: Security
Depends On: 540738 540739 540740 540741
Blocks:
  Show dependency treegraph
 
Reported: 2009-11-23 19:48 EST by Eugene Teo (Security Response)
Modified: 2015-07-13 03:39 EDT (History)
13 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-07-10 12:22:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
patch for rhel-5 (1.76 KB, patch)
2009-11-23 19:53 EST, Eugene Teo (Security Response)
no flags Details | Diff
patch for kernel 2.6.31.6 (1.76 KB, patch)
2009-11-23 19:54 EST, Eugene Teo (Security Response)
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2010:0046 normal SHIPPED_LIVE Important: kernel security and bug fix update 2010-01-19 18:36:43 EST
Red Hat Product Errata RHSA-2010:0076 normal SHIPPED_LIVE Important: kernel security and bug fix update 2010-02-02 15:41:06 EST

  None (edit)
Description Eugene Teo (Security Response) 2009-11-23 19:48:58 EST
Description of problem:
A specially-crafted Hierarchical File System (HFS) filesystem could cause a buffer overflow to occur in a process's kernel stack during a memcpy() call within the hfs_bnode_read() function (at fs/hfs/bnode.c:24). The attacker can provide the source buffer and length, and the destination buffer is a local variable of a fixed length. This local variable (passed as "&entry" from fs/hfs/dir.c:112 and allocated on line 60) is stored in the stack frame of hfs_bnode_read()'s caller, which is hfs_readdir(). Because the hfs_readdir() function executes upon any attempt to read a directory on the filesystem, it gets called whenever a user attempts to inspect any filesystem contents.
Comment 1 Eugene Teo (Security Response) 2009-11-23 19:53:12 EST
Created attachment 373294 [details]
patch for rhel-5
Comment 2 Eugene Teo (Security Response) 2009-11-23 19:54:53 EST
Created attachment 373295 [details]
patch for kernel 2.6.31.6
Comment 5 Eugene Teo (Security Response) 2009-12-03 23:44:31 EST
The patch has been added to the -mm tree:
http://marc.info/?l=linux-mm-commits&m=125987755823047&w=2
Comment 6 Eugene Teo (Security Response) 2009-12-15 18:35:48 EST
Upstream commit:
http://git.kernel.org/linus/ec81aecb29668ad71f699f4e7b96ec46691895b6
Comment 7 Chuck Ebbert 2010-01-06 03:36:32 EST
Fixed in 2.6.32.2, 2.6.31.9 and 2.6.27.42:
hfs-fix-a-potential-buffer-overflow.patch
Comment 8 errata-xmlrpc 2010-01-19 18:37:17 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2010:0046 https://rhn.redhat.com/errata/RHSA-2010-0046.html
Comment 9 Aristeu Rozanski 2010-01-26 08:05:57 EST
We don't have hfs or hfs+ enabled in RHEL6.
Comment 10 errata-xmlrpc 2010-02-02 15:41:25 EST
This issue has been addressed in following products:

  Red Hat Enterprise Linux 4

Via RHSA-2010:0076 https://rhn.redhat.com/errata/RHSA-2010-0076.html

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