Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180695 - sys-block/open-iscsi < 2.0-865 Two vulnerabilities (CVE-2007-3099, CVE-2007-3100)
Summary: sys-block/open-iscsi < 2.0-865 Two vulnerabilities (CVE-2007-3099, CVE-2007-3...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High trivial
Assignee: Gentoo Security
URL:
Whiteboard: ~3 [noglsa] DerCorny
Keywords:
Depends on: 139865
Blocks:
  Show dependency tree
 
Reported: 2007-06-03 06:41 UTC by Sune Kloppenborg Jeppesen (RETIRED)
Modified: 2007-08-29 10:00 UTC (History)
2 users (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 2007-06-03 06:41:53 UTC
1)     iscsid provides a management interface using an AF_LOCAL
        socket. To prevent unauthorized users from messing with it, it
        checks for the client's uid by doing a getsockopt(SO_PEERCRED).

        Unfortunately, it performs this operation on the *listening* socket,
        rather than the newly accepted connection. This will always return
        a uid of 0, effectively allowing everyone to perform management
        operations on the iSCSI initiator.

        It currently appears as if the impact is limited to DoS, as there's
        no obvious way for an attacker to retrieve eg passwords, or
        gain privilege. There's a whole lot of code though, so maybe
        there's a buffer overflow lurking somewhere that can be exploited.

        However, at a minimum this allows an attacker to shoot down iscsid,
        or tear down individual iSCSI connections.

 2)     iscsid uses a rather fanciful logging mechanism, where
        the main process logs to a shared memory area, from
        where a child process picks up the messages and feeds
        them to syslog. This is protected by a semaphore created
        with mode 0666. This allows anyone to up the semaphore.
        iscsid will block on the next attempt to log something, and
        hang indefinitely.
Comment 1 Stefan Cornelius (RETIRED) gentoo-dev 2007-07-12 17:47:31 UTC
http://svn.berlios.de/viewcvs/open-iscsi?rev=858&view=rev
http://svn.berlios.de/viewcvs/open-iscsi?rev=857&view=rev

robbat2, please provide fixed ebuilds, thx
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2007-08-29 09:45:27 UTC
2.0.865.12 is in the tree now.
Comment 3 Pierre-Yves Rofes (RETIRED) gentoo-dev 2007-08-29 10:00:28 UTC
Thanks Robin. rerating since there was no stable version, and closing.