Go to file
Carlos O'Donell 49125ffc8e resolv: Fix NSS DNS backend for getnetbyaddr (CVE-2026-0915)
The default network value of zero for net was never tested for and
results in a DNS query constructed from uninitialized stack bytes.
The solution is to provide a default query for the case where net
is zero.

Adding a test case for this was straight forward given the existence of
tst-resolv-network and if the test is added without the fix you observe
this failure:

FAIL: resolv/tst-resolv-network
original exit status 1
error: tst-resolv-network.c:174: invalid QNAME: \146\218\129\128
error: 1 test failures

With a random QNAME resulting from the use of uninitialized stack bytes.

After the fix the test passes.

Additionally verified using wireshark before and after to ensure
on-the-wire bytes for the DNS query were as expected.

No regressions on x86_64.

Reviewed-by: Florian Weimer <fweimer@redhat.com>
(cherry picked from commit e56ff82d50)
2026-01-16 09:32:00 -05:00
ChangeLog.old
argp
assert assert: Add test for CVE-2025-0395 2025-02-13 13:02:23 -05:00
benchtests
bits
catgets
conform
crypt
csu Add crt1-2.0.o for glibc 2.0 compatibility tests 2024-10-01 10:33:51 +08:00
ctype
debug debug: Fix tst-longjmp_chk3 build failure on Hurd 2025-08-19 09:01:21 -07:00
dirent
dlfcn
elf i386: Update ___tls_get_addr to preserve vector registers 2025-08-20 11:09:07 -07:00
gmon
gnulib
grp
gshadow
hesiod
htl
hurd
iconv
iconvdata
include elf: Do not add a copy of _dl_find_object to libc.so 2025-08-14 09:07:44 +02:00
inet
intl
io
libio Add crt1-2.0.o for glibc 2.0 compatibility tests 2024-10-01 10:33:51 +08:00
locale
localedata support: Add FAIL test failure helper 2024-08-28 16:43:33 -04:00
login
mach
malloc memalign: reinstate alignment overflow check (CVE-2026-0861) 2026-01-15 22:39:02 -05:00
manual i386: Fail if configured with --enable-cet 2025-08-19 15:39:23 -07:00
math Add crt1-2.0.o for glibc 2.0 compatibility tests 2024-10-01 10:33:51 +08:00
mathvec
misc Add mremap tests 2024-08-01 14:42:07 +02:00
nis
nptl nptl: Optimize trylock for high cache contention workloads (BZ #33704) 2025-12-18 10:57:08 -08:00
nptl_db
nscd
nss
po
posix posix: Fix double-free after allocation failure in regcomp (bug 33185) 2025-07-24 09:50:02 +02:00
pwd
resolv resolv: Fix NSS DNS backend for getnetbyaddr (CVE-2026-0915) 2026-01-16 09:32:00 -05:00
resource
rt
scripts
setjmp
shadow
signal
socket Fix name space violation in fortify wrappers (bug 32052) 2024-08-06 08:23:15 +02:00
soft-fp
stdio-common ungetc: Fix backup buffer leak on program exit [BZ #27821] 2024-08-28 16:45:25 -04:00
stdlib Fix error reporting (false negatives) in SGID tests 2025-06-20 11:12:24 +02:00
string x86: Fix bug in strchrnul-evex512 [BZ #32078] 2024-08-15 14:41:17 -07:00
sunrpc
support malloc: add indirection for malloc(-like) functions in tests [BZ #32366] 2025-07-11 13:57:07 -04:00
sysdeps ppc64le: Power 10 rawmemchr clobbers v20 (bug #33091) 2025-11-27 11:12:23 -05:00
sysvipc
termios
time
timezone
wcsmbs Fix name space violation in fortify wrappers (bug 32052) 2024-08-06 08:23:15 +02:00
wctype
.clang-format
.gitattributes
.gitignore
CONTRIBUTED-BY
COPYING
COPYING.LIB
INSTALL i386: Fail if configured with --enable-cet 2025-08-19 15:39:23 -07:00
LICENSES
MAINTAINERS
Makeconfig Add crt1-2.0.o for glibc 2.0 compatibility tests 2024-10-01 10:33:51 +08:00
Makefile
Makefile.help
Makefile.in
Makerules Remove installed header rule on $(..)include/%.h 2025-08-19 13:16:40 -07:00
NEWS x86: Use separate variable for TLSDESC XSAVE/XSAVEC state size (bug 32810) 2025-08-20 06:14:48 -07:00
README
Rules Add crt1-2.0.o for glibc 2.0 compatibility tests 2024-10-01 10:33:51 +08:00
SECURITY.md
SHARED-FILES
abi-tags
aclocal.m4
config.h.in
config.make.in
configure i386: Update ___tls_get_addr to preserve vector registers 2025-08-20 11:09:07 -07:00
configure.ac i386: Update ___tls_get_addr to preserve vector registers 2025-08-20 11:09:07 -07:00
extra-lib.mk
gen-locales.mk
libc-abis
libof-iterator.mk
o-iterator.mk
shlib-versions
test-skeleton.c malloc: add indirection for malloc(-like) functions in tests [BZ #32366] 2025-07-11 13:57:07 -04:00
version.h

README

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu and x86_64-gnu.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arc*-*-linux-gnu
	arm-*-linux-gnueabi
	csky-*-linux-gnuabiv2
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	loongarch64-*-linux-gnu Hardware floating point, LE only.
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	or1k-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	riscv32-*-linux-gnu
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see https://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at https://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see https://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.