HomeFreeBSD

MFC r341484: Always treat firmware request and response sizes as unsigned.

Description

MFC r341484: Always treat firmware request and response sizes as unsigned.

This fixes an incomplete bounds check on the guest-supplied request
size where a very large request size could be interpreted as a negative
value and not be caught by the bounds check.

Submitted by: jhb
Reported by: Reno Robert
Security: CVE-2018-17160

Details

Provenance
emasteAuthored on
Parents
rS341606: MFC r298454 (araujo): Use MIN()/MAX() macros from sys/param.h.
Branches
Unknown
Tags
Unknown