title: There's a possible overflow in handle_image() when shim tries to load and execute crafted EFI executables
description: There's a possible overflow in handle_image() when shim tries to load and execute crafted EFI executables; The handle_image() function takes into account the SizeOfRawData field from each section to be loaded. An attacker can leverage this to perform out-of-bound writes into memory. Arbitrary code execution is not discarded in such scenario.
affected:
{
packageName: shim
product: shim
vendor: Red Hat Bootloader Team
repo: https://github.com/rhboot/shim/
platforms: Linux
versions:
lessThan: 15.6, status: affected, version: 0, versionType: semver
}
metrics:
format: CVSS
cvssV3_1: [
version: 3.1
attackVector: LOCAL
attackComplexity: LOW
privilegesRequired: HIGH
userInteraction: REQUIRED
scope: UNCHANGED
confidentialityImpact: HIGH
integrityImpact: HIGH
availabilityImpact: HIGH
vectorString: CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:H/I:H/A:H
baseScore: 6.5
baseSeverity: MEDIUM
]