Bug 85795 - Kernel: Potential ROSE and SCSI Tape vulns fixed in 2.6.12-rc1 (CVE-2005-3273)
Bug#: 85795 Product:  Gentoo Security Version: unspecified Platform: All
OS/Version: All Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: security@gentoo.org Reported By: formula7@gentoo.org
Component: Kernel
URL:  http://secunia.com/advisories/14585/
Summary: Kernel: Potential ROSE and SCSI Tape vulns fixed in 2.6.12-rc1 (CVE-2005-3273)
Keywords:  
Status Whiteboard: [linux < 2.6.12 ]
Opened: 2005-03-18 09:49 0000
Description:   Opened: 2005-03-18 09:49 0000
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 From Thierry Carrez (RETIRED) 2005-03-26 09:26:48 0000 -------
ISO9660 vulnerabilities are now treated in bug 86784

------- Comment #2 From Tim Yamin (RETIRED) 2005-04-15 14:49:59 0000 -------
Created an attachment (id=56383) [details]
2.6.11 Compound Patch

------- Comment #3 From Tim Yamin (RETIRED) 2005-04-15 14:50:48 0000 -------
Created an attachment (id=56384) [details]
2.6.10 (and below) Compound Patch

------- Comment #4 From Joshua Kinard 2005-04-23 22:27:05 0000 -------
mips-sources fixed.

------- Comment #5 From Daniel Drake 2005-04-27 13:55:12 0000 -------
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 From Tim Yamin (RETIRED) 2005-04-27 14:35:30 0000 -------
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 From Daniel Drake 2005-04-29 17:39:44 0000 -------
ROSE Fixed in usermode-sources-2.6.11

------- Comment #8 From Daniel Drake 2005-04-30 03:27:39 0000 -------
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 From Daniel Drake 2005-04-30 09:14:45 0000 -------
All fixed in gentoo-sources-2.6.11-r7

------- Comment #10 From Tim Yamin (RETIRED) 2005-05-01 07:12:43 0000 -------
`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 From solar 2005-05-01 07:39:51 0000 -------
tseng,tocharian,kang,trulux: you guys need these updates for
hardened-sources-2.6.x and rsbac-sources-2.6.x

------- Comment #12 From Tim Yamin (RETIRED) 2005-05-01 11:25:23 0000 -------
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 From Lorenzo Hernández García-Hierro 2005-05-01 12:15:42 0000 -------
Created an attachment (id=57758) [details]
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 From Lorenzo Hernández García-Hierro 2005-05-01 12:51:03 0000 -------
Created an attachment (id=57762) [details]
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 From Lorenzo Hernández García-Hierro 2005-05-01 12:57:04 0000 -------
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 From Guillaume Destuynder (RETIRED) 2005-05-01 13:31:34 0000 -------
rsbac-sources fixed with latest patch as r-s-2.6.11-r3

------- Comment #17 From Elfyn McBratney (beu) (RETIRED) 2005-07-31 07:12:36 0000 -------
Removing Lorenzo from cc per request via email.

------- Comment #18 From Tim Yamin (RETIRED) 2005-08-20 11:39:41 0000 -------
All fixed, closing bug.