CVE-2023-4911 glibc Looney Tunables heap buffer overflow in parse_tunables
b7835415-91cb-4864-b6db-6583d9d87b77
The GNU C Library (glibc) version 2.37 contains a heap buffer overflow vulnerability in the __tunables_init function when processing the GLIBC_TUNABLES environment variable in secure mode (SUID/SGID binaries). The parse_tunables function (elf/dl-tunables.c:170) rewrites the GLIBC_TUNABLES string to drop security-restricted tunables, but uses full tunable names (e.g., 'glibc.malloc.arena_test') which are significantly longer than the original format. The buffer was allocated based on the original string length, but the rewritten output exceeds the allocated size with no bounds checking, allowing unbounded heap overflow and code execution.",