[Bug 2095035] Re: lastcomm buffer overflow detected terminated
Kevin Marinelli
2095035 at bugs.launchpad.net
Mon Mar 24 19:07:56 UTC 2025
Regarding the bug in lastcomm for the noble repository:
# lastcomm
*** buffer overflow detected ***: terminated
Aborted (core dumped)
I have a temporary fix which seems to work. The fix is based on the
confirmation that lastcomm is properly patched in plucky, but not yet
patched in noble.
* Update apt.
* Add the plucky repository to ubuntu.sources.
* Update apt a second time, this will
* Install lastcomm
* Remove the plucky repository
The specific steps are:
$ sudo apt update
##Update /etc/apt/sources.list.d/ubuntu to include the lines:
$ sudo cat >> /etc/apt/sources.list.d/ubuntu.sources
Types: deb
URIs: http://security.ubuntu.com/ubuntu/
Suites: plucky-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
^D
$ sudo apt-update
$ sudo apt install lastcomm
To test the installation:
$ sudo lastcomm|head
kworker/dying F root __ 0.00 secs Mon Mar 24 12:32
man root pts/3 0.01 secs Mon Mar 24 13:05
man F X root pts/3 0.00 secs Mon Mar 24 13:05
head root pts/3 0.00 secs Mon Mar 24 13:05
col root pts/3 0.00 secs Mon Mar 24 13:05
nroff root pts/3 0.00 secs Mon Mar 24 13:05
groff root pts/3 0.00 secs Mon Mar 24 13:05
grotty root pts/3 0.00 secs Mon Mar 24 13:05
troff root pts/3 0.00 secs Mon Mar 24 13:05
tbl root pts/3 0.00 secs Mon Mar 24 13:05
The cleanup step is to delete the added lines in ubuntu.sources and
update apt.
$ sudo cat > /etc/apt/sopurces.list.d/ubuntu.sources
Types: deb
URIs: http://us.archive.ubuntu.com/ubuntu/
Suites: noble noble-updates noble-backports
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
Types: deb
URIs: http://security.ubuntu.com/ubuntu/
Suites: noble-security
Components: main restricted universe multiverse
Signed-By: /usr/share/keyrings/ubuntu-archive-keyring.gpg
^D
$sudo apt update
At this point, the installation of lastcomm will not show in the list of
installed packages. The application is properly installed and working,
just no longer in the repositories being checked for installations.
Hopefully the noble package will will be properly updated soon.
Kevin Marinelli
University of Connecticut
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to acct in Ubuntu.
https://bugs.launchpad.net/bugs/2095035
Title:
lastcomm buffer overflow detected terminated
Status in Acct:
New
Status in acct package in Ubuntu:
Fix Released
Bug description:
$ lastcomm
atopacctd root __ 0.00 secs Tue Jan 14 10:36
*** buffer overflow detected ***: terminated
Aborted (core dumped)
Exit 134
$ lastcomm -f /dev/null
$
$ ls -al /var/log/account/
total 20
drwxr-xr-x 2 root root 4096 Jan 15 12:17 ./
drwxrwxr-x 21 root syslog 12288 Jan 15 13:18 ../
-rw-r----- 1 root adm 704 Jan 15 12:17 pacct
$ ls -al /var/crash
total 88
drwxrwsrwt 2 root whoopsie 4096 Jan 15 12:18 ./
drwxr-xr-x 15 root root 4096 Sep 20 03:21 ../
-rw-r----- 1 root whoopsie 39075 Jan 15 12:17 _usr_bin_lastcomm.0.crash
-rw-r----- 1 idallen whoopsie 39185 Jan 15 12:18 _usr_bin_lastcomm.1000.crash
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: acct 6.6.4-5build1
ProcVersionSignature: Ubuntu 6.8.0-51.52-generic 6.8.12
Uname: Linux 6.8.0-51-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.3
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: ubuntu:GNOME
Date: Wed Jan 15 13:39:39 2025
InstallationDate: Installed on 2020-09-08 (1590 days ago)
InstallationMedia: Ubuntu 20.04.1 LTS "Focal Fossa" - Release amd64 (20200731)
SourcePackage: acct
UpgradeStatus: Upgraded to noble on 2024-11-28 (49 days ago)
To manage notifications about this bug go to:
https://bugs.launchpad.net/acct/+bug/2095035/+subscriptions
More information about the foundations-bugs
mailing list