Summary
Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2022-3775: A flaw was found in the grub2 font code. When rendering certain unicode sequences, it fails to properly validate the font width and height. These values are further used to access the font buffer, causing possible out-of-bounds writes. A malicious actor may craft a font capable of triggering this issue, allowing modifications in unauthorized memory segments, causing data integrity problems or leading to denial of service. CVE-2022-28736: A use-after-free vulnerability was found on grub2's chainloader command. This flaw allows an attacker to gain access to restricted data or cause arbitrary code execution if they can establish control from grub's memory allocation pattern. CVE-2022-28735: A flaw was found in grub2. The shim_lock verifier from grub2 allows non-kernel files to be loaded when secure boot is enabled, giving the possibility of unverified code or modules to be loaded when it should not be allowed. CVE-2022-28734: A flaw was found in grub2 when handling split HTTP headers. While processing a split HTTP header, grub2 wrongly advances its control pointer to the internal buffer by one position, which can lead to an out-of-bounds write. This flaw allows an attacker to leverage this issue by crafting a malicious set of HTTP packages making grub2 corrupt its internal memory metadata structure. This leads to data integrity and confidentiality issues or forces grub to crash, resulting in a denial of service attack. CVE-2022-28733: A flaw was found in grub2 when handling IPv4 packets. This flaw allows an attacker to craft a malicious packet, triggering an integer underflow in grub code. Consequently, the memory allocation for handling the packet data may be smaller than the size needed. This issue causes an out-of-bands write during packet handling, compromising data integrity, confidentiality issues, a denial of service, and remote code execution. CVE-2022-2601: A flaw was found where a maliciously crafted pf2 font could lead to an out-of-bounds write in grub2. A successful attack can lead to memory corruption and secure boot circumvention. CVE-2021-3697: A flaw was found in grub2 when handling JPEG images. This flaw allows an attacker to craft a malicious JPEG image, which leads to an underflow on a grub2's internal pointer, leading to a heap-based out-of-bounds write. Secure-boot mechanisms circumvention and arbitrary code execution may also be achievable. CVE-2021-3696: A flaw was found in grub2 when handling a PNG image header. When decoding the data contained in the Huffman table at the PNG file header, an out-of-bounds write may happen on grub's heap. CVE-2021-3695: A flaw was found in grub 2, where a crafted 16-bit grayscale PNG image may lead to an out-of-bounds write. This flaw allows an attacker to corrupt the data on the heap portion of the grub2's memory, leading to possible code execution and the circumvention of the secure boot mechanism.
Fixed packages 19
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux · 2 | grub2 | 1:2.06-14.amzn2 |
| Amazon Linux · 2 | grub2-common | 1:2.06-14.amzn2 |
| Amazon Linux · 2 | grub2-debuginfo | 1:2.06-14.amzn2 |
| Amazon Linux · 2 | grub2-efi-aa64 | 1:2.06-14.amzn2 |
| Amazon Linux · 2 | grub2-efi-aa64-cdboot | 1:2.06-14.amzn2 |
| Amazon Linux · 2 | grub2-efi-aa64-ec2 | 1:2.06-14.amzn2 |
| Amazon Linux · 2 | grub2-efi-aa64-modules | 1:2.06-14.amzn2 |
| Amazon Linux · 2 | grub2-efi-x64 | 1:2.06-14.amzn2 |
| Amazon Linux · 2 | grub2-efi-x64-cdboot | 1:2.06-14.amzn2 |
| Amazon Linux · 2 | grub2-efi-x64-ec2 | 1:2.06-14.amzn2 |
| Amazon Linux · 2 | grub2-efi-x64-modules | 1:2.06-14.amzn2 |
| Amazon Linux · 2 | grub2-emu | 1:2.06-14.amzn2 |
| Amazon Linux · 2 | grub2-emu-modules | 1:2.06-14.amzn2 |
| Amazon Linux · 2 | grub2-pc | 1:2.06-14.amzn2 |
| Amazon Linux · 2 | grub2-pc-modules | 1:2.06-14.amzn2 |
| Amazon Linux · 2 | grub2-tools | 1:2.06-14.amzn2 |
| Amazon Linux · 2 | grub2-tools-efi | 1:2.06-14.amzn2 |
| Amazon Linux · 2 | grub2-tools-extra | 1:2.06-14.amzn2 |
| Amazon Linux · 2 | grub2-tools-minimal | 1:2.06-14.amzn2 |
Vulnerabilities 9
-
High 8.6
A buffer overflow was found in grub_font_construct_glyph(). A malicious crafted pf2 font can lead to an overflow when c…
-
High 8.1
Integer underflow in grub_net_recv_ip4_packets
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 sma…
-
High 8.1
Out-of-bounds write when handling split HTTP headers
Out-of-bounds write when handling split HTTP headers; When handling split HTTP headers, GRUB2 HTTP code accidentally moves its internal data buffer point by one position. This can lead to a out-of-bound write further when parsing the HTTP request, writing a N…
-
High 7.1
When rendering certain unicode sequences, grub2's font code doesn't proper validate if the informed glyph's width and h…
-
Medium 6.7
The GRUB2's shim_lock verifier allows non-kernel files to be loaded on shim-powered secure boot systems. Allowing such …
-
Medium 6.4
There's a use-after-free vulnerability in grub_cmd_chainloader() function
There's a use-after-free vulnerability in grub_cmd_chainloader() function; The chainloader command is used to boot up operating systems that doesn't support multiboot and do not have direct support from GRUB2. When executing chainloader more than once a use-a…
-
Unscored —
A crafted 16-bit grayscale PNG image may lead to a out-of-bounds write in the heap area. An attacker may take advantage…
-
Unscored —
A heap out-of-bounds write may heppen during the handling of Huffman tables in the PNG reader. This may lead to data co…
-
Unscored —
A crafted JPEG image may lead the JPEG reader to underflow its data pointer, allowing user-controlled data to be writte…
References
-
web
https://alas.aws.amazon.com/cve/html/CVE-2021-3695.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2021-3696.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2021-3697.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2022-2601.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2022-28733.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2022-28734.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2022-28735.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2022-28736.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2022-3775.html