HomeFreeBSD

netmap: Fix integer overflow in nmreq_copyin

Description

netmap: Fix integer overflow in nmreq_copyin

An unsanitized field in an option could be abused, causing an integer
overflow followed by kernel memory corruption. This might be used
to escape jails/containers.

Reported by: Reno Robert and Lucas Leong (@_wmliang_) of Trend Micro
Zero Day Initiative
Security: CVE-2022-23085

(cherry picked from commit 694ea59c7021c25417e6d516362d2f59b4e2c343)
(cherry picked from commit 9df8dd3ea36c8b3abe8fc182647472ca9cd83efd)

Approved by: so, re (implicit)

Details

Provenance
vmaffioneAuthored on Mar 16 2022, 6:57 AM
emasteCommitted on Apr 6 2022, 3:23 AM
Parents
rG00cc1ce78da3: net80211: validate Mesh ID length in ieee80211_parse_beacon
Branches
Unknown
Tags
Unknown