title: Integer underflow in grub_net_recv_ip4_packets
description: Integer underflow in grub_net_recv_ip4_packets; A malicious crafted IP packet can lead to an integer underflow in grub_net_recv_ip4_packets() function on rsm->total_len value. Under certain circumstances the total_len value may end up wrapping around to a small integer number which will be used in memory allocation. If the attack succeeds in such way, subsequent operations can write past the end of the buffer.
problem types: CWE-191
affected:
{
packageName: grub2
product: GNU GRUB
vendor: GNU Project
repo: https://git.savannah.gnu.org/cgit/grub.git
platforms: Linux
versions:
lessThan: 2.06-3, status: affected, version: 0, versionType: semver
}
metrics:
format: CVSS
cvssV3_1: [
version: 3.1
attackVector: NETWORK
attackComplexity: HIGH
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: HIGH
integrityImpact: HIGH
availabilityImpact: HIGH
vectorString: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
baseScore: 8.1
baseSeverity: HIGH
]