Pull HID updates from Jiri Kosina: "Fixes for CVE-2013-2897, CVE-2013-2895, CVE-2013-2897, CVE-2013-2894, CVE-2013-2893, CVE-2013-2891, CVE-2013-2890, CVE-2013-2889. All the bugs are triggerable only by specially crafted evil-on-purpose HW devices. Fixes by Kees Cook and Benjamin Tissoires" * 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid: HID: lenovo-tpkbd: fix leak if tpkbd_probe_tp fails HID: multitouch: validate indexes details HID: logitech-dj: validate output report details HID: validate feature and input report details HID: lenovo-tpkbd: validate output report details HID: LG: validate HID output report details HID: steelseries: validate output report details HID: sony: validate HID output report details HID: zeroplus: validate output report details HID: provide a helper for validating hid reports
Showing the changes to include/linux (1 of 13 files). Show all
Unified · Split
| @@ -756,6 +756,10 @@ u8 *hid_alloc_report_buf(struct hid_report *report, gfp_t flags); · 755 unmodified lines | ||
| 756 | 756 | struct hid_device *hid_allocate_device(void); |
| 757 | 757 | struct hid_report *hid_register_report(struct hid_device *device, unsigned type, unsigned id); |
| 758 | 758 | int hid_parse_report(struct hid_device *hid, __u8 *start, unsigned size); |
| 759 | +struct hid_report *hid_validate_values(struct hid_device *hid, | |
| 760 | + unsigned int type, unsigned int id, | |
| 761 | + unsigned int field_index, | |
| 762 | + unsigned int report_counts); | |
| 759 | 763 | int hid_open_report(struct hid_device *device); |
| 760 | 764 | int hid_check_keys_pressed(struct hid_device *hid); |
| 761 | 765 | int hid_connect(struct hid_device *hid, unsigned int connect_mask); |