bugGNU Accounting Utilities - Bugs: bug #67028, Buffer overflow in lastcomm and...

 
 

bug #67028: Buffer overflow in lastcomm and dump-acct

Submitter:  None
Submitted:  Tue 15 Apr 2025 07:34:34 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  None Privacy:  Public
Assigned to:  None Open/Closed:  Open
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Tue 15 Apr 2025 07:34:34 PM UTC, original submission:  

The userspace processes lastcomm and dump-acct contain a buffer overflow bug which makes them unusable in most situations.

An additional sizeof(char) needs to be added to the fullname buffer to account for the added "/" character in the subsequent sprintf().

There are several downstream bugs reported:
https://bugs.laun ... .net/bugs/2095035
https://bugzilla. ... ug.cgi?id=2190057
https://bugs.gent ... bug.cgi?id=925419

The attached patch fixes this bug.

Anonymous

 

Attached Files

Attached Files
file #57142:  dev_hash.c.patch added by None (445B - application/octet-stream)

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

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

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.

 

History

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2025-04-15 None Attached File- Added dev_hash.c.patch, #57142

Back to the top

Powered by Savane 3.16.
Corresponding source code