{"answers":{"affected":"It affects 1 product.","exploited":"There is no known exploitation of CVE-2021-20295 in the wild and no public exploit code.","fix":"Upgrade to a fixed version.","what":"CVE-2021-20295 is a medium-severity vulnerability in Qemu Qemu, published on 1 Apr 2022."},"fix_prompt":"Check this codebase for CVE-2021-20295 and fix it if it is affected.\n\nWhat it is: CVE-2021-20295 is a medium-severity vulnerability in Qemu Qemu, published on 1 Apr 2022. \nExploitation: There is no known exploitation of CVE-2021-20295 in the wild and no public exploit code.\n\nAffected product: Qemu Qemu. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2021-20295/ (Markdown: https://insights.sbomify.com/CVE-2021-20295/index.md)","id":"CVE-2021-20295","markdown":"https://insights.sbomify.com/CVE-2021-20295/index.md","name":"CVE-2021-20295","record":{"aliases":["GHSA-rjqx-xfpj-xxrg","RHSA-2021:1064","RLSA-2021:1064"],"analysis":null,"analysis_generated_by":null,"assigner":"redhat","cpe":[{"product":"qemu","vendor":"qemu"}],"cvss":{"score":6.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-125","name":"Out-of-bounds Read"}],"description":"It was discovered that the update for the virt:rhel module in the RHSA-2020:4676 (https://access.redhat.com/errata/RHSA-2020:4676) erratum released as part of Red Hat Enterprise Linux 8.3 failed to include the fix for the qemu-kvm component issue CVE-2020-10756, which was previously corrected in virt:rhel/qemu-kvm via erratum RHSA-2020:4059 (https://access.redhat.com/errata/RHSA-2020:4059). CVE-2021-20295 was assigned to that Red Hat specific security regression. For more details about the original security issue CVE-2020-10756, refer to bug 1835986 or the CVE page: https://access.redhat.com/security/cve/CVE-2020-10756.","ecosystems":["Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::crb","Rocky Linux:8"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"It was discovered that the update for the virt:rhel module in the RHSA-2020:4676 (https://access.redhat.com/errata/RHSA-2020:4676) erratum r","id":"CVE-2021-20295","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"qemu:qemu","products":["qemu:qemu"],"type":null,"year":"2021"},"n_packages":306,"n_references":3,"next":{"headline":"Null dereference in OpenEXR","id":"CVE-2021-20296"},"packages":[{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:20191022-3.git899d9883.module+el8.3.0+6423+e4cb6418"],"introduced":["0"],"last_affected":[],"package":"SLOF","purl":"pkg:rpm/redhat/SLOF","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.3.18-20.module+el8.3.0+6423+e4cb6418"],"introduced":["0"],"last_affected":[],"package":"hivex","purl":"pkg:rpm/redhat/hivex","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.3.18-20.module+el8.3.0+6423+e4cb6418"],"introduced":["0"],"last_affected":[],"package":"hivex-debuginfo","purl":"pkg:rpm/redhat/hivex-debuginfo","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.3.18-20.module+el8.3.0+6423+e4cb6418"],"introduced":["0"],"last_affected":[],"package":"hivex-debugsource","purl":"pkg:rpm/redhat/hivex-debugsource","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.3.18-20.module+el8.3.0+6423+e4cb6418"],"introduced":["0"],"last_affected":[],"package":"hivex-devel","purl":"pkg:rpm/redhat/hivex-devel","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs","purl":"pkg:rpm/redhat/libguestfs","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-bash-completion","purl":"pkg:rpm/redhat/libguestfs-bash-completion","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-benchmarking","purl":"pkg:rpm/redhat/libguestfs-benchmarking","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-benchmarking-debuginfo","purl":"pkg:rpm/redhat/libguestfs-benchmarking-debuginfo","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-debuginfo","purl":"pkg:rpm/redhat/libguestfs-debuginfo","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-debugsource","purl":"pkg:rpm/redhat/libguestfs-debugsource","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-devel","purl":"pkg:rpm/redhat/libguestfs-devel","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-gfs2","purl":"pkg:rpm/redhat/libguestfs-gfs2","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-gobject","purl":"pkg:rpm/redhat/libguestfs-gobject","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-gobject-debuginfo","purl":"pkg:rpm/redhat/libguestfs-gobject-debuginfo","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-gobject-devel","purl":"pkg:rpm/redhat/libguestfs-gobject-devel","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-inspect-icons","purl":"pkg:rpm/redhat/libguestfs-inspect-icons","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-java","purl":"pkg:rpm/redhat/libguestfs-java","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-java-debuginfo","purl":"pkg:rpm/redhat/libguestfs-java-debuginfo","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-java-devel","purl":"pkg:rpm/redhat/libguestfs-java-devel","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-javadoc","purl":"pkg:rpm/redhat/libguestfs-javadoc","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-man-pages-ja","purl":"pkg:rpm/redhat/libguestfs-man-pages-ja","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-man-pages-uk","purl":"pkg:rpm/redhat/libguestfs-man-pages-uk","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-rescue","purl":"pkg:rpm/redhat/libguestfs-rescue","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-rsync","purl":"pkg:rpm/redhat/libguestfs-rsync","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-tools","purl":"pkg:rpm/redhat/libguestfs-tools","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-tools-c","purl":"pkg:rpm/redhat/libguestfs-tools-c","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-tools-c-debuginfo","purl":"pkg:rpm/redhat/libguestfs-tools-c-debuginfo","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:8.2-1.module+el8.3.0+6423+e4cb6418"],"introduced":["0"],"last_affected":[],"package":"libguestfs-winsupport","purl":"pkg:rpm/redhat/libguestfs-winsupport","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.40.2-25.module+el8.3.0+7421+642fe24f"],"introduced":["0"],"last_affected":[],"package":"libguestfs-xfs","purl":"pkg:rpm/redhat/libguestfs-xfs","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.18.0-8.module+el8.1.0+4066+0f1aadab"],"introduced":["0"],"last_affected":[],"package":"libiscsi","purl":"pkg:rpm/redhat/libiscsi","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.18.0-8.module+el8.1.0+4066+0f1aadab"],"introduced":["0"],"last_affected":[],"package":"libiscsi-debuginfo","purl":"pkg:rpm/redhat/libiscsi-debuginfo","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.18.0-8.module+el8.1.0+4066+0f1aadab"],"introduced":["0"],"last_affected":[],"package":"libiscsi-debugsource","purl":"pkg:rpm/redhat/libiscsi-debugsource","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.18.0-8.module+el8.1.0+4066+0f1aadab"],"introduced":["0"],"last_affected":[],"package":"libiscsi-devel","purl":"pkg:rpm/redhat/libiscsi-devel","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.18.0-8.module+el8.1.0+4066+0f1aadab"],"introduced":["0"],"last_affected":[],"package":"libiscsi-utils","purl":"pkg:rpm/redhat/libiscsi-utils","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.18.0-8.module+el8.1.0+4066+0f1aadab"],"introduced":["0"],"last_affected":[],"package":"libiscsi-utils-debuginfo","purl":"pkg:rpm/redhat/libiscsi-utils-debuginfo","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.2.2-1.module+el8.3.0+7353+9de0a3cc"],"introduced":["0"],"last_affected":[],"package":"libnbd","purl":"pkg:rpm/redhat/libnbd","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.2.2-1.module+el8.3.0+7353+9de0a3cc"],"introduced":["0"],"last_affected":[],"package":"libnbd-debuginfo","purl":"pkg:rpm/redhat/libnbd-debuginfo","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.2.2-1.module+el8.3.0+7353+9de0a3cc"],"introduced":["0"],"last_affected":[],"package":"libnbd-debugsource","purl":"pkg:rpm/redhat/libnbd-debugsource","source":"RHSA-2021:1064"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["0:1.2.2-1.module+el8.3.0+7353+9de0a3cc"],"introduced":["0"],"last_affected":[],"package":"libnbd-devel","purl":"pkg:rpm/redhat/libnbd-devel","source":"RHSA-2021:1064"}],"prev":{"headline":"Memory corruption in binutils","id":"CVE-2021-20294"},"products":["QEMU"],"published":"2022-04-01","related":[{"cvss_score":10,"headline":"Null dereference in n/a","id":"CVE-2022-36648","kev_date_added":null,"published":"2023-08-22"},{"cvss_score":10,"headline":"Race condition in n/a","id":"CVE-2015-8556","kev_date_added":null,"published":"2017-03-24"},{"cvss_score":9.9,"headline":"Use after free in n/a","id":"CVE-2009-3616","kev_date_added":null,"published":"2009-10-23"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2019-12928","kev_date_added":null,"published":"2019-06-24"},{"cvss_score":9.8,"headline":"Command injection in n/a","id":"CVE-2019-12929","kev_date_added":null,"published":"2019-06-24"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2018-20815","kev_date_added":null,"published":"2019-05-31"},{"cvss_score":9.8,"headline":"Memory corruption in n/a","id":"CVE-2017-8380","kev_date_added":null,"published":"2017-08-28"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2021-20295/"}