about summary refs log tree commit diff
path: root/sysdeps/powerpc/powerpc32/bits/wordsize.h
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2024-04-25 15:01:07 +0200
committerFlorian Weimer <fweimer@redhat.com>2024-04-25 15:42:42 +0200
commitb6742463694b1dfdd5120b91ee21cf05d15ec2e2 (patch)
treec2c88ad7c086d39b0b5acc5181d716a8d8575508 /sysdeps/powerpc/powerpc32/bits/wordsize.h
parentf205b3af56740e3b014915b1bd3b162afe3407ef (diff)
downloadglibc-b6742463694b1dfdd5120b91ee21cf05d15ec2e2.tar.gz
glibc-b6742463694b1dfdd5120b91ee21cf05d15ec2e2.tar.xz
glibc-b6742463694b1dfdd5120b91ee21cf05d15ec2e2.zip
CVE-2024-33601, CVE-2024-33602: nscd: netgroup: Use two buffers in addgetnetgrentX (bug 31680)
This avoids potential memory corruption when the underlying NSS
callback function does not use the buffer space to store all strings
(e.g., for constant strings).

Instead of custom buffer management, two scratch buffers are used.
This increases stack usage somewhat.

Scratch buffer allocation failure is handled by return -1
(an invalid timeout value) instead of terminating the process.
This fixes bug 31679.

Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
(cherry picked from commit c04a21e050d64a1193a6daab872bca2528bda44b)
Diffstat (limited to 'sysdeps/powerpc/powerpc32/bits/wordsize.h')
0 files changed, 0 insertions, 0 deletions