CVEs / CVE-2022-0185
CVE-2022-0185: Linux Kernel Heap-Based Buffer Overflow Vulnerability
- Known exploited in the CISA KEV catalog since 21 Aug 2024
- high 8.4 CVSS 3.1 (NVD)
- EPSS 25.1% chance of exploitation in the next 30 days, higher than 97% of CVEs (30 Oct 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2022-0185
Summary
Linux kernel contains a heap-based buffer overflow vulnerability in the legacy_parse_param function in the Filesystem Context functionality. This allows an attacker to open a filesystem that does not support the Filesystem Context API and ultimately escalate privileges.
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.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| n/a kernel | 8.4 | — |
| linux linux_kernel | 8.4 | — |
Exploitation
| In CISA KEV since | 21 Aug 2024 |
|---|---|
| Due date for US federal agencies | 11 Sep 2024 |
| Used in ransomware campaigns | Unknown |
| Required action | Apply updates per vendor instructions or discontinue use of the product if updates are unavailable. |
Severity
| CVSS 3.1 | 8.4 highCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HScored by NVD |
|---|---|
| Weakness | CWE-190, CWE-191 |
References
- CVE-2022-0185 on NVD
- CVE-2022-0185 in the CISA KEV catalog
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit?id=722d94847de2 (cited by CISA)
- CVE-2022-0185 on OSV
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=722d94847de2 Mailing List, Patch
- https://github.com/Crusaders-of-Rust/CVE-2022-0185 Exploit, Third Party Advisory
- https://security.netapp.com/advisory/ntap-20220225-0003/ Third Party Advisory
- https://www.openwall.com/lists/oss-security/2022/01/18/7 Mailing List, Patch, Third Party Advisory
- https://www.willsroot.io/2022/01/cve-2022-0185.html Exploit, Third Party Advisory
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-0185 US Government Resource
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.