Bug 91585 - ioperm security fix is flawed, still uses uninitialized memory
Summary: ioperm security fix is flawed, still uses uninitialized memory
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel
Version: 9
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Arjan van de Ven
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-05-25 00:50 UTC by Barry K. Nathan
Modified: 2007-04-18 16:53 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2003-06-03 10:16:14 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2003:187 0 normal SHIPPED_LIVE : Updated 2.4 kernel fixes vulnerabilities and driver bugs 2003-05-22 04:00:00 UTC

Description Barry K. Nathan 2003-05-25 00:50:22 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4b) Gecko/20030518
Mozilla Firebird/0.6

Description of problem:
The 2.4.20-13.9 backport of the ioperm security fix only copies 1/4th of the
bitmap when it should be copying the whole thing. This still leaves memory
uninitialized, so the original hole is still not completely fixed. Furthermore,
some programs that previously worked (svgalib and FCE Ultra in particular) are
now broken.

See below for links to both a test case and a fix.

Version-Release number of selected component (if applicable):
kernel-2.4.20-13.9

How reproducible:
Sometimes

Steps to Reproduce:
There is a test case in this mailing list post (but ignore the comments about
2.5 also being broken -- it's not, and I corrected myself in a followup):
http://marc.theaimsgroup.com/?l=linux-kernel&m=105367363526877&w=2

Actual Results:  Test case often segfaults when performing inb operation.

(FWIW, FCE Ultra (emulator for Nintendo), when invoked as "fceu", typically
segfaults.)

Expected Results:  Test case should always print "result: " and some number,
when run as root.

(And "fceu" should print command line option help without segfaulting first.)

Additional info:

A possible fix is here:
http://marc.theaimsgroup.com/?l=linux-kernel&m=105368405504595&w=2

(If that's too invasive and you want me to make a simpler patch, feel free to
let me know.)

As you might be able to tell from the URLs above, I already posted about this on
the linux-kernel mailing list (regarding 2.4.21-rc3). I'm filing this report in
Bugzilla because it happens with Red Hat's own kernels too.

Comment 1 Barry K. Nathan 2003-05-26 22:53:36 UTC
FWIW, my patch is now in 2.4.21-rc4.

Comment 2 Arjan van de Ven 2003-06-03 10:16:14 UTC
An errata 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-2003-187.html



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