CVE-2024-6563

Source
https://cve.org/CVERecord?id=CVE-2024-6563
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-6563.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-6563
Downstream
Published
2024-07-08T16:15:09.210Z
Modified
2026-02-05T09:53:01.356181Z
Severity
  • 6.7 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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/rcargen3v2.5/drivers/renesas/common/io/i... https://github.Com/renesas-rcar/arm-trusted-firmware/blob/rcargen3v2.5/drivers/renesas/common/io/io_rcar.C .

In line 313 "addrloadedcnt" is checked not to be "CHECKIMAGEAREACNT" (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 "addrloadedcnt". This will allow an attacker to freely control the value of "addrloaded_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.

References

Affected packages

Git / github.com/renesas-rcar/arm-trusted-firmware

Affected ranges

Type
GIT
Repo
https://github.com/renesas-rcar/arm-trusted-firmware
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Database specific

vanir_signatures
[
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "target": {
            "file": "drivers/renesas/common/io/io_rcar.c"
        },
        "id": "CVE-2024-6563-5e322984",
        "deprecated": false,
        "source": "https://github.com/renesas-rcar/arm-trusted-firmware/commit/235f85b654a031f7647e81b86fc8e4ffeb430164",
        "digest": {
            "line_hashes": [
                "5306353261230674112748390844541367971",
                "237654659832496193898350711877898610784",
                "286562944477147116243301895641448928909",
                "329122056387412962516008386807063035741",
                "169469588796343261800082808245802242951",
                "128084887657317476214061130812382993204",
                "154197764843231599908566094608739882373",
                "222757985045932777521020131219474491088",
                "252438517959250767934514991296120511929",
                "264025565449943432029901946823271304288",
                "60540247791492813539190168452685739321",
                "248222829592457683959042864063239336353",
                "193269609410138548223284012004379538848",
                "225675910933820663170087163555564316079",
                "335504702328050236476555333563672774547",
                "29690372471153175238487465472100632514",
                "159765279220270236025663740279864021749",
                "49184437577928687675462260305400066600",
                "320585149494599917125903103958911094576",
                "325253369158228798738299386462784752710",
                "331567552586090135742015866647600046805",
                "278204036782704859226745542875428915335",
                "88892160249053776745952190964165279793",
                "176743936227156781527099814904786942772"
            ],
            "threshold": 0.9
        }
    },
    {
        "signature_type": "Function",
        "signature_version": "v1",
        "target": {
            "file": "drivers/renesas/common/io/io_rcar.c",
            "function": "check_load_area"
        },
        "id": "CVE-2024-6563-bd00d173",
        "deprecated": false,
        "source": "https://github.com/renesas-rcar/arm-trusted-firmware/commit/235f85b654a031f7647e81b86fc8e4ffeb430164",
        "digest": {
            "function_hash": "205838885523491826744310025906654511193",
            "length": 1711.0
        }
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-6563.json"