aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/netmap/netmap_bdg.h
diff options
context:
space:
mode:
authorVincenzo Maffione <vmaffione@FreeBSD.org>2022-03-16 06:58:50 +0000
committerVincenzo Maffione <vmaffione@FreeBSD.org>2022-03-19 17:36:39 +0000
commit9f600a260a738d87015b2e9722b7b4f228cbd47d (patch)
treedce3ac52605c58917ea52feb98ddceb965f4fee7 /sys/dev/netmap/netmap_bdg.h
parent9df8dd3ea36c8b3abe8fc182647472ca9cd83efd (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)
Diffstat (limited to 'sys/dev/netmap/netmap_bdg.h')
0 files changed, 0 insertions, 0 deletions