The GNU C Library vulnerabilities, page 2

40 vulnerabilities

Known vulnerabilities in The GNU C Library products, newest first, with CVSS severity, EPSS, KEV listings and ransomware use, across 1 product.

PrioritiseCVE-2026-5435the gnu c library · glibc +110 morePotential buffer overflow in ns_sprintrrf TSIG handling pathThe deprecated functions ns_printrrf, ns_printrr and fp_nquery in the GNU C Library version 2.2 and newer fail to enforce the caller-supplied buffer length, and can result in an out-of-bounds write when printing TSIG records.CVSS7.3HighEPSS0.25%PrioritiseCVE-2026-5450the gnu c library · glibc +350 morescanf %mc off-by-one heap buffer overflowCalling the scanf family of functions with a %mc (malloc'd character match) in the GNU C Library version 2.7 to version 2.43 with a format width specifier with an explicit width greater than 1024 could result in a one byte heap buffer overflow.CVSS9.8CriticalEPSS0.51%PrioritiseCVE-2026-5928the gnu c library · glibc +110 morePotential buffer under-read in ungetwcCalling the ungetwc function on a FILE stream with wide characters encoded in a character set that has overlaps between its single byte and multi-byte character encodings, in the GNU C Library version 2.43 or earlier, may result in an attempt to read bytes before an allocated buffer, potentially resulting in unintentional disclosure of neighboring data in the heap, or a program crash. A bug in the wide character pushback implementation (_IO_wdefault_pbackfail in libio/wgenops.c) causes ungetwc() to operate on the regular character buffer (fp->_IO_read_ptr) instead of the actual wide-stream read pointer (fp->_wide_data->_IO_read_ptr). The program crash may happen in cases where fp->_IO_read_ptr is not initialized and hence points to NULL. The buffer under-read requires a special situation where the input character encoding is such that there are overlaps between single byte representations and multibyte representations in that encoding, resulting in spurious matches. The spurious match case is not possible in the standard Unicode character sets.CVSS7.5HighEPSS0.38%PrioritiseCVE-2026-4046the gnu c library · glibc +350 moreiconv crash due to assertion failure with untrusted inputThe iconv() function in the GNU C Library versions 2.43 and earlier may crash due to an assertion failure when converting inputs from the IBM1390 or IBM1399 character sets, which may be used to remotely crash an application. This vulnerability can be trivially mitigated by removing the IBM1390 and IBM1399 character sets from systems that do not need them.CVSS7.5HighEPSS0.44%RoutineCVE-2026-4438the gnu c library · glibc +110 moregethostbyaddr and gethostbyaddr_r return invalid DNS hostnamesCalling gethostbyaddr or gethostbyaddr_r with a configured nsswitch.conf that specifies the library's DNS backend in the GNU C library version 2.34 to version 2.43 could result in an invalid DNS hostname being returned to the caller in violation of the DNS specification.CVSS5.4MediumEPSS0.18%PrioritiseCVE-2026-4437the gnu c library · glibc +110 moregethostbyaddr and gethostbyaddr_r may incorrectly handle DNS responseCalling gethostbyaddr or gethostbyaddr_r with a configured nsswitch.conf that specifies the library's DNS backend in the GNU C Library version 2.34 to version 2.43 could, with a crafted response from the configured DNS server, result in a violation of the DNS specification that causes the application to treat a non-answer section of the DNS response as a valid answer.CVSS7.5HighEPSS0.37%RoutineCVE-2026-3904the gnu c library · glibc +4 morethe gnu c library glibcCalling NSS-backed functions that support caching via nscd may call the nscd client side code and in the GNU C Library version 2.36 under high load on x86_64 systems, the client may call memcmp on inputs that are concurrently modified by other processes or threads and crash. The nscd client in the GNU C Library uses the memcmp function with inputs that may be concurrently modified by another thread, potentially resulting in spurious cache misses, which in itself is not a security issue.  However in the GNU C Library version 2.36 an optimized implementation of memcmp was introduced for x86_64 which could crash when invoked with such undefined behaviour, turning this into a potential crash of the nscd client and the application that uses it. This implementation was backported to the 2.35 branch, making the nscd client in that branch vulnerable as well.  Subsequently, the fix for this issue was backported to all vulnerable branches in the GNU C Library repository. It is advised that distributions that may have cherry-picked the memcpy SSE2 optimization in their copy of the GNU C Library, also apply the fix to avoid the potential crash in the nscd client.CVSS6.2MediumEPSS0.16%PrioritiseCVE-2025-15281the gnu c library · glibc +237 morewordexp with WRDE_REUSE and WRDE_APPEND may return uninitialized memoryCalling wordexp with WRDE_REUSE in conjunction with WRDE_APPEND in the GNU C Library version 2.0 to version 2.42 may cause the interface to return uninitialized memory in the we_wordv member, which on subsequent calls to wordfree may abort the process.CVSS7.5HighEPSS0.49%PrioritiseCVE-2026-0915the gnu c library · glibc +6 moregetnetbyaddr and getnetbyaddr_r leak stack contents to DNS resovlerCalling getnetbyaddr or getnetbyaddr_r with a configured nsswitch.conf that specifies the library's DNS backend for networks and queries for a zero-valued network in the GNU C Library version 2.0 to version 2.42 can leak stack contents to the configured DNS resolver.CVSS7.5HighEPSS0.62%PrioritiseCVE-2026-0861the gnu c library · glibc +117 moreInteger overflow in memalign leads to heap corruptionPassing too large an alignment to the memalign suite of functions (memalign, posix_memalign, aligned_alloc) in the GNU C Library version 2.30 to 2.42 may result in an integer overflow, which could consequently result in a heap corruption. Note that the attacker must have control over both, the size as well as the alignment arguments of the memalign function to be able to exploit this. The size parameter must be close enough to PTRDIFF_MAX so as to overflow size_t along with the large alignment argument. This limits the malicious inputs for the alignment for memalign to the range [1<<62+ 1, 1<<63] and exactly 1<<63 for posix_memalign and aligned_alloc. Typically the alignment argument passed to such functions is a known constrained quantity (e.g. page size, block size, struct sizes) and is not attacker controlled, because of which this may not be easily exploitable in practice. An application bug could potentially result in the input alignment being too large, e.g. due to a different buffer overflow or integer overflow in the application or its dependent libraries, but that is again an uncommon usage pattern given typical sources of alignments.CVSS8.4HighEPSS0.39%RoutineCVE-2025-8058the gnu c library · glibc +248 morethe gnu c library glibcThe regcomp function in the GNU C library version from 2.4 to 2.41 is subject to a double free if some previous allocation fails. It can be accomplished either by a malloc failure or by using an interposed malloc that injects random malloc failures. The double free can allow buffer manipulation depending of how the regex is constructed. This issue affects all architectures and ABIs supported by the GNU C library.CVSS5.9MediumEPSS0.23%RoutineCVE-2025-5745the gnu c library · glibc +5 morethe gnu c library glibcThe strncmp implementation optimized for the Power10 processor in the GNU C Library version 2.40 and later writes to vector registers v20 to v31 without saving contents from the caller (those registers are defined as non-volatile registers by the powerpc64le ABI), resulting in overwriting of its contents and potentially altering control flow of the caller, or leaking the input strings to the function to other parts of the program.CVSS5.6MediumEPSS0.27%RoutineCVE-2025-5702the gnu c library · glibc +240 morethe gnu c library glibcThe strcmp implementation optimized for the Power10 processor in the GNU C Library version 2.39 and later writes to vector registers v20 to v31 without saving contents from the caller (those registers are defined as non-volatile registers by the powerpc64le ABI), resulting in overwriting of its contents and potentially altering control flow of the caller, or leaking the input strings to the function to other parts of the program.CVSS5.6MediumEPSS0.32%PrioritiseCVE-2025-4802the gnu c library · glibc +259 morethe gnu c library glibcUntrusted LD_LIBRARY_PATH environment variable vulnerability in the GNU C Library version 2.27 to 2.38 allows attacker controlled loading of dynamically shared library in statically compiled setuid binaries that call dlopen (including internal dlopen calls after setlocale or calls to NSS functions such as getaddrinfo).CVSS7.8HighEPSS0.59%RoutineCVE-2025-0395the gnu c library · glibc +260 morethe gnu c library glibcWhen the assert() function in the GNU C Library versions 2.13 to 2.40 fails, it does not allocate enough space for the assertion failure message string and size information, which may lead to a buffer overflow if the message string size aligns to page size.CVSS6.2MediumEPSS0.36%RoutineCVE-2024-33602the gnu c library · glibc +16 morenscd: netgroup cache assumes NSS callback uses in-buffer stringsThe flaw was introduced in glibc 2.15 when the cache was added to nscd. This vulnerability is only present in the nscd binary.CVSS7.4HighEPSS0.40%PrioritiseCVE-2024-33601the gnu c library · glibc +16 morenscd: netgroup cache may terminate daemon on memory allocation failureThe flaw was introduced in glibc 2.15 when the cache was added to nscd. This vulnerability is only present in the nscd binary.CVSS7.3HighEPSS1.07%RoutineCVE-2024-33600the gnu c library · glibc +17 morenscd: Null pointer crashes after notfound responseThis flaw was introduced in glibc 2.15 when the cache was added to nscd. This vulnerability is only present in the nscd binary.CVSS5.9MediumEPSS1.22%PrioritiseCVE-2024-33599the gnu c library · glibc +14 morenscd: Stack-based buffer overflow in netgroup cacheThis flaw was introduced in glibc 2.15 when the cache was added to nscd. This vulnerability is only present in the nscd binary.CVSS8.1HighEPSS1.31%PrioritiseCVE-2024-2961the gnu c library · glibc +268 morethe gnu c library glibcThe iconv() function in the GNU C Library versions 2.39 and older may overflow the output buffer passed to it by up to 4 bytes when converting strings to the ISO-2022-CN-EXT character set, which may be used to crash an application or overwrite a neighbouring variable.CVSS7.3HighEPSS88.33%