Skip to content

hw/sd/sdcard: Fix CVE-2020-13253 (Do not allow invalid SD card sizes)

Philippe Mathieu-Daudé qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2tests/acceptance/boot_linux: Truncate SD card image to power of 2tests/acceptance/boot_linux_console.py+15 -03 replies
2/2hw/sd/sdcard: Do not allow invalid SD card sizeshw/sd/sd.c+16 -015 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] hw/sd/sdcard: Fix CVE-2020-13253 (Do not allow invalid SD card sizes)

Part 1 is already reviewed:
https://www.mail-archive.com/[email protected]/msg718150.html

However the CVE fix break Linux guests:
https://www.mail-archive.com/[email protected]/msg720737.html

This series fixes that, by checking the SD card image size is correct.

Based-on: <[email protected]>

Philippe Mathieu-Daudé (2):
tests/acceptance/boot_linux: Truncate SD card image to power of 2 hw/sd/sdcard: Do not allow invalid SD card sizes

 hw/sd/sd.c                             | 16 ++++++++++++++++
 tests/acceptance/boot_linux_console.py | 15 +++++++++++++++
 2 files changed, 31 insertions(+)
Signature · 1 line
2.21.3