Bug 218480 - CVE-2006-6235 GnuPG references local variable after function returns
Summary: CVE-2006-6235 GnuPG references local variable after function returns
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: gnupg
Version: 4.4
Hardware: All
OS: Linux
urgent
high
Target Milestone: ---
: ---
Assignee: Nalin Dahyabhai
QA Contact:
URL:
Whiteboard: impact=important,source=vendor-sec,re...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-12-05 18:13 UTC by Lubomir Kundrak
Modified: 2007-11-17 01:14 UTC (History)
0 users

Fixed In Version: RHSA-2006-0754
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-12-06 17:54:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed fix (for 1.4.5) (6.02 KB, patch)
2006-12-05 18:13 UTC, Lubomir Kundrak
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2006:0754 0 normal SHIPPED_LIVE Important: gnupg security update 2006-12-12 20:50:28 UTC

Description Lubomir Kundrak 2006-12-05 18:13:34 UTC
Description of problem:

Reference to local variable dfx of function decrypt_data() is used by the
functions decode_filter() and mdc_decode_filter() after it is terminated,
making it possible to overwrite the stack by changing its contents, which can
potentially lead to arbitrairy code execution (when program flow is altered
by overwriting the return address stored on the stack)

Version-Release number of selected component (if applicable):

RHEL-2.1, RHEL-3, RHEL-4, RHEL-5, FC-5, FC-6


How reproducible:

No reproducer.

Comment 1 Lubomir Kundrak 2006-12-05 18:13:34 UTC
Created attachment 142874 [details]
Proposed fix (for 1.4.5)

Comment 2 Lubomir Kundrak 2006-12-05 18:36:11 UTC
The description is wrong. It is actually not possible to overwrite stack with
reference to the structure, but the opposite -- modify the structure by changing
some local variable in function, whose stack frame covers the structure.
This is dangerous, because the structure containst pointers to functions.

Comment 6 Red Hat Bugzilla 2006-12-06 17:54:02 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2006-0754.html



Note You need to log in before you can comment on or make changes to this bug.