diff options
| author | Wilken Gottwalt <wilken.gottwalt@posteo.net> | 2026-08-05 07:19:20 +0000 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-08-06 22:37:38 -0700 |
| commit | 36c4d73ce05d1d8896c2669eb0730d35a02a2ec1 (patch) | |
| tree | 859aba04c7ae1fe1c2244efc5b9a02a73d07be5d /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 0dabe8a56f772f0ece46d2597799f412c277d874 (diff) | |
hwmon: (corsair-psu) fix possible out-of-bounds access on missing string termination
In theory it could be possible that the REPLY_SIZE sized buffers for
holding the vendor and product strings could be end up missing the null
termination (for example by malicious hardware built on purpose)
required by the seq_printf() call. That limits the debugfs printf calls
to a maximum string length of REPLY_SIZE.
Fixes: d115b51e0e567 ("hwmon: add Corsair PSU HID controller driver")
Signed-off-by: Wilken Gottwalt <wilken.gottwalt@posteo.net>
Link: https://lore.kernel.org/r/anLj9gPWRoRDbQBV@monster.localdomain
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions
