{"answers":{"affected":"It affects 9 products.","exploited":"Yes. Attackers have exploited CVE-2022-0185 in the wild since at least 21 Aug 2024.","fix":"Apply the vendor's patch. US federal agencies must fix it by 11 Sep 2024.","what":"CVE-2022-0185 is a high-severity memory corruption vulnerability in Linux kernel, published on 11 Feb 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-0185 and fix it if it is affected.\n\nWhat it is: CVE-2022-0185 is a high-severity memory corruption vulnerability in Linux kernel, published on 11 Feb 2022. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2022-0185 in the wild since at least 21 Aug 2024.\n\nAffected product: Linux kernel. 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-0185/ (Markdown: https://insights.sbomify.com/CVE-2022-0185/index.md)","id":"CVE-2022-0185","markdown":"https://insights.sbomify.com/CVE-2022-0185/index.md","name":"CVE-2022-0185","record":{"aliases":["A-213172369","AZL-8578","DEBIAN-CVE-2022-0185","LSN-0084-1","MGASA-2022-0026","MGASA-2022-0027","PUB-A-213172369","SUSE-SU-2022:0239-1","SUSE-SU-2022:0262-1","UBUNTU-CVE-2022-0185","USN-5240-1","openSUSE-SU-2024:11775-1"],"analysis":{"component_type":"kernel","fix_type":"patch","impacts":["privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"Linux kernel","requires_auth":"none","summary":"A heap-based buffer overflow in the Linux kernel allows local attackers to escalate privileges via filesystem context parameters.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"linux_kernel","vendor":"linux"},{"product":"h300e_firmware","vendor":"netapp"},{"product":"h300s_firmware","vendor":"netapp"},{"product":"h410c_firmware","vendor":"netapp"},{"product":"h410s_firmware","vendor":"netapp"},{"product":"h500e_firmware","vendor":"netapp"},{"product":"h500s_firmware","vendor":"netapp"},{"product":"h700e_firmware","vendor":"netapp"},{"product":"h700s_firmware","vendor":"netapp"}],"cvss":{"score":8.4,"severity":"high","source":"cisa-adp","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-191","name":"Integer Underflow (Wrap or Wraparound)"},{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"description":"A heap-based buffer overflow flaw was found in the way the legacy_parse_param function in the Filesystem Context functionality of the Linux kernel verified the supplied parameters length. An unprivileged (in case of unprivileged user namespaces enabled, otherwise needs namespaced CAP_SYS_ADMIN privilege) local user able to open a filesystem that does not support the Filesystem Context API (and thus fallbacks to legacy handling) could use this flaw to escalate their privileges on the system.","ecosystems":["SUSE:Linux Enterprise Live Patching 15 SP2","SUSE:Linux Enterprise Live Patching 15 SP3","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2022-01-19","github_poc":11,"max_poc_stars":378,"metasploit":0,"nuclei":0,"refs":[{"date":"2022-01-19T06:19:38Z","kind":"github_poc","ref":"https://github.com/Crusaders-of-Rust/CVE-2022-0185","stars":378,"title":"CVE-2022-0185"},{"date":"2022-02-18T09:27:34Z","kind":"github_poc","ref":"https://github.com/chenaotian/CVE-2022-0185","stars":37,"title":"CVE-2022-0185 POC and Docker and Analysis write up"},{"date":"2022-04-05T07:48:35Z","kind":"github_poc","ref":"https://github.com/veritas501/CVE-2022-0185-PipeVersion","stars":16,"title":"CVE-2022-0185 exploit rewritten with pipe primitive"},{"date":"2022-01-26T16:27:50Z","kind":"github_poc","ref":"https://github.com/discordianfish/cve-2022-0185-crash-poc","stars":5,"title":null},{"date":"2022-04-14T10:46:04Z","kind":"github_poc","ref":"https://github.com/featherL/CVE-2022-0185-exploit","stars":3,"title":"CVE-2022-0185 exploit"},{"date":"2024-04-15T02:42:43Z","kind":"github_poc","ref":"https://github.com/dcheng69/CVE-2022-0185-Case-Study","stars":3,"title":null},{"date":"2022-01-27T16:24:35Z","kind":"github_poc","ref":"https://github.com/khaclep007/CVE-2022-0185","stars":0,"title":null},{"date":"2026-02-25T16:13:07Z","kind":"github_poc","ref":"https://github.com/sandesh9978/CVE-2022-0185-Analysis-and-Exploit","stars":0,"title":"Research and proof-of-concept for CVE-2022-0185 Linux kernel heap overflow vulnerability."}],"tier":"exploited"},"has_fix":true,"headline":"Linux Kernel Heap-Based Buffer Overflow","id":"CVE-2022-0185","indexable":true,"kev":{"dateAdded":"2024-08-21","dueDate":"2024-09-11","knownRansomwareCampaignUse":"Unknown","product":"Kernel","requiredAction":"Apply updates per vendor instructions or discontinue use of the product if updates are unavailable.","vendorProject":"Linux","vulnerabilityName":"Linux Kernel Heap-Based Buffer Overflow Vulnerability"},"kind":"cve","links":{"ecosystem":null,"product":"linux:linux_kernel","products":["linux:linux_kernel","netapp:h300e_firmware","netapp:h300s_firmware","netapp:h410c_firmware","netapp:h410s_firmware","netapp:h500e_firmware","netapp:h500s_firmware","netapp:h700e_firmware","netapp:h700s_firmware"],"type":"memory_corruption","year":"2022"},"n_packages":6,"n_references":5,"next":{"headline":"Image Photo Gallery Final Tiles Grid \u003c 3.5.3 - Contributor+ Stored Cross-Site Scripting","id":"CVE-2022-0186"},"packages":[{"ecosystem":"SUSE:Linux Enterprise Live Patching 15 SP2","fixed":["3-2.2"],"introduced":["0"],"last_affected":[],"package":"kernel-livepatch-SLE15-SP2_Update_21","purl":"pkg:rpm/suse/kernel-livepatch-SLE15-SP2_Update_21\u0026distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP2","source":"SUSE-SU-2022:0239-1"},{"ecosystem":"SUSE:Linux Enterprise Live Patching 15 SP2","fixed":["2-2.2"],"introduced":["0"],"last_affected":[],"package":"kernel-livepatch-SLE15-SP2_Update_22","purl":"pkg:rpm/suse/kernel-livepatch-SLE15-SP2_Update_22\u0026distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP2","source":"SUSE-SU-2022:0239-1"},{"ecosystem":"SUSE:Linux Enterprise Live Patching 15 SP3","fixed":["2-150300.2.2"],"introduced":["0"],"last_affected":[],"package":"kernel-livepatch-SLE15-SP3_Update_10","purl":"pkg:rpm/suse/kernel-livepatch-SLE15-SP3_Update_10\u0026distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP3","source":"SUSE-SU-2022:0262-1"},{"ecosystem":"SUSE:Linux Enterprise Live Patching 15 SP3","fixed":["2-150300.2.2"],"introduced":["0"],"last_affected":[],"package":"kernel-livepatch-SLE15-SP3_Update_11","purl":"pkg:rpm/suse/kernel-livepatch-SLE15-SP3_Update_11\u0026distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP3","source":"SUSE-SU-2022:0262-1"},{"ecosystem":"SUSE:Linux Enterprise Live Patching 15 SP3","fixed":["3-150300.2.2"],"introduced":["0"],"last_affected":[],"package":"kernel-livepatch-SLE15-SP3_Update_9","purl":"pkg:rpm/suse/kernel-livepatch-SLE15-SP3_Update_9\u0026distro=SUSE%20Linux%20Enterprise%20Live%20Patching%2015%20SP3","source":"SUSE-SU-2022:0262-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["5.16.2-1.1"],"introduced":["0"],"last_affected":[],"package":"kernel-source","purl":"pkg:rpm/opensuse/kernel-source\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:11775-1"}],"prev":{"headline":"Information disclosure in TEPRA PRO","id":"CVE-2022-0184"},"products":["kernel"],"published":"2022-02-11","related":[{"cvss_score":8.8,"headline":"Linux Kernel Out-of-Bounds Write","id":"CVE-2026-53266","kev_date_added":"2026-09-18","published":"2026-06-25"},{"cvss_score":8.8,"headline":"Linux Kernel Improper Input Validation","id":"CVE-2013-6282","kev_date_added":"2022-09-15","published":"2013-11-19"},{"cvss_score":8.4,"headline":"Linux Kernel Privilege Escalation","id":"CVE-2013-2094","kev_date_added":"2022-09-15","published":"2013-05-14"},{"cvss_score":7.8,"headline":"Linux Kernel Unspecified","id":"CVE-2026-53362","kev_date_added":"2026-08-27","published":"2026-07-04"},{"cvss_score":7.8,"headline":"Linux Kernel Missing Initialization of a Variable","id":"CVE-2026-46300","kev_date_added":"2026-10-28","published":"2026-05-23"},{"cvss_score":7.8,"headline":"Linux Kernel Race Condition","id":"CVE-2025-39964","kev_date_added":"2026-09-18","published":"2025-10-13"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"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":"no","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["n/a"]},"summary":"A heap-based buffer overflow in the Linux kernel allows local attackers to escalate privileges via filesystem context parameters.","url":"https://insights.sbomify.com/CVE-2022-0185/"}