Bug 443995 (CVE-2008-1845)

Summary: CVE-2008-1845 mksh: privilege escalation via unflushed tty
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: redhat-bugzilla
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-1845
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-04-24 18:09:24 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 Tomas Hoger 2008-04-24 14:46:56 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2008-1845 to the following vulnerability:

The Korn shell (aka mksh) before R33d on MirOS (aka MirBSD) does not flush the tty's I/O when invoking mksh in a new terminal, which allows local users to gain privileges by opening a virtual terminal and entering command sequences, which might later be executed in opportunistic circumstances by a different user who launches mksh and specifies that terminal with the -T option.

Refences:
http://www.mirbsd.org/mksh.htm#clog
http://www.securityfocus.com/bid/28768
http://www.osvdb.org/44365
http://secunia.com/advisories/29803
http://xforce.iss.net/xforce/xfdb/41794

Comment 1 Tomas Hoger 2008-04-24 14:48:37 UTC
Fixed upstream version was already pushed to F7/F8:

https://admin.fedoraproject.org/updates/F7/FEDORA-2008-3070
https://admin.fedoraproject.org/updates/F8/FEDORA-2008-3174

Rawhide update mksh-33d-1.fc9 did not make it to F9 before freeze.


Comment 2 Tomas Hoger 2008-04-24 14:52:24 UTC
Robert, have you managed to reproduce this on Fedora?  I must admit that I'm not
quite sure what is the purpose of -T switch, where this can be used in a
meaningful way.

Comment 3 Robert Scheck 2008-04-24 15:41:46 UTC
I didn't reproduce that, I didn't use the -T switch as well. I was just adviced
personally by upstream to update mksh to solve this issue, as it could be minor
security problem (eventually).

Anyway, I'm asking rel-eng to get mksh-33d-1.fc9 into Fedora 9.

Comment 4 Robert Scheck 2008-04-24 17:27:19 UTC
mksh-33d-1.fc9 successfully tagged into f9-final by notting

Comment 5 Tomas Hoger 2008-04-24 18:09:24 UTC
Closing this bug.