Skip to content
OpenAdvisories
High · 7.5 CVE-2024-6563 EUVD-2024-47635GHSA-5mvx-hm4v-mrqg

Buffer Overflow Arbitrary Write

Published Jul 8, 2024 · Updated Aug 1, 2024 · Assigned by ASRG

Description

Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') vulnerability in Renesas arm-trusted-firmware allows Local Execution of Code. This vulnerability is associated with program files https://github.Com/renesas-rcar/arm-trusted-firmware/blob/rcar_gen3_v2.5/drivers/renesas/common/io/i... https://github.Com/renesas-rcar/arm-trusted-firmware/blob/rcar_gen3_v2.5/drivers/renesas/common/io/io_rcar.C .

In line 313 "addr_loaded_cnt" is checked not to be "CHECK_IMAGE_AREA_CNT" (5) or larger, this check does not halt the function. Immediately after (line 317) there will be an overflow in the buffer and the value of "dst" will be written to the area immediately after the buffer, which is "addr_loaded_cnt". This will allow an attacker to freely control the value of "addr_loaded_cnt" and thus control the destination of the write immediately after (line 318). The write in line 318 will then be fully controlled by said attacker, with whichever address and whichever value ("len") they desire.

Affected products

VendorProductAffectedFixed
Renesas rcar_gen3_v2.5 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 arm-trusted-firmware 2.12.0+dfsg-2 —
Debian 13 arm-trusted-firmware 2.12.0+dfsg-2 —
Debian 12 arm-trusted-firmware No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 arm-trusted-firmware No fix yet —
Ubuntu 26.04 LTS arm-trusted-firmware No fix yet —
Ubuntu 25.10 arm-trusted-firmware No fix yet —
Ubuntu 24.04 LTS arm-trusted-firmware No fix yet —
Ubuntu 22.04 LTS arm-trusted-firmware No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS arm-trusted-firmware No fix yet —

References