Release date: Updated: 2010-01-25 affected systems: RedHatLinux5.x Description: Creating BUGTRAQID: 37876 CVEID: CVE-2009-3556LinuxKernel is open source
Release date: 2010-01-20
Updated on: 2010-01-25
Affected Systems:
RedHat Linux 5.x
Description:
--------------------------------------------------------------------------------
Bugtraq id: 37876
Cve id: CVE-2009-3556
Linux Kernel is the Kernel used by open source Linux.
For a Red Hat Linux Kernel system that uses the qla2xxx driver and supports NPIV hardware, the driver adds two new sysfs pseudo files to the SCSI host attributes:
W -- w-root/sys/class/scsi_host/host1/vport_create
W -- w-root/sys/class/scsi_host/host1/vport_delete
W -- w-root/sys/class/scsi_host/host2/vport_create
W -- w-root/sys/class/scsi_host/host2/vport_delete
By default, these two files are completely writable (S_IWUGO/0222). Local Users can change the SCSI host attributes at will.
<* Source: Bryn M. Reeves
Link: https://bugzilla.redhat.com/show_bug.cgi? Format = multiple & amp; id = 537177
Https://www.redhat.com/support/errata/RHSA-2010-0046.html
*>
Test method:
--------------------------------------------------------------------------------
Alert
The following procedures (methods) may be offensive and are intended only for security research and teaching. Users are at your own risk!
Ls-l/sys/class/scsi_host // vport _*
Ls-l/sys/class/scsi_host // vport_id
Ls-l/sys/class/scsi_host // vport_disable
Ls-l/sys/class/scsi_host // symbolic_port_name
Actual results:
-- W-root/sys/class/scsi_host/host1/vport_create
-- W-root/sys/class/scsi_host/host1/vport_delete
-- W-root/sys/class/scsi_host/host2/vport_create
-- W-root/sys/class/scsi_host/host2/vport_delete
Expected results:
-Rw-r -- root/sys/class/scsi_host/host1/vport_create
-Rw-r -- root/sys/class/scsi_host/host1/vport_delete
-Rw-r -- root/sys/class/scsi_host/host2/vport_create
-Rw-r -- root/sys/class/scsi_host/host2/vport_delete
Suggestion:
--------------------------------------------------------------------------------
Vendor patch:
RedHat
------
For this reason, RedHat has released a Security Bulletin (RHSA-2010: 0046-01) and patch:
RHSA-2010: 0046-01: Important: kernel security and bug fix update
Link: https://www.redhat.com/support/errata/RHSA-2010-0046.html