Skip to content
Commit f9a86fb1 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Jaehoon Chung
Browse files

mmc: Avoid buffer overrun in mmc_startup()

If the CSD register contains a reserved value (4 - 7) in bits 0:2 of the
TRAN_SPEED field, a buffer overrun occurs. Resize the mapping table.

According to the original report
https://lore.kernel.org/u-boot/20180826231332.2491-11-erosca@de.adit-jv.com/


reserved values have been observed resulting in a buffer overrun.

Reported-by: default avatarEugeniu Rosca <erosca@de.adit-jv.com>
Fixes: 272cc70b ("Add MMC Framework")
Signed-off-by: default avatarHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: default avatarJaehoon Chung <jh80.chung@samsung.com>
parent b03b4904
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment