Bug 700309

Summary: null pointer dereference crashes tcsh
Product: Red Hat Enterprise Linux 6 Reporter: Takuma Umeya <tumeya>
Component: tcshAssignee: Vojtech Vitek <vvitek>
Status: CLOSED ERRATA QA Contact: BaseOS QE - Apps <qe-baseos-apps>
Severity: high Docs Contact:
Priority: high    
Version: 6.0CC: bmason, bnater, hripps, jkaluza, jwest, msvoboda, ovasik, rvokal, syeghiay, tao
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: tcsh-6.17-13.el6 Doc Type: Bug Fix
Doc Text:
Under certain circumstances when using the cwd symbolic link, a null pointer may have been incorrectly dereferenced, causing the tcsh shell to terminate unexpectedly. With this update, the pointer is now checked properly and tcsh no longer crashes.
Story Points: ---
Clone Of: 624450 Environment:
Last Closed: 2011-12-06 17:02:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
patch against RHEL6 none

Description Takuma Umeya 2011-04-28 05:20:12 UTC
Created attachment 495401 [details]
patch against RHEL6

+++ This bug was initially created as a clone of Bug #624450 +++

+++ This bug was initially created as a clone of Bug #607368 +++

Description of problem:
This is cloned bz for the same bugs discussed in bz624450. This bz addresses the same issue in RHEL6. 

Version-Release number of selected component (if applicable):
    tcsh-6.17-8.el6

Additional info:
For detail please refer to previous bzs. The attached patch is against RHEL6 tcsh-6.17-8.el6. Please incorporate the patch to the tree.

Comment 2 Vojtech Vitek 2011-04-28 08:58:38 UTC
(In reply to Bug 607368 comment #0)
> Additional info:
> 
>     This was fixed upstream in tcsh-6.15.00:
> 
>         http://mx.gw.com/pipermail/tcsh/2007-September/003866.html
> 
>     Reference item #9:
> 
>         9. Avoid null pointer dereference in proc cwd (Kurt Miller)

Seems like it was never fixed upstream, or there is regression in tcsh-6.17.00.

I've reported the issue upstream:
http://bugs.gw.com/view.php?id=122

Comment 14 Miroslav Svoboda 2011-08-30 10:38:54 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Under certain circumstances when using the cwd symbolic link, a null pointer may have been incorrectly dereferenced, causing the tcsh shell to terminate unexpectedly. With this update, the pointer is now checked properly and tcsh no longer crashes.

Comment 15 errata-xmlrpc 2011-12-06 17:02:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1686.html