# CVE-2022-0185

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.

- Page: https://www.vulneraibility.com/cve/CVE-2022-0185
- CVSS: 8.4
- Known exploited: yes, in CISA KEV since 2024-08-21; CISA due date 2024-09-11
- EPSS: 25.15%
- Unvetted proof-of-concept code on GitHub: 11 GitHub proofs of concept (first 2022-01-19)
- CISA SSVC: exploitation active, automatable no, technical impact total (assessed 2024-08-22)
- Weakness: CWE-190
- Published: 2022-02-11

## Affected versions

- kernel: affected 8.4

A version outside these ranges is not a statement that it is unaffected.

## References

- [other] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=722d94847de2
- [other] https://github.com/Crusaders-of-Rust/CVE-2022-0185
- [other] https://www.openwall.com/lists/oss-security/2022/01/18/7
- [other] https://www.willsroot.io/2022/01/cve-2022-0185.html
- [other] https://security.netapp.com/advisory/ntap-20220225-0003/
- [other] https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-0185

---
Summary, impact and action are written by the vulneraibility.com AI analysis pipeline from the CVE record, NVD, CISA and FIRST data; verify against the references.
