diff options
| author | Benoît Sevens <bsevens@google.com> | 2026-03-23 16:11:07 +0000 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-03-27 11:27:37 +0100 |
| commit | d802d848308b35220f21a8025352f0c0aba15c12 (patch) | |
| tree | fdefe42215a684b5d5740b1209cbb3a8623d9013 /tools/perf/scripts/python | |
| parent | 48e91af0cbe942d50ef6257d850accdca1d01378 (diff) | |
HID: roccat: fix use-after-free in roccat_report_event
roccat_report_event() iterates over the device->readers list without
holding the readers_lock. This allows a concurrent roccat_release() to
remove and free a reader while it's still being accessed, leading to a
use-after-free.
Protect the readers list traversal with the readers_lock mutex.
Signed-off-by: Benoît Sevens <bsevens@google.com>
Reviewed-by: Silvan Jegen <s.jegen@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
