[UNIX] Linux procfs Information Disclosure
- From: SecuriTeam <support@xxxxxxxxxxxxxx>
- Date: 26 Dec 2005 18:47:04 +0200
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
- - - - - - - - -
Linux procfs Information Disclosure
------------------------------------------------------------------------
SUMMARY
"The process file system, or procfs, implements a view of the system
process table inside the file system. It is normally mounted on /proc,
and is required for the complete operation of programs such as ps(1) and
w(1)."
The Linus kernel procfs code does not validate its user provided
variables, allowing local attackers to retrieve sensitive information from
memory such as the root's password.
DETAILS
Vulnerable Systems:
* Linux version 2.6.14.4 and prior
The /proc file system (procfs) is a special file system in the Linux
kernel. It's a virtual file system: it is not associated with a block
device but exists only in memory. The files in the procfs are there to
allow users' programs access to certain information from the kernel (like
process information in /proc/[0-9]+/), but also for debug purposes (like
/proc/ksyms).
The function proc_calc_metrics does not properly validate variables,
allowing attackers enter restricted memory and obtaining information that
could not be gathered otherwise.
Vulnerable Code:
fs/proc/proc_misc.c:
static int proc_calc_metrics(char *page, char **start, off_t off,
int count, int *eof, int len)
{
if (len <= off+count) *eof = 1;
*start = page + off;
len -= off;
if (len>count) len = count;
if (len<0) len = 0;
return len;
}
In the above code we can see that the values of 'off' and 'count' are not
checked to see if they contain negative number.
An attacker can place a negative number, pointing the 'start' variable to
a memory that may contain sensitive information.
ADDITIONAL INFORMATION
The information has been provided by <mailto:karl@xxxxxxxxxxxxxxxxxxxx>
Karl Janmar.
========================================
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: list-unsubscribe@xxxxxxxxxxxxxx
In order to subscribe to the mailing list, simply forward this email to: list-subscribe@xxxxxxxxxxxxxx
====================
====================
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.
- Prev by Date: [NEWS] Electric Sheep Screensaver Multiple Vulnerabilities
- Next by Date: [UNIX] libremail Format String (DEBUG, pop.c)
- Previous by thread: [NEWS] Electric Sheep Screensaver Multiple Vulnerabilities
- Next by thread: [UNIX] libremail Format String (DEBUG, pop.c)
- Index(es):
Relevant Pages
- [NEWS] Mac OS X HFS+ Multiple Vulnerabilities (__Fork)
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... Hierarchical File System
Plusis "a file system developed by Apple ... HFS+ allow servers such as Apache to retrieve
the source of a PHP or JSP ... referred to as the "data fork" and "resource fork". ...
(Securiteam) - [TOOL] The Sleuth Kit - UNIX-based File System and Media Management Forensic Analysis Tool
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... The Sleuth Kit is a collection
of UNIX-based ... command line file system and media management forensic analysis tools.
... (Sleuth Kit Informer #6, Sleuth Kit ... (Securiteam) - [TOOL] FSTools - FileSystem Investigator
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... data extraction tool. ...
* View the contents of the target file system in a forensically safe ... FileSystem
Investigator is designed to be able to handle many different ... (Securiteam) - [NT] Defeating Microsoft Windows XP SP2 Heap Protection and DEP Bypass
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... and bypassing DEP (Data Execution
Prevention). ... Buffer overrun attacks are among the most common mechanisms, or vectors,
... a long string to an input stream or control longer than the memory ... (Securiteam) - [NEWS] Buffer Overflow in Mozilla Browser Firefox (Heap Corruption)
... The following security advisory is sent to the securiteam mailing list, and can be
found at the SecuriTeam web site: http://www.securiteam.com ... corruption in the Mozilla browser
as well as in Mozilla Firefox, ... The vulnerability specifically exists in string handling
functions, ... pointing at a known memory location. ... (Securiteam)