]> git.proxmox.com Git - grub2.git/commit
lvm: fix two more potential data-dependent alloc overflows
authorPeter Jones <pjones@redhat.com>
Sun, 19 Jul 2020 19:48:20 +0000 (15:48 -0400)
committerColin Watson <cjwatson@debian.org>
Fri, 24 Jul 2020 21:44:04 +0000 (22:44 +0100)
commitfc669c03dbffd20667f40a2375c30ef91cdc2707
treec2f64d6fe29b39549d801cd5dd25e1ed1feb4342
parent2db482b906c425aa755fc78e8e8980659b92f5a1
lvm: fix two more potential data-dependent alloc overflows

It appears to be possible to make a (possibly invalid) lvm PV with a
metadata size field that overflows our type when adding it to the
address we've allocated.  Even if it doesn't, it may be possible to do
so with the math using the outcome of that as an operand.  Check them
both.

Signed-off-by: Peter Jones <pjones@redhat.com>
Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
Patch-Name: lvm-overflow.patch
grub-core/disk/lvm.c