CVE-2024-42040: Buffer Overflow in DENEX U-Boot net/bootp.c via DHCP
- Vendor
- Denx
A buffer overflow vulnerability exists in DENEX U-Boot's net/bootp.c from its initial commit in 2002 up to the present, on all platforms. An attacker on the local network can exploit this flaw by sending crafted DHCP responses, causing the system to leak between 4 and 32 bytes of memory located after the affected packet buffer. The amount of leaked memory depends on how DHCP-provided parameters are subsequently used.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows a local network attacker to leak sensitive memory contents from the U-Boot environment to the network. The leaked data may include sensitive information, depending on memory layout and usage, and could facilitate further attacks or information gathering.
Mitigation
If you can’t patch tonight, do this now.
Restrict access to the local network to trusted devices only, and block untrusted DHCP responses at the network perimeter. Where possible, disable or limit the use of DHCP in U-Boot environments, or use static network configuration to prevent exposure to malicious DHCP traffic.
Remediation
Patch, then assume compromise.
Update DENEX U-Boot to a version containing a fix for this buffer overflow in net/bootp.c. If no official patch is available, consider applying a vendor or community-provided patch that addresses the improper handling of DHCP responses and ensures memory safety.
Exploits
No public exploits tracked yet. Mallory keeps watching.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2024-42040 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2024-42040 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2024-42040?
- As of Sep 25, 2026, Mallory has found no public exploit for CVE-2024-42040.
- Is there a patch for CVE-2024-42040?
- Update DENEX U-Boot to a version containing a fix for this buffer overflow in net/bootp.c. If no official patch is available, consider applying a vendor or community-provided patch that addresses the improper handling of DHCP responses and ensures memory safety.
- What products are affected by CVE-2024-42040?
- Denx U-Boot.
- How severe is CVE-2024-42040?
- CVE-2024-42040 has a CVSS v3.1 score of 8.1 (High) and an EPSS score of 0.60% (49th percentile) as of Sep 25, 2026.
Recent activity
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.