Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 440778 (CVE-2012-4426) - <app-crypt/mcrypt-2.6.8-r2: stack-based buffer overflow by encryption / decryption of overly long file names (CVE-2012-{4426,4527})
Summary: <app-crypt/mcrypt-2.6.8-r2: stack-based buffer overflow by encryption / decry...
Status: RESOLVED FIXED
Alias: CVE-2012-4426
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Security
URL: https://bugzilla.redhat.com/show_bug....
Whiteboard: B2 [glsa]
Keywords:
Depends on:
Blocks: CVE-2012-4409
  Show dependency tree
 
Reported: 2012-11-01 16:19 UTC by Agostino Sarubbo
Modified: 2014-05-18 12:02 UTC (History)
1 user (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 Agostino Sarubbo gentoo-dev 2012-11-01 16:19:13 UTC
From https://bugzilla.redhat.com/show_bug.cgi?id=867790 :

Description of problem:
A buffer overflow in mcrypt version 2.6.8 and earlier due to long filenames.  If a user were 
tricked into attempting to encrypt/decrypt specially crafted long filename(s), this flaw would 
cause a stack-based buffer overflow that could potentially lead to arbitrary code execution.

Note that this is caught by FORTIFY_SOURCE, which renders this to being a crash-only bug on Fedora.

There are currently no upstream patches for this flaw.

Version-Release number of selected component (if applicable):
mcrypt-2.6.8-9.el6 (possibly others too).

How reproducible:
Run mcrypt with ~128 byte long file names.
Comment 1 GLSAMaker/CVETool Bot gentoo-dev 2012-11-27 22:11:10 UTC
CVE-2012-4527 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2012-4527):
  Stack-based buffer overflow in mcrypt 2.6.8 and earlier allows user-assisted
  remote attackers to cause a denial of service (crash) and possibly execute
  arbitrary code via a long file name.  NOTE: it is not clear whether this is
  a vulnerability.

CVE-2012-4426 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2012-4426):
  Multiple format string vulnerabilities in mcrypt 2.6.8 and earlier might
  allow user-assisted remote attackers to cause a denial of service (crash) or
  possibly execute arbitrary code via vectors involving (1) errors.c or (2)
  mcrypt.c.
Comment 2 Alon Bar-Lev (RETIRED) gentoo-dev 2012-12-22 20:31:31 UTC
Fixed in mcrypt-2.6.8-r2 (both CVEs)
Comment 3 Agostino Sarubbo gentoo-dev 2012-12-22 20:46:27 UTC
(In reply to comment #2)
> Fixed in mcrypt-2.6.8-r2 (both CVEs)

What about bug 434112 ? You want to include another fix before stabilize?
Comment 4 Agostino Sarubbo gentoo-dev 2012-12-22 21:03:44 UTC
Arches, please test and mark stable:
=app-crypt/mcrypt-2.6.8-r2
Target keywords : "amd64 ppc sparc x86"
Comment 5 Jeff (JD) Horelick (RETIRED) gentoo-dev 2012-12-23 16:56:44 UTC
x86 stable
Comment 6 Sergey Popov gentoo-dev 2012-12-24 20:11:09 UTC
amd64 stable
Comment 7 Agostino Sarubbo gentoo-dev 2012-12-28 15:07:24 UTC
sparc stable
Comment 8 Agostino Sarubbo gentoo-dev 2012-12-31 23:29:18 UTC
ppc stable
Comment 9 Sean Amoss (RETIRED) gentoo-dev Security 2013-01-01 21:31:07 UTC
Thanks, everyone.

New GLSA request filed.
Comment 10 GLSAMaker/CVETool Bot gentoo-dev 2014-05-18 12:02:52 UTC
This issue was resolved and addressed in
 GLSA 201405-19 at http://security.gentoo.org/glsa/glsa-201405-19.xml
by GLSA coordinator Sean Amoss (ackle).