{"answers":{"affected":"It affects 14 products.","exploited":"There is no known exploitation of CVE-2021-3975 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2021-3975 is a medium-severity use after free vulnerability in Canonical Ubuntu Linux, published on 23 Aug 2022. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2021-3975 and fix it if it is affected.\n\nWhat it is: CVE-2021-3975 is a medium-severity use after free vulnerability in Canonical Ubuntu Linux, published on 23 Aug 2022. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2021-3975 in the wild and no public exploit code.\n\nAffected product: Canonical Ubuntu Linux. 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-3975/ (Markdown: https://insights.sbomify.com/CVE-2021-3975/index.md)","id":"CVE-2021-3975","markdown":"https://insights.sbomify.com/CVE-2021-3975/index.md","name":"CVE-2021-3975","record":{"aliases":["CLSA-2022-1654537477","CLSA-2022-1654537694","DEBIAN-CVE-2021-3975","GHSA-pg89-46xq-98vv","OESA-2022-1891","RHBA-2021:4684","UBUNTU-CVE-2021-3975"],"analysis":{"component_type":"server_software","fix_type":"patch","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"Virtualization management library","requires_auth":"low_privilege","summary":"An unprivileged client can crash the libvirt daemon via a use-after-free flaw in monitor handling during guest shutdown.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"ubuntu_linux","vendor":"canonical"},{"product":"debian_linux","vendor":"debian"},{"product":"fedora","vendor":"fedoraproject"},{"product":"ontap_select_deploy_administration_utility","vendor":"netapp"},{"product":"codeready_linux_builder","vendor":"redhat"},{"product":"enterprise_linux","vendor":"redhat"},{"product":"enterprise_linux_eus","vendor":"redhat"},{"product":"enterprise_linux_for_ibm_z_systems","vendor":"redhat"},{"product":"enterprise_linux_for_ibm_z_systems_eus","vendor":"redhat"},{"product":"enterprise_linux_for_power_little_endian","vendor":"redhat"},{"product":"enterprise_linux_for_power_little_endian_eus","vendor":"redhat"},{"product":"enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions","vendor":"redhat"},{"product":"enterprise_linux_server_tus","vendor":"redhat"},{"product":"libvirt","vendor":"redhat"}],"cvss":{"score":6.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"description":"A use-after-free flaw was found in libvirt. The qemuMonitorUnregister() function in qemuProcessHandleMonitorEOF is called using multiple threads without being adequately protected by a monitor lock. This flaw could be triggered by the virConnectGetAllDomainStats API when the guest is shutting down. An unprivileged client with a read-only connection could use this flaw to perform a denial of service attack by causing the libvirt daemon to crash.","ecosystems":["Red Hat:advanced_virtualization:8.5::el8"],"exploits":{"exploitdb":0,"first_seen":"2026-06-17","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-06-17T16:33:23Z","kind":"github_poc","ref":"https://github.com/yan5ui/ENV-CVE-2021-3975","stars":0,"title":"Aritifacts of docker env of CVE-2021-3975"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Use after free in libvirt","id":"CVE-2021-3975","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"canonical:ubuntu_linux","products":["canonical:ubuntu_linux","debian:debian_linux","fedoraproject:fedora","netapp:ontap_select_deploy_administration_utility","redhat:enterprise_linux","redhat:enterprise_linux_eus","redhat:enterprise_linux_for_ibm_z_systems","redhat:enterprise_linux_for_ibm_z_systems_eus","redhat:enterprise_linux_for_power_little_endian","redhat:enterprise_linux_for_power_little_endian_eus","redhat:enterprise_linux_server_for_power_little_endian_update_services_for_sap_solutions","redhat:enterprise_linux_server_tus","redhat:libvirt"],"type":"use_after_free","year":"2021"},"n_packages":234,"n_references":6,"next":{"headline":"Cross-Site Request Forgery (CSRF) in kevinpapst/kimai2","id":"CVE-2021-3976"},"packages":[{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["0:20210217-1.module+el8.5.0+10946+35bb3930"],"introduced":["0"],"last_affected":[],"package":"SLOF","purl":"pkg:rpm/redhat/SLOF","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["0:1.3.18-22.module+el8.5.0+12087+2208d04c"],"introduced":["0"],"last_affected":[],"package":"hivex","purl":"pkg:rpm/redhat/hivex","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["0:1.3.18-22.module+el8.5.0+12087+2208d04c"],"introduced":["0"],"last_affected":[],"package":"hivex-debuginfo","purl":"pkg:rpm/redhat/hivex-debuginfo","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["0:1.3.18-22.module+el8.5.0+12087+2208d04c"],"introduced":["0"],"last_affected":[],"package":"hivex-debugsource","purl":"pkg:rpm/redhat/hivex-debugsource","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["0:1.3.18-22.module+el8.5.0+12087+2208d04c"],"introduced":["0"],"last_affected":[],"package":"hivex-devel","purl":"pkg:rpm/redhat/hivex-devel","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs","purl":"pkg:rpm/redhat/libguestfs","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-bash-completion","purl":"pkg:rpm/redhat/libguestfs-bash-completion","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-debuginfo","purl":"pkg:rpm/redhat/libguestfs-debuginfo","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-debugsource","purl":"pkg:rpm/redhat/libguestfs-debugsource","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-devel","purl":"pkg:rpm/redhat/libguestfs-devel","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-gfs2","purl":"pkg:rpm/redhat/libguestfs-gfs2","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-gobject","purl":"pkg:rpm/redhat/libguestfs-gobject","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-gobject-debuginfo","purl":"pkg:rpm/redhat/libguestfs-gobject-debuginfo","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-gobject-devel","purl":"pkg:rpm/redhat/libguestfs-gobject-devel","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-inspect-icons","purl":"pkg:rpm/redhat/libguestfs-inspect-icons","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-java","purl":"pkg:rpm/redhat/libguestfs-java","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-java-debuginfo","purl":"pkg:rpm/redhat/libguestfs-java-debuginfo","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-java-devel","purl":"pkg:rpm/redhat/libguestfs-java-devel","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-javadoc","purl":"pkg:rpm/redhat/libguestfs-javadoc","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-man-pages-ja","purl":"pkg:rpm/redhat/libguestfs-man-pages-ja","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-man-pages-uk","purl":"pkg:rpm/redhat/libguestfs-man-pages-uk","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-rescue","purl":"pkg:rpm/redhat/libguestfs-rescue","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-rsync","purl":"pkg:rpm/redhat/libguestfs-rsync","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-tools","purl":"pkg:rpm/redhat/libguestfs-tools","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-tools-c","purl":"pkg:rpm/redhat/libguestfs-tools-c","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-tools-c-debuginfo","purl":"pkg:rpm/redhat/libguestfs-tools-c-debuginfo","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["0:8.2-2.module+el8.5.0+12739+164806c8"],"introduced":["0"],"last_affected":[],"package":"libguestfs-winsupport","purl":"pkg:rpm/redhat/libguestfs-winsupport","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["1:1.44.0-3.module+el8.5.0+10681+17a9b157"],"introduced":["0"],"last_affected":[],"package":"libguestfs-xfs","purl":"pkg:rpm/redhat/libguestfs-xfs","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["0:1.18.0-8.module+el8.4.0+8855+a9e237a9"],"introduced":["0"],"last_affected":[],"package":"libiscsi","purl":"pkg:rpm/redhat/libiscsi","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["0:1.18.0-8.module+el8.4.0+8855+a9e237a9"],"introduced":["0"],"last_affected":[],"package":"libiscsi-debuginfo","purl":"pkg:rpm/redhat/libiscsi-debuginfo","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["0:1.18.0-8.module+el8.4.0+8855+a9e237a9"],"introduced":["0"],"last_affected":[],"package":"libiscsi-debugsource","purl":"pkg:rpm/redhat/libiscsi-debugsource","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["0:1.18.0-8.module+el8.4.0+8855+a9e237a9"],"introduced":["0"],"last_affected":[],"package":"libiscsi-devel","purl":"pkg:rpm/redhat/libiscsi-devel","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["0:1.18.0-8.module+el8.4.0+8855+a9e237a9"],"introduced":["0"],"last_affected":[],"package":"libiscsi-utils","purl":"pkg:rpm/redhat/libiscsi-utils","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["0:1.18.0-8.module+el8.4.0+8855+a9e237a9"],"introduced":["0"],"last_affected":[],"package":"libiscsi-utils-debuginfo","purl":"pkg:rpm/redhat/libiscsi-utils-debuginfo","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["0:1.6.0-4.module+el8.5.0+11638+3d8f9850"],"introduced":["0"],"last_affected":[],"package":"libnbd","purl":"pkg:rpm/redhat/libnbd","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["0:1.6.0-4.module+el8.5.0+11638+3d8f9850"],"introduced":["0"],"last_affected":[],"package":"libnbd-bash-completion","purl":"pkg:rpm/redhat/libnbd-bash-completion","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["0:1.6.0-4.module+el8.5.0+11638+3d8f9850"],"introduced":["0"],"last_affected":[],"package":"libnbd-debuginfo","purl":"pkg:rpm/redhat/libnbd-debuginfo","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["0:1.6.0-4.module+el8.5.0+11638+3d8f9850"],"introduced":["0"],"last_affected":[],"package":"libnbd-debugsource","purl":"pkg:rpm/redhat/libnbd-debugsource","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["0:1.6.0-4.module+el8.5.0+11638+3d8f9850"],"introduced":["0"],"last_affected":[],"package":"libnbd-devel","purl":"pkg:rpm/redhat/libnbd-devel","source":"RHBA-2021:4684"},{"ecosystem":"Red Hat:advanced_virtualization:8.5::el8","fixed":["0:0.7.4-6.20201106git2452a24dab.module+el8.5.0+12487+f2fa92b4"],"introduced":["0"],"last_affected":[],"package":"libtpms","purl":"pkg:rpm/redhat/libtpms","source":"RHBA-2021:4684"}],"prev":{"headline":"Use After Free in vim/vim","id":"CVE-2021-3974"},"products":["libvirt"],"published":"2022-08-23","related":[{"cvss_score":9.8,"headline":"SaltStack Salt Authentication Bypass","id":"CVE-2020-11651","kev_date_added":"2021-11-03","published":"2020-04-30"},{"cvss_score":9.8,"headline":"OpenSMTPD Remote Code Execution","id":"CVE-2020-7247","kev_date_added":"2022-03-25","published":"2020-01-29"},{"cvss_score":9.8,"headline":"Exim Out-of-bounds Write","id":"CVE-2019-16928","kev_date_added":"2022-03-03","published":"2019-09-27"},{"cvss_score":9.8,"headline":"Exim Buffer Overflow","id":"CVE-2018-6789","kev_date_added":"2021-11-03","published":"2018-02-08"},{"cvss_score":9.8,"headline":"Oracle Java SE and Java SE Embedded Remote Code Execution","id":"CVE-2015-2590","kev_date_added":"2022-03-03","published":"2015-07-16"},{"cvss_score":9.8,"headline":"Oracle JRE Remote Code Execution","id":"CVE-2013-0422","kev_date_added":"2022-05-25","published":"2013-01-10"},{"cvss_score":9.8,"headline":"Oracle Java SE Runtime Environment (JRE) Arbitrary Code Execution","id":"CVE-2011-3544","kev_date_added":"2022-03-03","published":"2011-10-19"}],"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":"RHBA"},{"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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-03","vendors":["n/a"]},"summary":"An unprivileged client can crash the libvirt daemon via a use-after-free flaw in monitor handling during guest shutdown.","url":"https://insights.sbomify.com/CVE-2021-3975/"}