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.
In short
CVE-2022-0185 (Linux Kernel Heap-Based Buffer Overflow) has a CVSS 3.1 base score of 8.4, rated high. CISA added it to the Known Exploited Vulnerabilities catalog on 21 Aug 2024. Fixed in Linux Kernel 5.4.173 or later.
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.
CVSS 3.1 breakdown
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HAffected products
- Linux Kernel≥ 5.1 < 5.4.173 · ≥ 5.11 < 5.15.16 · ≥ 5.16 < 5.16.2 · ≥ 5.5 < 5.10.93
- Netapp H300e Firmwareall versions
- Netapp H300s Firmwareall versions
- Netapp H410c Firmwareall versions
- Netapp H410s Firmwareall versions
- Netapp H500e Firmwareall versions
- Netapp H500s Firmwareall versions
- Netapp H700e Firmwareall versions
- Netapp H700s Firmwareall versions
Remediation
Fixed in- Linux Kernel≥ 5.4.173
References
- https://github.com/Crusaders-of-Rust/CVE-2022-0185
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=722d94847de2
- https://security.netapp.com/advisory/ntap-20220225-0003/
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2022-0185
- https://www.openwall.com/lists/oss-security/2022/01/18/7
- https://www.willsroot.io/2022/01/cve-2022-0185.html
Related CVEs
Exploited and critical vulnerabilities in the same product or from the same vendor.
Data from the NVD, CISA KEV catalog and FIRST EPSS. The CVSS 4.0 base score is shown where the NVD has one, otherwise CVSS 3.1.
