]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/PartitionDxe: Ensure blocksize holds MBR (CVE-2018-12180)
authorHao Wu <hao.a.wu@intel.com>
Fri, 9 Feb 2018 00:43:01 +0000 (08:43 +0800)
committerHao Wu <hao.a.wu@intel.com>
Thu, 28 Feb 2019 00:15:42 +0000 (08:15 +0800)
commitfccdb88022c1f6d85c773fce506b10c879063f1d
treeda868ecbe375b46417a3bc98517236070bd8c5c2
parent8b8d6f8a3beea391b1ec39ac347ef69501b44019
MdeModulePkg/PartitionDxe: Ensure blocksize holds MBR (CVE-2018-12180)

REF:https://bugzilla.tianocore.org/show_bug.cgi?id=1134

The commit adds checks for detecting GPT and MBR partitions.

These checks will ensure that the device block size is big enough to hold
an MBR (512 bytes).

Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Star Zeng <star.zeng@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Hao Wu <hao.a.wu@intel.com>
Reviewed-by: Ray Ni <ray.ni@intel.com>
MdeModulePkg/Universal/Disk/PartitionDxe/Gpt.c
MdeModulePkg/Universal/Disk/PartitionDxe/Mbr.c