diff options
author | Jean Delvare <jdelvare@suse.de> | 2019-10-14 21:41:24 +0200 |
---|---|---|
committer | Jean Delvare <jdelvare@suse.de> | 2019-10-14 21:41:24 +0200 |
commit | 81dde26de9c08bb04c4962a15608778aaffb3cf9 (patch) | |
tree | bc604f0869cd029884a34fca379c5a70da2ab1c8 /.gitignore | |
parent | 4d856f72c10ecb060868ed10ff1b1453943fc6c8 (diff) | |
download | linux-81dde26de9c08bb04c4962a15608778aaffb3cf9.tar.gz linux-81dde26de9c08bb04c4962a15608778aaffb3cf9.tar.bz2 linux-81dde26de9c08bb04c4962a15608778aaffb3cf9.zip |
firmware: dmi: Fix unlikely out-of-bounds read in save_mem_devices
Before reading the Extended Size field, we should ensure it fits in
the DMI record. There is already a record length check but it does
not cover that field.
It would take a seriously corrupted DMI table to hit that bug, so no
need to worry, but we should still fix it.
Signed-off-by: Jean Delvare <jdelvare@suse.de>
Fixes: 6deae96b42eb ("firmware, DMI: Add function to look up a handle and return DIMM size")
Cc: Tony Luck <tony.luck@intel.com>
Cc: Borislav Petkov <bp@suse.de>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions