summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorJiale Yao <yaojiale02@163.com>2026-09-24 22:44:11 +0800
committerJiri Kosina <jkosina@suse.com>2026-10-16 11:36:47 +0200
commit0ff37294c41bd925258893310398bc2b45fcd4a7 (patch)
treee02d133dc18e5021bcb6eee73e95c323ed27c6e9 /tools/perf/scripts/python/stackcollapse.py
parent1ae40774d386b7a51e4799200106429a7e14e8ec (diff)
HID: prodikeys: validate fixed-format MIDI reports
The HID core invokes raw_event callbacks before validating the report length. Prodikeys reports 0x01 and 0x04 are passed to handlers that always read bytes one through three, regardless of the supplied size. A truncated report can therefore cause an out-of-bounds read. Require four bytes for the two fixed-format reports. Keep report 0x03 on its existing variable-length path, which derives the number of note pairs from size and only accesses complete pairs. Commit 47669bec44fe ("HID: asus: refactor the two workqueues and init sequence") added the same kind of raw_event length validation to hid-asus. Fixes: 3a370ca1dcf8 ("HID: Prodikeys PC-MIDI HID Driver") Cc: stable@vger.kernel.org Signed-off-by: Jiale Yao <yaojiale02@163.com> Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions