Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 54857 - Linux kernel IEEE 1394(Firewire) driver integer overflows
Summary: Linux kernel IEEE 1394(Firewire) driver integer overflows
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL: http://www.securityfocus.com/archive/...
Whiteboard:
Keywords:
: 54883 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-06-22 22:57 UTC by Sune Kloppenborg Jeppesen (RETIRED)
Modified: 2005-03-17 08:38 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2004-06-22 22:57:58 UTC
Possible vulnerability posted to Bugtraq.

Linux kernel IEEE 1394(Firewire) driver - integer overflows
-----------------------------------------------------------

Link: 
        http://www.linux1394.org/index.php

Driver Description:
IEEE 1394 is a standard defining a high speed serial bus. This bus is also named
FireWire by Apple or i.Link by Sony. All these names refer to the same thing,
but the neutral term IEEE 1394 (or just 1394) is used on these web pages and in
the sources.

This driver is included in standard linux distros.  It is located in
/usr/src/linux/drivers/ieee1394/.

Impact: 
        Local DOS, possible code execution

Vuln:

there exist multiple integer overflows in the memory allocation scheme of the
driver.  in the write method of the driver a user buffer is copied into kernel
space. in this buffer is a request structure that contains an unsigned length
field.  this field is used to allocate memory, after it is added to another
number. there are no checks to see if this overflows during integer addition. 
this problem occurs in the alloc_hpsb_packet function.
the problem exists in both the 2.4 and 2.6 version of driver, 2.2 was not
checked.  the functions leading up to this are spread out through a couple
files:
Comment 1 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2004-06-23 05:40:40 UTC
*** Bug 54883 has been marked as a duplicate of this bug. ***
Comment 2 Joshua J. Berry (CondorDes) (RETIRED) gentoo-dev 2004-06-29 14:54:44 UTC
Updating status whiteboard
Comment 3 Thierry Carrez (RETIRED) gentoo-dev 2004-06-30 01:20:20 UTC
CondorDes: this is still unconfirmed. There is no sign of an acknowledgement or a fix from anywhere except that Bugtraq post (or did you find one ?). Bug will remain as NEW (and without status whiteboard) until we get an external confirmation of this.
Comment 4 Greg Kroah-Hartman (RETIRED) gentoo-dev 2004-06-30 11:27:36 UTC
Also, as no non-root user can access these device nodes, it really isn't
that big of a problem.
Comment 5 Thierry Carrez (RETIRED) gentoo-dev 2004-07-16 07:19:41 UTC
If you have to be root to exploit it, it's not a security bug. Reassigning.
Comment 6 Daniel Drake (RETIRED) gentoo-dev 2005-03-17 08:38:21 UTC
A member of the audit team had a look and gave an indiciation that this appears to be fixed.