Out-of-bounds read in Universal Boot Loader (U-Boot) - CVE-2024-42040
Published: February 24, 2026
Vulnerability details
The vulnerability allows a remote attacker to gain access to potentially sensitive information.
The vulnerability exists due to a boundary condition within the bootp_handler() function in net/bootp.c when handling DHCP packets. A remote attacker on the local network can send specially crafted DHCP packets to the affected system to trigger an out-of-bounds read error and read contents of memory on the system by analyzing DHCP responses.
Affected software
openEuler
Ubuntu
uboot-tools
uboot-images-elf
uboot-tools-debuginfo
uboot-tools-debugsource
uboot-images-armv8
uboot-tools-help
u-boot (Ubuntu package)
How to mitigate CVE-2024-42040
uboot-tools - update to 2021.10-12
uboot-images-elf - update to 2021.10-12
uboot-tools-debuginfo - update to 2021.10-12
uboot-tools-debugsource - update to 2021.10-12
uboot-images-armv8 - update to 2021.10-12
uboot-tools-help - update to 2021.10-12
u-boot (Ubuntu package) - addressed in versions 2022.01+dfsg-2ubuntu2.7, 2025.10-0ubuntu0.24.04.2