Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 85795 - Kernel: Potential ROSE and SCSI Tape vulns fixed in 2.6.12-rc1 (CVE-2005-3273)
Summary: Kernel: Potential ROSE and SCSI Tape vulns fixed in 2.6.12-rc1 (CVE-2005-3273)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Kernel (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Security
URL: http://secunia.com/advisories/14585/
Whiteboard: [linux < 2.6.12 ]
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-18 09:49 UTC by Jean-François Brunette (RETIRED)
Modified: 2009-05-03 15:03 UTC (History)
5 users (show)

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


Attachments
2.6.11 Compound Patch (2.6.11-85795.patch,14.31 KB, patch)
2005-04-15 14:49 UTC, Tim Yamin (RETIRED)
no flags Details | Diff
2.6.10 (and below) Compound Patch (2.6.10-85795.patch,14.23 KB, patch)
2005-04-15 14:50 UTC, Tim Yamin (RETIRED)
no flags Details | Diff
ROSE fixes with minor cleanup and SCSI tape fix removed. (rose-fix.patch,14.83 KB, patch)
2005-05-01 12:15 UTC, Lorenzo Hernández García-Hierro
no flags Details | Diff
The correct patch for the ROSE driver fix (wtihout the rest of cleanups and not necessary changes) (rose-fix-ndigis.patch,795 bytes, patch)
2005-05-01 12:51 UTC, Lorenzo Hernández García-Hierro
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-François Brunette (RETIRED) gentoo-dev 2005-03-18 09:49:40 UTC
Description:
Some vulnerabilities have been reported in the Linux kernel. One has an unknown impact, and the others can be exploited to cause a DoS (Denial of Service) and potentially compromise a vulnerable system.

1) An error exists in ROSE due to missing verification of the ndigis argument of new routes.

2) Any user with permissions to access a SCSI tape device can send some commands, which may cause it to become unusable for other users.

3) Some unspecified errors have been reported in the ISO9660 filesystem handler including Rock Ridge and Juliet extensions. These can be exploited via a specially crafted filesystem to cause a DoS or potentially corrupt memory leading to execution of arbitrary code.

Solution:
The vulnerabilities have been fixed in version 2.6.12-rc1.

Original Advisory:
Kernel.org:
http://kernel.org/pub/linux/kernel/v2.6/testing/ChangeLog-2.6.12-rc1
Comment 1 Thierry Carrez (RETIRED) gentoo-dev 2005-03-26 09:26:48 UTC
ISO9660 vulnerabilities are now treated in bug 86784
Comment 2 Tim Yamin (RETIRED) gentoo-dev 2005-04-15 14:49:59 UTC
Created attachment 56383 [details, diff]
2.6.11 Compound Patch
Comment 3 Tim Yamin (RETIRED) gentoo-dev 2005-04-15 14:50:48 UTC
Created attachment 56384 [details, diff]
2.6.10 (and below) Compound Patch
Comment 4 Joshua Kinard gentoo-dev 2005-04-23 22:27:05 UTC
mips-sources fixed.
Comment 5 Daniel Drake (RETIRED) gentoo-dev 2005-04-27 13:55:12 UTC
2) Any user with permissions to access a SCSI tape device can send some commands, which may cause it to become unusable for other users.

Alan Cox says the patch to solve this is totally wrong, and I'd agree with my basic knowledge of the SCSI command table. No proper fix is available (but I'm not even sure if one is needed...)
Comment 6 Tim Yamin (RETIRED) gentoo-dev 2005-04-27 14:35:30 UTC
Obsoleting patches: Alan Cox says the upstream fix (which said patches contain) is wrong, so we're now waiting on upstream for the SCSI issue.

For the ROSE issue please use:

http://linux.bkbits.net:8080/linux-2.6/gnupatch@423114bcdthRtmtdS6MsZiBVvteGCg
Comment 7 Daniel Drake (RETIRED) gentoo-dev 2005-04-29 17:39:44 UTC
ROSE Fixed in usermode-sources-2.6.11
Comment 8 Daniel Drake (RETIRED) gentoo-dev 2005-04-30 03:27:39 UTC
Here's the new/approved scsi tape fix:
http://dev.gentoo.org/~dsd/gentoo-sources/release-11.10/dist/1105_scsi_tape.patch
Comment 9 Daniel Drake (RETIRED) gentoo-dev 2005-04-30 09:14:45 UTC
All fixed in gentoo-sources-2.6.11-r7
Comment 10 Tim Yamin (RETIRED) gentoo-dev 2005-05-01 07:12:43 UTC
`Kumba: CCing you again as there's a new fixed bug for the SCSI issues, see http://dev.gentoo.org/~dsd/gentoo-sources/release-11.10/dist/1105_scsi_tape.patch
Comment 11 solar (RETIRED) gentoo-dev 2005-05-01 07:39:51 UTC
tseng,tocharian,kang,trulux: you guys need these updates for hardened-sources-2.6.x and rsbac-sources-2.6.x
Comment 12 Tim Yamin (RETIRED) gentoo-dev 2005-05-01 11:25:23 UTC
Ok, so the new upstream SCSI fix is no good (again): http://marc.theaimsgroup.com/?l=linux-scsi&m=111497008818281&w=2

... please apply only the ROSE fix for now.
Comment 13 Lorenzo Hernández García-Hierro 2005-05-01 12:15:42 UTC
Created attachment 57758 [details, diff]
ROSE fixes with minor cleanup and SCSI tape fix removed.

A new patchset has been uploaded to
http://pearls.tuxedo-es.org/gentoo/hardened/kernel/hardened-patches-2.6-11.3.tar.bz2.


Also, two ebuilds are provided:
http://pearls.tuxedo-es.org/gentoo/hardened/kernel/hardened-sources-2.6.11-r1.ebuild
(uses pearls.tuxedo-es.org as HGPV_SRC) and the one using tseng's space at
dev.gentoo.org (default):
http://pearls.tuxedo-es.org/gentoo/hardened/kernel/hardened-sources-2.6.11-r1.ebuild.tseng


Cheers,
Lorenzo.
Comment 14 Lorenzo Hernández García-Hierro 2005-05-01 12:51:03 UTC
Created attachment 57762 [details, diff]
The correct patch for the ROSE driver fix (wtihout the rest of cleanups and not necessary changes)

This the right patch.
Thanks Tim for pointing out the right CSET.
Comment 15 Lorenzo Hernández García-Hierro 2005-05-01 12:57:04 UTC
New patchset with the correct patch uploaded to http://pearls.tuxedo-es.org/gentoo/hardened/kernel/hardened-patches-2.6-11.3.tar.bz2.

Cheers,
Lorenzo.
Comment 16 Guillaume Destuynder (RETIRED) gentoo-dev 2005-05-01 13:31:34 UTC
rsbac-sources fixed with latest patch as r-s-2.6.11-r3
Comment 17 Elfyn McBratney (beu) (RETIRED) gentoo-dev 2005-07-31 07:12:36 UTC
Removing Lorenzo from cc per request via email.
Comment 18 Tim Yamin (RETIRED) gentoo-dev 2005-08-20 11:39:41 UTC
All fixed, closing bug.