Package: cgroup-tools
Version: 2.0.2-2
Severity: important
I was casually using the tools to explore v2 configuration and found
that a simple:
$ cgget -a
*** buffer overflow detected ***: terminated
Aborted (core dumped)
crashes. Under strace I see:
newfstatat(AT_FDCWD, "/sys/fs/cgroup/cpuset.mems.effective",
{st_mode=S_IFREG|0444, st_size=0, ...}, 0) = 0
newfstatat(AT_FDCWD, "/sys/fs/cgroup/cgroup.subtree_control",
{st_mode=S_IFREG|0644, st_size=0, ...}, 0) = 0
newfstatat(AT_FDCWD, "/sys/fs/cgroup/memory.reclaim", {st_mode=S_IFREG|0200,
st_size=0, ...}, 0) = 0
newfstatat(AT_FDCWD, "/sys/fs/cgroup/cgroup.max.depth", {st_mode=S_IFREG|0644,
st_size=0, ...}, 0) = 0
newfstatat(AT_FDCWD, "/sys/fs/cgroup/cgroup.pressure", {st_mode=S_IFREG|0644,
st_size=0, ...}, 0) = 0
newfstatat(AT_FDCWD, "/sys/fs/cgroup/io.stat", {st_mode=S_IFREG|0444,
st_size=0, ...}, 0) = 0
openat(AT_FDCWD, "/sys/fs/cgroup/io.stat", O_RDONLY|O_CLOEXEC) = 4
newfstatat(4, "", {st_mode=S_IFREG|0444, st_size=0, ...}, AT_EMPTY_PATH) = 0
read(4, "8:64 rbytes=2230784 wbytes=0 rio"..., 4096) = 4096
close(4) = 0
writev(2, [{iov_base="*** ", iov_len=4}, {iov_base="buffer overflow detected",
iov_len=24}, {iov_base=" ***: terminated\n", iov_len=17}], 3*** buffer overflow
detected ***: terminated
) = 45
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0x7fdf94e01000
rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
gettid() = 138582
getpid() = 138582
tgkill(138582, 138582, SIGABRT) = 0
--- SIGABRT {si_signo=SIGABRT, si_code=SI_TKILL, si_pid=138582, si_uid=1000} ---
+++ killed by SIGABRT (core dumped) +++
Aborted (core dumped)
-- Package-specific info:
-- System Information:
Debian Release: 12.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'stable-debug'), (500, 'proposed-updates-debug'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.5.0+debian+tj (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8),
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages cgroup-tools depends on:
ii libc6 2.36-9+deb12u1
ii libcgroup2 2.0.2-2
cgroup-tools recommends no packages.
cgroup-tools suggests no packages.
-- no debconf information