HomeFreeBSD

netmap: Fix TOCTOU vulnerability in nmreq_copyin

Description

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

Details

Provenance
vmaffioneAuthored on Mar 16 2022, 6:58 AM
Parents
rG694ea59c7021: netmap: Fix integer overflow in nmreq_copyin
Branches
Unknown
Tags
Unknown