diff options
| author | Marc Kleine-Budde <mkl@pengutronix.de> | 2026-10-25 14:20:22 +0100 |
|---|---|---|
| committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2026-11-24 09:38:39 +0100 |
| commit | 4dfaa1160683505334c7c1ea5959099679d7dc42 (patch) | |
| tree | 3d6944309ea51e168408aab3b6123df791957702 /tools/perf/scripts/python | |
| parent | 3949d692d64642d8921e4ad0d0e91ba73a668a4c (diff) | |
can: gs_usb: gs_can_start_xmit(): don't leak uninitialized memory over USB
The driver allocates the transmission buffer using kmalloc(), which means
the memory remains uninitialized. Then various headers are filled and, but
only the actual CAN frame data payload (of length cfd->len or cf->len) is
copied into the buffer, leaving the remaining buffer uninitialized.
Fix this information leak, allocate the buffer with kzalloc().
Closes: https://sashiko.dev/#/bug/linux-0a8c0e8a-c623-426a-8db3-f55111f6cd84
Fixes: d08e973a77d1 ("can: gs_usb: Added support for the GS_USB CAN devices")
Cc: stable@vger.kernel.org
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
