Dismissed
(max. allowed matches exceeded)
Activity log
- Created & dismissed (max. allowed matches exceeded) suggestion
HID: bpf: Fix hid_bpf_get_data() range check
In the Linux kernel, the following vulnerability has been resolved: HID: bpf: Fix hid_bpf_get_data() range check hid_bpf_get_data() returns a pointer into the HID-BPF context data when the caller-provided offset and size fit inside ctx->allocated_size. The current check adds rdwr_buf_size and offset before comparing the result against ctx->allocated_size. Since both values are unsigned, a very large size can wrap the sum below ctx->allocated_size and make the helper return a pointer even though the requested range is not contained in the backing buffer. Use check_add_overflow() to reject wrapped range ends before comparing the requested range end against ctx->allocated_size.
References
Affected products
Linux
- <f81bc5a709dcbaf2a3bbef4ca7167f93900cc39f
- <2d044049421dd48212b28646a850749d4a2d57fa
- =<*
- <61a959b82f1aecd6d2d35c208013dd077cac9d10
- =<6.18.*
- =<6.12.*
- <6.3
- ==6.3
- =<7.1.*
- <ca373549140dfb386aa2de38364b58441b1f4885