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
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

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.launchpad.net/bugs/2095035
https://bugzilla.redhat.com/show_bug.cgi?id=2190057
https://bugs.gentoo.org/show_bug.cgi?id=925419

The attached patch fixes this bug.

Anonymous

 

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

Attach Files:
   
   
Comment:
   

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

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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.

 

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.15-e6e5.
Corresponding source code