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.
CVE-2022-0185 is a vulnerability in 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., rated Important by Microsoft, with a CVSS 3.1 base score of 8.4 (High). An attacker can exploit it by an attacker with local access, without any privileges and without user interaction. Microsoft has not reported exploitation in the wild. The EPSS model estimates a 3.22% probability of exploitation activity in the next 30 days, higher than 89% of all scored vulnerabilities. Microsoft released the fix on 22 February 2022, outside Patch Tuesday. It affects 2 products in 1 product family (Mariner).
Key facts
- CVE ID
- CVE-2022-0185
- Severity
- High CVSS 8.4
- Microsoft severity
- Important
- Exploited in the wild
- No
- Publicly disclosed
- No
- Weakness
- CWE-190; CWE-191
- EPSS
- 3.22% (percentile 89%)
- CISA KEV
- Not listed
- Released
- Last updated
- Patch Tuesday
- February 2022 Patch Tuesday
- Product families
- Mariner
CVSS score and vector
Microsoft scores CVE-2022-0185 at 8.4 (temporal 8.4) using CVSS 3.1. Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Metric | Value |
|---|---|
| Attack vector | Local |
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality impact | High |
| Integrity impact | High |
| Availability impact | High |
Frequently asked questions (Microsoft)
Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will update the CVE to reflect this.
Affected products (2)
Mariner
| Product | Security update | Type | Fixed build | Restart |
|---|---|---|---|---|
| cm1 kernel 5.10.93.1-4 on CBL Mariner 1.0 | CBL-Mariner Releases | Security Update | - | No |
| cbl2 kernel 5.15.26.1-1 on CBL Mariner 2.0 | CBL-Mariner Releases | Security Update | 5.15.26.1-1 | No |
Exploitation and detection
Detection and weaponization
Weaponization maturity: Exploit.
Proof-of-concept repositories (11)
- Crusaders-of-Rust/CVE-2022-0185 · 378 stars
- discordianfish/cve-2022-0185-crash-poc · 5 stars
- khaclep007/CVE-2022-0185
- chenaotian/CVE-2022-0185 · 37 stars
- veritas501/CVE-2022-0185-PipeVersion · 16 stars
- featherL/CVE-2022-0185-exploit · 3 stars
- dcheng69/CVE-2022-0185-Case-Study · 3 stars
- sandesh9978/CVE-2022-0185-Analysis-and-Exploit
- prabeershakya/CVE-2022-0185-POC
- shakyanayann/CVE-2022-0185
- secjuhl/CVE-2022-0185
NIST NVD data
Affected configurations (CPE)
| Product | Vulnerable versions |
|---|---|
| linux kernel | from 5.1, before 5.4.173 |
| linux kernel | from 5.5, before 5.10.93 |
| linux kernel | from 5.11, before 5.15.16 |
| linux kernel | from 5.16, before 5.16.2 |
| h410c firmware | all listed versions |
| h300s firmware | all listed versions |
| h500s firmware | all listed versions |
| h700s firmware | all listed versions |
| h300e firmware | all listed versions |
| h500e firmware | all listed versions |
| h700e firmware | all listed versions |
| h410s firmware | all listed versions |
References
- 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://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)
Revision history
| Version | Date | Description |
|---|---|---|
| 1.0 | Information published. |