HomeFreeBSD

hid: Correctly handle signed/unsigned quantities in kernel HID parser.

Description

hid: Correctly handle signed/unsigned quantities in kernel HID parser.

Wrong signedness of usage value results in inverted range check in hmt(4)
driver that allows out of bound array access leading to panic.

Reported by: many
Sponsored by: Future Crew, LLC
Obtained from: NetBSD
NetBSD PR: kern/53605
PR: 274014, 282592

(cherry picked from commit 38b67578fb4bbf568f7012ca3921a4d15cfe7c5d)
(cherry picked from commit 1dda3a6ed9c51adc908fee4db5917b1232fa932c)

Details

Provenance
wulfAuthored on Dec 22 2024, 3:16 AM
emasteCommitted on Tue, Jan 21, 12:33 PM
Parents
rGedc19f8d0fd0: netlink: restore the ability to delete PINNED routes
Branches
Unknown
Tags
Unknown