local-CVE-2023-6779
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)
commite1d634298b33f68414b401d48e3ac176084b9d4c
tree34f9a7f480d6dd6bea5cf8fc7b7e27ca44fa1858
parent3a57ce7f977b427e321bf0bcf5ce78acd5c6250c
local-CVE-2023-6779

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

__vsyslog_internal used the return value of snprintf/vsnprintf to
calculate buffer sizes for memory allocation.  If these functions (for
any reason) failed and returned -1, the resulting buffer would be too
small to hold output.  This commit fixes that.

All snprintf/vsnprintf calls are checked for negative return values and
the function silently returns upon encountering them.

Gbp-Pq: Topic any
Gbp-Pq: Name local-CVE-2023-6779.patch
misc/syslog.c