From: SecuriTeam <support@securiteam.com.>
To: [email protected]
Date: 23 Jul 2006 15:41:19 +0200
Subject: [UNIX] Sun Microsystems Solaris sysinfo() Kernel Memory Disclosure
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20060723130937.7498257AA@mail.tyumen.ru.>
X-Virus-Scanned: antivirus-gw at tyumen.ru
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com
- - promotion
The SecuriTeam alerts list - Free, Accurate, Independent.
Get your security news from a reliable source.
http://www.securiteam.com/mailinglist.html
- - - - - - - - -
Sun Microsystems Solaris sysinfo() Kernel Memory Disclosure
------------------------------------------------------------------------
SUMMARY
Solaris is "a UNIX operating system developed by Sun Microsystems". Local
exploitation of an integer overflow vulnerability in Sun Microsystems Inc.
Solaris allows attackers to read kernel memory from a non-privileged
userspace process.
DETAILS
Vulnerable Systems:
* Solaris 10
The vulnerability specifically exists due to an integer overflow in
/usr/src/uts/common/syscall/systeminfo.c. The vulnerable code is as
follows:
125 if (kstr != NULL) {
126 if ((strcnt = strlen(kstr)) >= count) {
127 getcnt = count - 1;
128 if (subyte(buf + count - 1, 0) < 0)
129 return (set_errno(EFAULT));
130 } else
131 getcnt = strcnt + 1;
132 if (copyout(kstr, buf, getcnt))
133 return (set_errno(EFAULT));
134 return (strcnt + 1);
135 }
If the variable count (which is a value provided by the user invoking the
function) is 0, the function will call the copyout function with a length
argument of -1. Because copyout interprets the length argument as an
unsigned integer, a large amount of data will be copied out to userspace,
well beyond the boundaries that are intended.
Vendor response:
Sun Alert ID 102343 addresses this issue and is available at:
<http://sunsolve.sun.com/search/document.do?assetkey=1-26-102343-1>
http://sunsolve.sun.com/search/document.do?assetkey=1-26-102343-1
Disclosure Timeline:
12/15/2005 - Initial vendor notification
12/15/2005 - Initial vendor response
07/20/2006 - Coordinated public disclosure
ADDITIONAL INFORMATION
The information has been provided by
<mailto:idlabs-advisories@lists.idefense.com.> iDEFENSE Labs Security
Advisories.
The original article can be found at:
<http://www.idefense.com/intelligence/vulnerabilities/display.php?id=410>
http://www.idefense.com/intelligence/vulnerabilities/display.php?id=410
This bulletin is sent to members of the SecuriTeam mailing list.
To unsubscribe from the list, send mail with an empty subject line and body to: [email protected]
In order to subscribe to the mailing list, simply forward this email to: [email protected]
DISCLAIMER:
The information in this bulletin is provided "AS IS" without warranty of any kind.
In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.