linux-stable/drivers/accel
Xingyuan Mo a9f07790a4 accel/habanalabs: fix information leak in sec_attest_info()
This function may copy the pad0 field of struct hl_info_sec_attest to user
mode which has not been initialized, resulting in leakage of kernel heap
data to user mode. To prevent this, use kzalloc() to allocate and zero out
the buffer, which can also eliminate other uninitialized holes, if any.

Fixes: 0c88760f8f ("habanalabs/gaudi2: add secured attestation info uapi")
Signed-off-by: Xingyuan Mo <hdthky0@gmail.com>
Reviewed-by: Oded Gabbay <ogabbay@kernel.org>
Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
2023-12-19 11:09:44 +02:00
..
habanalabs accel/habanalabs: fix information leak in sec_attest_info() 2023-12-19 11:09:44 +02:00
ivpu Linux 6.7-rc3 2023-11-28 11:55:56 +01:00
qaic accel/qaic: Expand DRM device lifecycle 2023-12-01 10:37:06 -07:00
drm_accel.c accel: Include <drm/drm_auth.h> 2023-12-06 10:08:09 +01:00
Kconfig accel/qaic: Add qaic driver to the build system 2023-04-06 08:23:03 +02:00
Makefile accel/qaic: Add qaic driver to the build system 2023-04-06 08:23:03 +02:00