Gentoo: Perl Execution of arbitrary code
Posted by Benjamin D. Thomas   
Gentoo =3D=3D=3D=3D=3D=3D=3D=3D A double free vulnerability was discovered in Perl, possibly resulting in the execution of arbitrary code and a Denial of Service.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Gentoo Linux Security Advisory                           GLSA 200805-17
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                            http://security.gentoo.org/
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

  Severity: Normal
     Title: Perl: Execution of arbitrary code
      Date: May 20, 2008
      Bugs: #219203
        ID: 200805-17

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Synopsis
=3D=3D=3D=3D=3D=3D=3D=3D

A double free vulnerability was discovered in Perl, possibly resulting
in the execution of arbitrary code and a Denial of Service.

Background
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Perl is a stable, cross platform programming language.

Affected packages
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

    -------------------------------------------------------------------
     Package            /  Vulnerable  /                    Unaffected
    -------------------------------------------------------------------
  1  dev-lang/perl         < 5.8.8-r5                      >=3D 5.8.8-r5
  2  sys-devel/libperl     < 5.8.8-r2                      >=3D 5.8.8-r2
    -------------------------------------------------------------------
     2 affected packages on all of their supported architectures.
    -------------------------------------------------------------------

Description
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

Tavis Ormandy and Will Drewry of the Google Security Team have reported
a double free vulnerability when processing a crafted regular
expression containing UTF-8 characters.

Impact
=3D=3D=3D=3D=3D=3D

A remote attacker could possibly exploit this vulnerability to execute
arbitrary code or cause a Denial of Service.

Workaround
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

There is no known workaround at this time.

Resolution
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

All Perl users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=3Ddev-lang/perl-5.8.8-r5"

All libperl users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=3Dsys-devel/libperl-5.8.8-r2"

References
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

  [ 1 ] CVE-2008-1927
        http://cve.mitre.org/cgi-bin/cvename.cgi?name=3DCVE-2008-1927

Availability
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D

This GLSA and any updates to it are available for viewing at
the Gentoo Security Website:

  http://security.gentoo.org/glsa/glsa-200805-17.xml

Concerns?
=3D=3D=3D=3D=3D=3D=3D=3D=3D

Security is a primary focus of Gentoo Linux and ensuring the
confidentiality and security of our users machines is of utmost
importance to us. Any security concerns should be addressed to
security@gentoo.org or alternatively, you may file a bug at
http://bugs.gentoo.org.

License
=3D=3D=3D=3D=3D=3D=3D

Copyright 2008 Gentoo Foundation, Inc; referenced text
belongs to its owner(s).

The contents of this document are licensed under the
Creative Commons - Attribution / Share Alike license.

http://creativecommons.org/licenses/by-sa/2.5