about summary refs log tree commit diff
path: root/stdlib/Makefile
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:40:34 +0200
commit6e106dc214d6a033a4e945d1c6cf58061f1c5f1f (patch)
tree06aaf48eab9a6c65e9e37cec3b2dcf276c1409f1 /stdlib/Makefile
parenta8070b31043c7585c36ba68a74298c4f7af075c3 (diff)
downloadglibc-6e106dc214d6a033a4e945d1c6cf58061f1c5f1f.tar.gz
glibc-6e106dc214d6a033a4e945d1c6cf58061f1c5f1f.tar.xz
glibc-6e106dc214d6a033a4e945d1c6cf58061f1c5f1f.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 'stdlib/Makefile')
0 files changed, 0 insertions, 0 deletions