{"answers":{"affected":"It affects 3 products.","exploited":"There is no known exploitation of CVE-2022-1158 in the wild and no public exploit code.","fix":"Apply the vendor's patch.","what":"CVE-2022-1158 is a high-severity use after free vulnerability in Fedoraproject Fedora, published on 5 Aug 2022. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2022-1158 and fix it if it is affected.\n\nWhat it is: CVE-2022-1158 is a high-severity use after free vulnerability in Fedoraproject Fedora, published on 5 Aug 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2022-1158 in the wild and no public exploit code.\n\nAffected product: Fedoraproject Fedora. 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-2022-1158/ (Markdown: https://insights.sbomify.com/CVE-2022-1158/index.md)","id":"CVE-2022-1158","markdown":"https://insights.sbomify.com/CVE-2022-1158/index.md","name":"CVE-2022-1158","record":{"aliases":["AZL-10540","DEBIAN-CVE-2022-1158","RHSA-2022:8673","RHSA-2022:8685","RHSA-2022:8686","SUSE-SU-2022:1571-1","SUSE-SU-2022:1629-1","UBUNTU-CVE-2022-1158"],"analysis":{"component_type":"kernel","fix_type":"patch","impacts":["denial_of_service","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Linux kernel KVM","requires_auth":"low_privilege","summary":"Unprivileged local users can corrupt kernel memory via KVM page table flaws, causing denial of service or potential privilege escalation.","user_interaction":"not_required","vuln_class":"use_after_free"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"fedora","vendor":"fedoraproject"},{"product":"linux_kernel","vendor":"linux"},{"product":"enterprise_linux","vendor":"redhat"}],"cvss":{"score":7.8,"severity":"high","source":"nvd","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"description":"A flaw was found in KVM. When updating a guest's page table entry, vm_pgoff was improperly used as the offset to get the page's pfn. As vaddr and vm_pgoff are controllable by user-mode processes, this flaw allows unprivileged local users on the host to write outside the userspace region and potentially corrupt the kernel, resulting in a denial of service condition.","ecosystems":["Red Hat:rhel_eus:8.4::baseos","Red Hat:rhel_eus:8.4::crb","Red Hat:rhel_eus:8.4::nfv","Red Hat:rhel_eus:8.4::realtime","SUSE:Linux Enterprise Live Patching 15 SP2","SUSE:Linux Enterprise Live Patching 15 SP3"],"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":"Use after free in kernel","id":"CVE-2022-1158","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":"fedoraproject:fedora","products":["fedoraproject:fedora","linux:linux_kernel","redhat:enterprise_linux"],"type":"use_after_free","year":"2022"},"n_packages":88,"n_references":3,"next":{"headline":"Rockwell Automation Studio 5000 Logix Designer Code Injection","id":"CVE-2022-1159"},"packages":[{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"bpftool","purl":"pkg:rpm/redhat/bpftool","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"bpftool-debuginfo","purl":"pkg:rpm/redhat/bpftool-debuginfo","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel","purl":"pkg:rpm/redhat/kernel","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-abi-stablelists","purl":"pkg:rpm/redhat/kernel-abi-stablelists","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-core","purl":"pkg:rpm/redhat/kernel-core","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-debug","purl":"pkg:rpm/redhat/kernel-debug","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-core","purl":"pkg:rpm/redhat/kernel-debug-core","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-debuginfo","purl":"pkg:rpm/redhat/kernel-debug-debuginfo","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-devel","purl":"pkg:rpm/redhat/kernel-debug-devel","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-modules","purl":"pkg:rpm/redhat/kernel-debug-modules","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-debug-modules-extra","purl":"pkg:rpm/redhat/kernel-debug-modules-extra","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-debuginfo","purl":"pkg:rpm/redhat/kernel-debuginfo","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-debuginfo-common-aarch64","purl":"pkg:rpm/redhat/kernel-debuginfo-common-aarch64","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-debuginfo-common-ppc64le","purl":"pkg:rpm/redhat/kernel-debuginfo-common-ppc64le","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-debuginfo-common-s390x","purl":"pkg:rpm/redhat/kernel-debuginfo-common-s390x","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-debuginfo-common-x86_64","purl":"pkg:rpm/redhat/kernel-debuginfo-common-x86_64","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-devel","purl":"pkg:rpm/redhat/kernel-devel","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-doc","purl":"pkg:rpm/redhat/kernel-doc","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-modules","purl":"pkg:rpm/redhat/kernel-modules","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-modules-extra","purl":"pkg:rpm/redhat/kernel-modules-extra","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-tools","purl":"pkg:rpm/redhat/kernel-tools","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-tools-debuginfo","purl":"pkg:rpm/redhat/kernel-tools-debuginfo","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-tools-libs","purl":"pkg:rpm/redhat/kernel-tools-libs","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-zfcpdump","purl":"pkg:rpm/redhat/kernel-zfcpdump","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-zfcpdump-core","purl":"pkg:rpm/redhat/kernel-zfcpdump-core","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-zfcpdump-debuginfo","purl":"pkg:rpm/redhat/kernel-zfcpdump-debuginfo","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-zfcpdump-devel","purl":"pkg:rpm/redhat/kernel-zfcpdump-devel","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-zfcpdump-modules","purl":"pkg:rpm/redhat/kernel-zfcpdump-modules","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:4.18.0-305.71.1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kernel-zfcpdump-modules-extra","purl":"pkg:rpm/redhat/kernel-zfcpdump-modules-extra","source":"RHSA-2022:8685"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:1-3.el8_4"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-305_49_1","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-305_49_1","source":"RHSA-2022:8686"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:1-3.el8_4"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-305_49_1-debuginfo","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-305_49_1-debuginfo","source":"RHSA-2022:8686"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:1-3.el8_4"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-305_49_1-debugsource","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-305_49_1-debugsource","source":"RHSA-2022:8686"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:1-2.el8_4"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-305_57_1","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-305_57_1","source":"RHSA-2022:8686"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:1-2.el8_4"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-305_57_1-debuginfo","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-305_57_1-debuginfo","source":"RHSA-2022:8686"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:1-2.el8_4"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-305_57_1-debugsource","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-305_57_1-debugsource","source":"RHSA-2022:8686"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:1-2.el8_4"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-305_62_1","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-305_62_1","source":"RHSA-2022:8686"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:1-2.el8_4"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-305_62_1-debuginfo","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-305_62_1-debuginfo","source":"RHSA-2022:8686"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:1-2.el8_4"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-305_62_1-debugsource","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-305_62_1-debugsource","source":"RHSA-2022:8686"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:1-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-305_65_1","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-305_65_1","source":"RHSA-2022:8686"},{"ecosystem":"Red Hat:rhel_eus:8.4::baseos","fixed":["0:1-1.el8_4"],"introduced":["0"],"last_affected":[],"package":"kpatch-patch-4_18_0-305_65_1-debuginfo","purl":"pkg:rpm/redhat/kpatch-patch-4_18_0-305_65_1-debuginfo","source":"RHSA-2022:8686"}],"prev":{"headline":"Information disclosure in GitLab","id":"CVE-2022-1157"},"products":["kernel"],"published":"2022-08-05","related":[{"cvss_score":9.8,"headline":"PHP-CGI OS Command Injection","id":"CVE-2024-4577","kev_date_added":"2024-06-12","published":"2024-06-09"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2021-39226","kev_date_added":"2022-08-25","published":"2021-10-05"},{"cvss_score":9.8,"headline":"VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow","id":"CVE-2019-5544","kev_date_added":"2021-11-03","published":"2019-12-06"},{"cvss_score":9.6,"headline":"Google Chromium V8 Type Confusion","id":"CVE-2024-4947","kev_date_added":"2024-05-20","published":"2024-05-15"},{"cvss_score":9.6,"headline":"Google Chromium Visuals Use-After-Free","id":"CVE-2024-4671","kev_date_added":"2024-05-13","published":"2024-05-09"},{"cvss_score":9.6,"headline":"Google Chromium Mojo Insufficient Data Validation","id":"CVE-2022-3075","kev_date_added":"2022-09-08","published":"2022-09-26"},{"cvss_score":9.6,"headline":"Google Chromium Indexed DB API Use-After-Free","id":"CVE-2021-30633","kev_date_added":"2021-11-03","published":"2021-10-08"}],"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-02","vendors":["n/a"]},"summary":"Unprivileged local users can corrupt kernel memory via KVM page table flaws, causing denial of service or potential privilege escalation.","url":"https://insights.sbomify.com/CVE-2022-1158/"}