Skip to main content
Mallory
HighVulnerability

CVE-2024-42040: Buffer Overflow in DENEX U-Boot net/bootp.c via DHCP

Published Aug 23, 2024 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS8.1High · v3.1
EPSS0.60%49th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
Vendor
Denx
IdentifiersCVE-2024-42040CWE-119

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
Exposure surface

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.

VendorProductType
DenxU-Bootapplication
FAQ

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.
Activity feed

Recent activity

1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.