Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-13765

rom_copy() in hw/core/loader.c in QEMU 4.0 and 4.1.0 does not validate the relationship between two addresses, which allows attackers to trigger an invalid memory copy operation.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-13765
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 09:26 UTC · Revision 1

Source evidence

CVE-2020-13765

core-osv · Original source

Published 4 Jun 2020, 16:15 UTC

rom_copy() in hw/core/loader.c in QEMU 4.0 and 4.1.0 does not validate the relationship between two addresses, which allows attackers to trigger an invalid memory copy operation.

osv:CVE-2020-13765
Complete source record
{
  "id": "afa6fec86e5071d4a9d0bada05d8581b819b8c46f8a87dff1752800f0e57d495",
  "url": "https://osv.dev/vulnerability/CVE-2020-13765",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-13765",
    "summary": "rom_copy() in hw/core/loader.c in QEMU 4.0 and 4.1.0 does not validate the relationship between two addresses, which allows attackers to trigger an invalid memory copy operation.",
    "evidence": "osv:CVE-2020-13765",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2020-13765",
      "aliases": [
        "CVE-2020-13765"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/qemu/qemu",
              "type": "GIT",
              "events": [
                {
                  "introduced": "131b9a05705636086699df15d4a6d328bb2585e8"
                },
                {
                  "last_affected": "9e06029aea3b2eca1d5261352e695edc1e7d7b8b"
                },
                {
                  "fixed": "4f1c6cb2f9afafda05eab150fd2bd284edce6676"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:qemu:qemu:4.0.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0.0"
                      },
                      {
                        "last_affected": "4.0.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:qemu:qemu:4.1.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.1.0"
                      },
                      {
                        "last_affected": "4.1.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "4f1c6cb2f9afafda05eab150fd2bd284edce6676"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.0.0",
            "4.1.0",
            "v4.1.0",
            "v4.0.0",
            "v4.1.0-rc5",
            "v4.1.0-rc4",
            "v4.1.0-rc3",
            "v4.1.0-rc2",
            "v4.1.0-rc1",
            "v4.1.0-rc0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-13765.json",
            "vanir_signatures": [
              {
                "id": "CVE-2020-13765-52aec4f2",
                "digest": {
                  "length": 806,
                  "function_hash": "315737413509995494059465210785208843611"
                },
                "source": "https://github.com/qemu/qemu/commit/4f1c6cb2f9afafda05eab150fd2bd284edce6676",
                "target": {
                  "file": "hw/core/loader.c",
                  "function": "rom_copy"
                },
                "deprecated": false,
                "signature_type": "Function",
                "signature_version": "v1"
              },
              {
                "id": "CVE-2020-13765-65bc6aee",
                "digest": {
                  "threshold": 0.9,
                  "line_hashes": [
                    "267339549307449947660949751854151850983",
                    "110132884278840075412521224850424890255",
                    "334845614295670398872123961122288365889",
                    "21360557838413486433886623456299285571"
                  ]
                },
                "source": "https://github.com/qemu/qemu/commit/4f1c6cb2f9afafda05eab150fd2bd284edce6676",
                "target": {
                  "file": "hw/core/loader.c"
                },
                "deprecated": false,
                "signature_type": "Line",
                "signature_version": "v1"
              }
            ],
            "vanir_signatures_modified": "2026-10-24T14:22:38Z"
          }
        },
        {
          "ranges": [
            {
              "repo": "https://gitlab.com/qemu-project/qemu",
              "type": "GIT",
              "events": [
                {
                  "introduced": "131b9a05705636086699df15d4a6d328bb2585e8"
                },
                {
                  "last_affected": "9e06029aea3b2eca1d5261352e695edc1e7d7b8b"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:qemu:qemu:4.0.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.0.0"
                      },
                      {
                        "last_affected": "4.0.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:qemu:qemu:4.1.0:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "4.1.0"
                      },
                      {
                        "last_affected": "4.1.0"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "4.0.0",
            "4.1.0",
            "v4.1.0",
            "v4.0.0",
            "v4.1.0-rc5",
            "v4.1.0-rc4",
            "v4.1.0-rc3",
            "v4.1.0-rc2",
            "v4.1.0-rc1",
            "v4.1.0-rc0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-13765.json"
          }
        }
      ],
      "modified": "2026-10-24T14:22:38.605402570Z",
      "provider": "osv",
      "references": [
        "https://git.qemu.org/?p=qemu.git%3Ba=commit%3Bh=e423455c4f23a1a828901c78fe6d03b7dde79319",
        "https://lists.debian.org/debian-lts-announce/2020/06/msg00032.html",
        "https://lists.debian.org/debian-lts-announce/2020/07/msg00020.html",
        "https://security.netapp.com/advisory/ntap-20200619-0006/",
        "https://usn.ubuntu.com/4467-1/",
        "https://www.openwall.com/lists/oss-security/2020/06/03/6",
        "https://github.com/qemu/qemu/commit/4f1c6cb2f9afafda05eab150fd2bd284edce6676"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:esm:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*",
              "cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:*"
            ],
            "vendor_product": "canonical:ubuntu_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "16.04"
                  },
                  {
                    "last_affected": "16.04"
                  },
                  {
                    "introduced": "18.04"
                  },
                  {
                    "last_affected": "18.04"
                  },
                  {
                    "introduced": "20.04"
                  },
                  {
                    "last_affected": "20.04"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
              "cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "8.0"
                  },
                  {
                    "last_affected": "8.0"
                  },
                  {
                    "introduced": "9.0"
                  },
                  {
                    "last_affected": "9.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2020-13765",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 443675,
  "published_at": "2020-06-04T16:15:12.733+00:00"
}