aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/netmap/netmap_offloadings.c
diff options
context:
space:
mode:
authorVincenzo Maffione <vmaffione@FreeBSD.org>2022-03-16 06:58:50 +0000
committerEd Maste <emaste@FreeBSD.org>2022-04-06 03:24:05 +0000
commit7c55c52696d2aec39441802d687badc8b012432e (patch)
treed9e347d4d05c0359f094b2ff8f0375e19157dc93 /sys/dev/netmap/netmap_offloadings.c
parent9d354cf6e141a55ad1ef0cb85316f39013d594d2 (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, re (implicit)
Diffstat (limited to 'sys/dev/netmap/netmap_offloadings.c')
0 files changed, 0 insertions, 0 deletions