Files
linux/drivers
Johan Hovold 1b656e9aad firmware: qemu_fw_cfg: fix sysfs information leak
Make sure to always NUL-terminate file names retrieved from the firmware
to avoid accessing data beyond the entry slab buffer and exposing it
through sysfs in case the firmware data is corrupt.

Fixes: 75f3e8e47f ("firmware: introduce sysfs driver for QEMU's fw_cfg device")
Cc: stable@vger.kernel.org      # 4.6
Cc: Gabriel Somlo <somlo@cmu.edu>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20211201132528.30025-4-johan@kernel.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2022-01-14 18:50:52 -05:00
..
2021-11-26 19:45:31 +01:00
2022-01-14 18:50:52 -05:00
2022-01-14 18:50:52 -05:00
2021-12-13 13:18:48 +05:30
2022-01-14 18:50:52 -05:00
2022-01-14 18:50:52 -05:00
2022-01-14 18:50:52 -05:00
2022-01-14 18:50:52 -05:00
2021-10-26 19:12:01 +02:00
2022-01-14 18:50:52 -05:00
2022-01-14 18:50:52 -05:00
2021-10-18 09:29:27 +02:00
2022-01-14 18:50:52 -05:00
2022-01-14 18:50:52 -05:00
2021-11-30 11:41:49 -07:00
2021-12-08 14:53:15 -05:00