local-CVE-2023-6246
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 6 Feb 2024 22:41:45 +0000 (22:41 +0000)
committerRaspbian forward porter <root@raspbian.org>
Tue, 6 Feb 2024 22:41:45 +0000 (22:41 +0000)
commit3a57ce7f977b427e321bf0bcf5ce78acd5c6250c
tree38c21c4852e757f1a7e569d6f42e8f0bc5d20e3c
parentdfc2794a83c5ecb2625b2e7255b41d6db2ee18a8
local-CVE-2023-6246

syslog: Fix heap buffer overflow in __vsyslog_internal (CVE-2023-6246)

__vsyslog_internal did not handle a case where printing a SYSLOG_HEADER
containing a long program name failed to update the required buffer
size, leading to the allocation and overflow of a too-small buffer on
the heap.  This commit fixes that.  It also adds a new regression test
that uses glibc.malloc.check.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Gbp-Pq: Topic any
Gbp-Pq: Name local-CVE-2023-6246.patch
misc/Makefile
misc/syslog.c
misc/tst-syslog-long-progname.c [new file with mode: 0644]