opnsense-src/lib/libnv/tests
Mariusz Zaborski 414e25d7d5 libnv: fix heap overflow in nvlist_recv()
nvlist_check_header() validated nvlh_size for overflow before
performing conversion. An mallicous user can set
NV_FLAG_BIG_ENDIAN in the header and craft nvlh_size so that
the orginall value passes the check, but after the conversion the
sizeof(nvlist_header) + size can overflow.
This can lead to a heap buffer overflow.

Approved by:	so
Security:	FreeBSD-SA-26:17.libnv
Security:	CVE-2026-35547
Fixes:		36fa90dbde
Reviewed by:	markj
Differential Revision:	https://reviews.freebsd.org/D56342
2026-04-29 14:40:57 +00:00
..
cnv_tests.cc
dnv_tests.cc lib: Automated cleanup of cdefs and other formatting 2023-11-26 22:23:59 -07:00
Makefile libnv: add tests to verify potential overflow issues 2024-09-04 13:43:16 +02:00
Makefile.depend Remove $FreeBSD$: one-line sh pattern 2023-08-16 11:55:03 -06:00
nv_array_tests.cc libnv: add test to verify null termination of string in array 2024-09-04 13:43:07 +02:00
nv_tests.cc
nvlist_add_test.c Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-07-30 12:16:36 -04:00
nvlist_append_test.c
nvlist_exists_test.c Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-07-30 12:16:36 -04:00
nvlist_free_test.c Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-07-30 12:16:36 -04:00
nvlist_get_test.c Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-07-30 12:16:36 -04:00
nvlist_move_test.c Remove "All Rights Reserved" from FreeBSD Foundation copyrights 2024-07-30 12:16:36 -04:00
nvlist_send_recv_test.c libnv: fix heap overflow in nvlist_recv() 2026-04-29 14:40:57 +00:00