CVE-2024-42040
High · 8.1CVSS
8.1
EPSS
0.6%
Published
Aug 23, 2024
CISA due date
—
Cloudanix analysis
A flaw in device startup software lets nearby attackers quietly steal small pieces of memory that may contain useful information.
- Exploitation
- Adjacent Network
- Attacker needs
- None
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Firmware
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Buffer overflow in net/bootp.c allows crafted DHCP responses on the local network to leak 4-32 bytes of adjacent memory containing DHCP-provided parameters.
Why it matters to the business
Attackers on the same network can obtain limited sensitive data from affected devices, increasing risk of further targeted attacks; widespread use in embedded and Android environments raises exposure for many organizations.
How an attack unfolds
An attacker on the local network sends specially crafted DHCP responses that trigger the overflow in U-Boot's BOOTP handling, causing the device to transmit memory contents from beyond the packet buffer back over the network.
How to fix it
Upgrade affected Android Wifi modules to the fixed versions released 2022-09-01 for Android 13 and 13-next; apply vendor patches for any U-Boot-based firmware that incorporate the corrected net/bootp.c logic.
How to confirm the fix worked
Confirm the installed U-Boot or Android Wifi package version matches or exceeds the 2022-09-01 fixes; review boot logs and DHCP packet handling code for the corrected buffer bounds checks.
Typical attack path
- Attacker gains access to the local network segment used for DHCP.
- Attacker crafts and transmits malicious DHCP responses targeting the vulnerable BOOTP code path.
- Device processes the response and leaks 4-32 bytes of adjacent memory over the network.
- Attacker captures the leaked data for reconnaissance or credential harvesting.
How to detect it
Monitor DHCP traffic for anomalous response sizes or unexpected memory patterns; inspect device logs for unusual outbound packets following DHCP exchanges; review network captures for responses that exceed normal BOOTP packet lengths.
What your security team should do
- Prioritize patching all Android 13 and later devices to the September 2022 security level.
- Scan firmware images for vulnerable U-Boot versions and replace with patched builds.
- Segment networks to limit DHCP exposure for embedded devices until updates are applied.
The record
Buffer Overflow vulnerability in the net/bootp.c in DENEX U-Boot from its initial commit in 2002 (3861aa5) up to today on any platform allows an attacker on the local network to leak memory from four up to 32 bytes of memory stored behind the packet to the network depending on the later use of DHCP-provided parameters via crafted DHCP responses.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | u-boot | 0 | No fix |
| Debian:12 | u-boot | 0 | No fix |
| Debian:13 | u-boot | 0 | No fix |
| Ubuntu:16.04:LTS | u-boot | 0 | No fix |
| Ubuntu:18.04:LTS | u-boot | 0 | No fix |
| Ubuntu:20.04:LTS | u-boot | 0 | No fix |
| Ubuntu:22.04:LTS | u-boot | 0 | No fix |
| Ubuntu:22.04:LTS | u-boot-nezha | 0 | No fix |
| Ubuntu:24.04:LTS | u-boot | 0 | No fix |
| Ubuntu:24.04:LTS | u-boot-nezha | 0 | No fix |
| Ubuntu:24.10 | u-boot | 0 | No fix |
| Ubuntu:24.10 | u-boot-nezha | 0 | No fix |
| Ubuntu:25.04 | u-boot | 0 | No fix |
| Ubuntu:25.04 | u-boot-nezha | 0 | No fix |
| Ubuntu:25.10 | u-boot | 0 | No fix |
| Ubuntu:25.10 | u-boot-nezha | 0 | No fix |
| Ubuntu:Pro:16.04:LTS | u-boot | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | u-boot | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | u-boot | 0 | No fix |
Related vulnerabilities
- CVE-2022-2347 There exists an unchecked length field in UBoot. Also affects u-boot
- CVE-2022-34835 In Das U-Boot through 2022.07-rc5, an integer signedness error and resultant stack-based… Also affects u-boot
- CVE-2022-30790 Das U-Boot 2022.01 has a Buffer Overflow, a different issue than CVE-2022-30552. Also affects u-boot
- CVE-2022-30552 Das U-Boot 2022.01 has a Buffer Overflow. Also affects u-boot
- CVE-2026-112108 A vulnerability was determined in ztxz16 fastllm up to 0.1.8.2. CWE-120
- CVE-2026-90804 A vulnerability was detected in GNU Binutils 2.47. CWE-120
- CVE-2026-90803 A security vulnerability has been detected in GNU Binutils 2.47. CWE-120
- CVE-2026-90801 A security flaw has been discovered in GNU Binutils 2.47. CWE-120