aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/netmap/netmap_kloop.c
diff options
context:
space:
mode:
authorVincenzo Maffione <vmaffione@FreeBSD.org>2022-04-05 23:26:02 +0000
committerEd Maste <emaste@FreeBSD.org>2022-04-05 23:26:02 +0000
commit4996f46e03a442765c56b562c04c6e3ceae0104c (patch)
treee4616e7f173c78f9dad07fe78e0285b8fe8f9ba0 /sys/dev/netmap/netmap_kloop.c
parent00ca345e83ada8b68e302f5406f9799209872c90 (diff)
netmap: Fix TOCTOU vulnerability in nmreq_copyin
The total size of the user-provided nmreq was first computed and then trusted during the copyin. This might lead to kernel memory corruption and escape from jails/containers. Reported by: Lucas Leong (@_wmliang_) of Trend Micro Zero Day Initiative Security: CVE-2022-23084 MFC after: 3 days (cherry picked from commit 393729916564ed13f966e09129a24e6931898d12) (cherry picked from commit 9f600a260a738d87015b2e9722b7b4f228cbd47d) Approved by: so Security: FreeBSD-SA-22:04.netmap
Diffstat (limited to 'sys/dev/netmap/netmap_kloop.c')
0 files changed, 0 insertions, 0 deletions