Bug 121041 - CVE-2004-0181 jfs infoleak
CVE-2004-0181 jfs infoleak
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 3
Classification: Red Hat
Component: kernel (Show other bugs)
3.0
All Linux
medium Severity low
: ---
: ---
Assigned To: Stephen Tweedie
impact=low,public=20040228
: Security
Depends On:
Blocks: 156320
  Show dependency treegraph
 
Reported: 2004-04-16 09:23 EDT by Mark J. Cox (Product Security)
Modified: 2007-11-30 17:07 EST (History)
3 users (show)

See Also:
Fixed In Version: RHSA-2005-663
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-09-28 10:22:39 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)
jfs patch for 2.4 (1.36 KB, patch)
2004-04-17 07:47 EDT, Mark J. Cox (Product Security)
no flags Details | Diff

  None (edit)
Description Mark J. Cox (Product Security) 2004-04-16 09:23:25 EDT
Whenever you create a file on an jfs filesystem, some amount of other
in-memory data, _not_ the file's contents and _not_ something which is
present in the same filesystem or which previously was in a file at
all, gets written to the device holding the filesystem.

Could be a security issue if you have stuff in memory like crypto keys
and don't expect them to get stuck on disk (well unless swapped)

Issue is a fairly minor severity

Similar to CAN-2004-0133, reported by Solar Designer of OpenWall on
Feb28.  Embargo lifted April 14th 2004

(note does not affect RHEL2.1 ia32)
Comment 3 Mark J. Cox (Product Security) 2004-04-17 07:47:50 EDT
Created attachment 99508 [details]
jfs patch for 2.4
Comment 4 Stephen Tweedie 2005-05-25 08:34:51 EDT
This patch matches what's in 2.6, but I'm not convinced it is correct.  In
particular, the rest of the function __get_metapage() seems to use the "size"
argument for the logical block size; yet the memset added at the end uses an
unconditional "PSIZE" (always 4096 bytes) as the size.  It's not at all clear to
me which is correct, especially for architectures that have pagesize other than
4096 bytes. 

Dave, can you confirm that this is intended?  

Other than that, this patch looks OK.  I haven't done *any* testing on it, but
it matches what's upstream so I assume it's sane enough at least on common
platforms.
Comment 5 Dave Kleikamp 2005-05-25 08:51:09 EDT
The fix is correct, and is the same patch as was submitted to the mainline
kernel: http://linux.bkbits.net:8080/linux-2.4/cset@40575a9epBHk-c8KEyc5eYwpXn6Cgg

In __get_metapage, size will always be equal to PSIZE.  JFS on linux has always
supported only 4K blocks.  Also, jfs in the 2.4 kernel is completely broken on
architectures with a page size greater than 4K.  This was recently fixed in the
2.6 kernel, but the changes were too pervasive to port back to 2.4.

The patch is good.
Comment 6 Stephen Tweedie 2005-05-25 09:27:36 EDT
Thanks!
Comment 9 Ernie Petrides 2005-05-31 20:39:24 EDT
A fix for this problem has just been committed to the RHEL3 U6
patch pool this evening (in kernel version 2.4.21-32.6.EL).
Comment 15 Red Hat Bugzilla 2005-09-28 10:22:40 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2005-663.html

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