mainGNU Generic Security Service Library - Support: sr #111075, nullptr dereference in...

 
 

sr #111075: nullptr dereference in gss_display_status()

Submitter:  None
Submitted:  Thu 13 Jun 2024 09:21:37 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  5 - Blocker Status:  None
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Open
Operating System:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 13 Jun 2024 09:21:37 PM UTC, original submission:  

I noticed that two of curl's unit tests (#2077 and #2078, curl v8.8.0) crashed, which I could trace to them calling `gss_display_status()` with `GSS_C_NO_OID` in `curl_gssapi.c` leading to a nullptr dereference on line 336 of gss's `error.c` (v 1.0.4).

Replacing that line with a simple
```
return mech ? mech->display_status(...) : GSS_S_BAD_MECH;
```
prevents the crash.

I can't tell if curl is using the GSS API inappropriately here but I think libgss shouldn't call the result of a `mech` lookup that can fail blindly either.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.14-9aa3.
    Corresponding source code