Bug 197670 - CVE-2006-2935 Possible buffer overflow in DVD handling
CVE-2006-2935 Possible buffer overflow in DVD handling
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Chip Coldwell
Brian Brock
: Security
Depends On:
  Show dependency treegraph
Reported: 2006-07-05 09:23 EDT by Marcel Holtmann
Modified: 2007-11-30 17:07 EST (History)
2 users (show)

See Also:
Fixed In Version: RHSA-2006-0617
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-08-22 14:50:35 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Proposed patch from Jens Axboe (465 bytes, patch)
2006-07-05 09:25 EDT, Marcel Holtmann
no flags Details | Diff

  None (edit)
Description Marcel Holtmann 2006-07-05 09:23:20 EDT
Reported by Marcus Meissner to the Kernel Bugzilla:


The dvd_read_bca() function in drivers/cdrom/cdrom.c shows a potential buffer
The variable buf[4+188] is allocated on the stack, however cgc.cmd[9] and
cgc.buflen are set to 255:

cgc.cmd[9] = cgc.buflen = 0xff;
This can be exploited by a custom made USB Storage device and used for local
privilege escalation (aka plug-in this USB device to get root).

This function has been introduced in 2.2.16 (back in 2000) and as of today it
hasn't changed. Jens Axboe confirmed that this is a typo and it should read:

cgc.cmd[9] = cgc.buflen & 0xff;

It is to mask high bits of the length. It doesn't use the high 8 bits for
transfer length, since we are always < 256 for this case.
Comment 1 Marcel Holtmann 2006-07-05 09:25:45 EDT
Created attachment 131920 [details]
Proposed patch from Jens Axboe
Comment 3 Jason Baron 2006-08-07 14:49:47 EDT
committed in stream E5 build 42.0.1. A test kernel with this patch is available
from http://people.redhat.com/~jbaron/rhel4/
Comment 6 Red Hat Bugzilla 2006-08-22 14:50:37 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.

Comment 8 Jason Baron 2006-08-30 13:48:26 EDT
committed in stream U5 build 42.4. A test kernel with this patch is available
from http://people.redhat.com/~jbaron/rhel4/

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