CVE-2024-6563 Buffer Overflow Arbitrary Write

High 7.5 Published Updated

A buffer overflow in Renesas arm-trusted-firmware allows local attackers to execute arbitrary code by controlling write destinations.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-6563?

CVE-2024-6563 is a high-severity memory corruption vulnerability in Renesas rcar_gen3_v2.5, published on 8 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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.

Weakness: CWE-123, CWE-120

Which versions are affected by CVE-2024-6563?

It affects 1 product.

Products include Renesas Arm-Trusted-Firmware.

How do I fix CVE-2024-6563?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2024-6563 being exploited?

There is no known exploitation of CVE-2024-6563 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2024-6563, GHSA-5mvx-hm4v-mrqg, UBUNTU-CVE-2024-6563.

Is CVE-2024-6563 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free