local-CVE-2023-6779
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Tue, 23 Jan 2024 20:57:06 +0000 (21:57 +0100)
committerAurelien Jarno <aurel32@debian.org>
Tue, 23 Jan 2024 20:57:06 +0000 (21:57 +0100)
commitcef735933032703fa9ea067e61dc53467c5ab068
tree56ca67dd1c5b4ac1c14455081a63cafdef296be2
parenteec73cdc3f318b79373e4158452348577c7214c2
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