diff options
| author | Peter Hutterer <peter.hutterer@who-t.net> | 2026-09-29 12:43:25 +1000 |
|---|---|---|
| committer | Peter Hutterer <peter.hutterer@who-t.net> | 2026-10-15 14:58:59 +1000 |
| commit | 2ebc0779b2860a7463c0bc26c6ecf913e065022d (patch) | |
| tree | de6da1281c682fe1b94a0af9eb3450d303cc82ab /.gitlab-ci | |
| parent | d9af2e4580297e9c14715fef06621dd39d9d8a3a (diff) | |
A caller passing in a string with an embeddded NUL-byte and a length
past that byte could cause an OOB read on the built-in entry array.
For example, a string of the form "EV_KEY\0" with a length of N > 6
would succeed the initial strncmp for "EV_KEY". libevdev then checked
entry->name[len] for a NUL-byte (to ensure we have a full match, not a
substring match). However, it used the caller-supplied length rather
than the entry's name length, causing a single-byte OOB array access at
entry->name[N] with potential to crash the process.
Fix this by embedding the event length in the entry array and checking
that fixed length.
Closes #36
Reported-by: Bright Security
Part-of: <https://gitlab.freedesktop.org/libevdev/libevdev/-/merge_requests/141>
Diffstat (limited to '.gitlab-ci')
0 files changed, 0 insertions, 0 deletions
