Skip to content

CVE-2022-28737 There's a possible overflow in handle_image() when shim tries to load and execute crafted EFI executables

HighCVSS 7.8 EPSS 0.33%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: total
Technology
UbuntuDebianRed Hat

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.

Upgrade path

12 packages: 9 fixed, 3 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/shim(Ubuntu 14.04) = 0.4-0ubuntu4; = 0.8-0ubuntu2; = 0.9+1474479173.6c180c6-1ubuntu1; = 13-0ubuntu2 +1 more No fix listed No fix yet
ubuntu/shim(Ubuntu 16.04) = 0.8-0ubuntu2; = 0.9+1474479173.6c180c6-1ubuntu1; = 13-0ubuntu2; = 15+1533136590.3beb971-0ubuntu1 +3 more No fix listed No fix yet
ubuntu/shim(Ubuntu 18.04) = 0.9+1474479173.6c180c6-1ubuntu1; = 13-0ubuntu2; = 15+1533136590.3beb971-0ubuntu1; = 15+1552672080.a4a1fbe-0ubuntu2 +4 more No fix listed No fix yet
debian/shim(Debian 12) < 15.6-1 15.6-1 Fixed
debian/shim(Debian 13) < 15.6-1 15.6-1 Fixed
debian/shim(Debian 14) < 15.6-1 15.6-1 Fixed
Microsoft azure linux < 15.8-3 15.8-3 Fixed
Microsoft cbl mariner < 15.8-1 15.8-1 Fixed
Red Hat Bootloader Team shim < 15.6 15.6 Fixed
redhat/shim < 15.6 15.6 Fixed
ubuntu/shim(Ubuntu 20.04) < 15.7-0ubuntu1; = 15+1533136590.3beb971-0ubuntu1; = 15+1552672080.a4a1fbe-0ubuntu1; = 15+1552672080.a4a1fbe-0ubuntu2 +2 more 15.7-0ubuntu1 Fixed
ubuntu/shim(Ubuntu 22.04) < 15.7-0ubuntu1; = 15.4-0ubuntu9 15.7-0ubuntu1 Fixed

Affected products

ProductAffected versionsFixed in
Microsoft azure linux < 15.8-3 15.8-3
Microsoft cbl mariner < 15.8-1 15.8-1
Red Hat Bootloader Team shim < 15.6 15.6
redhat/shim < 15.6 15.6
ubuntu/shim(Ubuntu:22.04) < 15.7-0ubuntu1 15.7-0ubuntu1
debian/shim(Debian:12) < 15.6-1 15.6-1
debian/shim(Debian:14) < 15.6-1 15.6-1
debian/shim(Debian:13) < 15.6-1 15.6-1
ubuntu/shim(Ubuntu:14.04) All versions No fix listed
ubuntu/shim(Ubuntu:14.04) = 0.4-0ubuntu4 No fix listed
ubuntu/shim(Ubuntu:14.04) = 0.8-0ubuntu2 No fix listed
ubuntu/shim(Ubuntu:14.04) = 0.9+1474479173.6c180c6-1ubuntu1 No fix listed
ubuntu/shim(Ubuntu:14.04) = 13-0ubuntu2 No fix listed
ubuntu/shim(Ubuntu:16.04) All versions No fix listed
ubuntu/shim(Ubuntu:16.04) = 0.8-0ubuntu2 No fix listed
ubuntu/shim(Ubuntu:16.04) = 0.9+1474479173.6c180c6-1ubuntu1 No fix listed
ubuntu/shim(Ubuntu:16.04) = 13-0ubuntu2 No fix listed
ubuntu/shim(Ubuntu:16.04) = 15+1533136590.3beb971-0ubuntu1 No fix listed
ubuntu/shim(Ubuntu:16.04) = 15+1552672080.a4a1fbe-0ubuntu2 No fix listed
ubuntu/shim(Ubuntu:16.04) = 15.4-0ubuntu7 No fix listed
ubuntu/shim(Ubuntu:18.04) All versions No fix listed
ubuntu/shim(Ubuntu:18.04) = 0.9+1474479173.6c180c6-1ubuntu1 No fix listed
ubuntu/shim(Ubuntu:18.04) = 13-0ubuntu2 No fix listed
ubuntu/shim(Ubuntu:18.04) = 15+1533136590.3beb971-0ubuntu1 No fix listed
ubuntu/shim(Ubuntu:18.04) = 15+1552672080.a4a1fbe-0ubuntu2 No fix listed
Show 10 more
ProductAffected versionsFixed in
ubuntu/shim(Ubuntu:18.04) = 15.4-0ubuntu7 No fix listed
ubuntu/shim(Ubuntu:18.04) = 15.4-0ubuntu9 No fix listed
ubuntu/shim(Ubuntu:18.04) = 15.7-0ubuntu1 No fix listed
ubuntu/shim(Ubuntu:20.04) < 15.7-0ubuntu1 15.7-0ubuntu1
ubuntu/shim(Ubuntu:20.04) = 15+1533136590.3beb971-0ubuntu1 No fix listed
ubuntu/shim(Ubuntu:20.04) = 15+1552672080.a4a1fbe-0ubuntu1 No fix listed
ubuntu/shim(Ubuntu:20.04) = 15+1552672080.a4a1fbe-0ubuntu2 No fix listed
ubuntu/shim(Ubuntu:20.04) = 15.4-0ubuntu7 No fix listed
ubuntu/shim(Ubuntu:20.04) = 15.4-0ubuntu9 No fix listed
ubuntu/shim(Ubuntu:22.04) = 15.4-0ubuntu9 No fix listed

References