| Name | CVE-2024-42040 |
| Description | 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-4642-1 |
| Debian Bugs | 1081557 |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|
| u-boot (PTS) | bullseye | 2021.01+dfsg-5 | vulnerable |
| bullseye (security) | 2021.01+dfsg-5+deb11u3 | fixed |
| bookworm | 2023.01+dfsg-2+deb12u2 | vulnerable |
| bookworm (security) | 2023.01+dfsg-2+deb12u3 | fixed |
| trixie | 2025.01-3 | vulnerable |
| forky, sid | 2025.01-3.2 | fixed |
The information below is based on the following data on fixed versions.
Notes
[trixie] - u-boot <postponed> (Minor issue, revisit when fixed upstream)
https://lists.denx.de/pipermail/u-boot/2024-August/562528.html
https://www.schutzwerk.com/advisories/SCHUTZWERK-SA-2024-004.txt
Fixed by: https://github.com/u-boot/u-boot/commit/81e5708cc2c865df606e49aed5415adb2a662171 (v2026.01-rc1)