bugThe GNU Hurd - Bugs: bug #48919, exec server can attempt null...

 
 

bug #48919: exec server can attempt null pointer dereference

Submitted by:  Brent Baccala <baccala>
Submitted on:  Sat 27 Aug 2016 05:09:21 AM UTC  
 
Category: Hurd ServersSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: FixedPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedReproducibility: Every Time
Size (loc): NonePlanned Release: None
Effort: 0.00
Wiki-like text discussion box: 

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 28 Aug 2016 07:18:25 PM UTC, comment #1:

Mmm, indeed. Normally, exec_setexecdata is called at boot, because
startup calls proc_setexecdata, which in turn calls exec_setexecdata.

Let's just make the code stronger for now, it makes sense anyway. We
however may need to initialize std_ports automatically to make using a
sub exec easier. We "just" need to determine what makes sense.

Samuel Thibault <sthibaul>
Project Member
Sat 27 Aug 2016 05:09:21 AM UTC, original submission:

The exec server can be made to dereference a NULL pointer when exec'ing a shell script

Reproducing this bug requires a fresh instantiation of the exec server, and since ext2fs caches its port to the exec server, that means a fresh instantiation of ext2fs, too.

The problem is around lines 108-126 of hashexec.c. If exec_setexecdata is never called, then this code is reached with std_ports NULL.

Brent Baccala <baccala>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by sthibaul (Posted a comment)
  • -unavailable- added by baccala (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 28 Aug 2016 07:18:25 PM UTCsthibaulStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1