aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/netmap/netmap_vale.c
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2025-10-22 15:59:26 +0000
committerCy Schubert <cy@FreeBSD.org>2025-10-23 22:56:28 +0000
commit6535e9308a26e17023831fe68fb71d2febf2a002 (patch)
tree9fa86b7ef2ddc6d5ce96cb4ce35d577a31ec8060 /sys/dev/netmap/netmap_vale.c
parentbbe65c5e8c0e89ec14cb5d00153691850dadb859 (diff)
ipfilter: Plug ip_nat kernel information leak
ipf_nat_getent() allocates a variable-sized nat_save_t buffer with KMALLOCS() (which does not zero memory) and then copies only a subset of fields into it before returning the object to userland using ipf_outobjsz(). Because the structure is not fully initialized on all paths, uninitialized kernel heap bytes can be copied back to user space, resulting in an information leak. We fix this by zeroing out the data structure immediately after allocation. Reported by: Ilja Van Sprundel <ivansprundel@ioactive.com> Reviewed by: emaste MFC after: 3 days Differential revision: https://reviews.freebsd.org/D53274
Diffstat (limited to 'sys/dev/netmap/netmap_vale.c')
0 files changed, 0 insertions, 0 deletions