All reports
High

QEMU: device_tree: heap buffer overflow while loading device tree blob

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2018-20815

Probability of exploitation in the next 30 days: 4.43%

FIRST EPSS · 2026-11-18

Description

In QEMU 3.1.0, load_device_tree in device_tree.c calls the deprecated load_image function, which has a buffer overflow risk.

A heap buffer overflow issue was found in the load_device_tree() function of QEMU, which is invoked to load a device tree blob at boot time. It occurs due to device tree size manipulation before buffer allocation, which could overflow a signed int type. A user/process could use this flaw to potentially execute arbitrary code on a host system with privileges of the QEMU process.