CVE-2022-28733: Integer underflow in grub_net_recv_ip4_packets

Published May 9, 2022
·
Updated

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.

Other sources

A malicious crafted IP packet can lead to a integer underflow in grubnetrecvip4packets() function on rsm->totallen value. Under certain circumstances the totallen value may ending 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.

Red Hat

Integer underflow in grubnetrecvip4packets; A malicious crafted IP packet can lead to an integer underflow in grubnetrecvip4packets() function on rsm->totallen value. Under certain circumstances the totallen 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.

Affected Software

12 affected componentsFixes available
ubuntu/grub2<2.06-3
2.06-3
debian/grub2
2.06-3~deb10u12.06-3~deb10u32.06-3~deb11u52.06-3~deb11u42.06-132.12~rc1-9
redhat/grub2<1:2.02-0.87.el7_9.11
1:2.02-0.87.el7_9.11
redhat/grub2<1:2.02-123.el8_6.8
1:2.02-123.el8_6.8
redhat/grub2<1:2.02-87.el8_1.10
1:2.02-87.el8_1.10
redhat/grub2<1:2.02-87.el8_2.10
1:2.02-87.el8_2.10
redhat/grub2<1:2.02-99.el8_4.9
1:2.02-99.el8_4.9
redhat/grub2<1:2.06-27.el9_0.7
1:2.06-27.el9_0.7
GNU GRUB2>=2.00<2.06-3
redhat/grub<2.12
2.12
Microsoft azl3 grub2 2.06-14
Microsoft azl3 grub2 2.06-23

Event History

May 9, 2022
Data Sourced
via Red Hat·06:26 PM
DescriptionSeverityAffected Software
Jun 7, 2022
CVE Published
12:00 AM
Jul 20, 2023
CVE Published
via MITRE·12:20 AM
Data Sourced
via MITRE·12:20 AM
DescriptionSeverityWeakness
Data Sourced
01:15 AM
Description
Jul 29, 2023
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID of this flaw?

The vulnerability ID of this flaw is CVE-2022-28733.

2

How does this vulnerability affect the affected software?

This vulnerability affects the affected software by allowing an attacker to craft a malicious packet that triggers an integer underflow in the grub code.

3

What is the severity of CVE-2022-28733?

The severity of CVE-2022-28733 is high with a CVSSv3 score of 8.1.

4

What is the recommended remedy for this vulnerability?

The recommended remedy for this vulnerability is to update the affected software to version 1:2.02-0.87.el7_9.11 for Red Hat, 1:2.02-123.el8_6.8 for Red Hat, and 1:2.02-87.el8_1.10 for Red Hat, among others.

5

Where can I find more information about CVE-2022-28733?

You can find more information about CVE-2022-28733 on the MITRE CVE website, the NVD website, and the Openwall mailing list.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203