Patchfirst
CVE-2022-0185 KEVPublic exploit High · 8.4 EPSS 25.2%

Linux Kernel Heap-Based Buffer Overflow Vulnerability

Linux · Kernel

Summary

The Linux kernel's Filesystem Context functionality, specifically the legacy_parse_param function, contains a heap-based buffer overflow caused by improper verification of the length of supplied parameters. An attacker who is a local user can exploit this by opening a filesystem that does not support the Filesystem Context API, which forces the kernel onto the legacy handling path; if unprivileged user namespaces are enabled, no special privilege is needed, otherwise the attacker requires namespaced CAP_SYS_ADMIN, and successful exploitation allows privilege escalation on the system.

Official description · NVD

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.

Breakdown
68.5 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
1/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

First seen exploited 2 years after disclosure. Public exploit code (PoC-in-GitHub) was available 23 days before disclosure.

  1. Public exploit codePoC-in-GitHub23 days before
  2. Disclosedday 0
  3. First seen exploitedVulnCheck KEV evidence+2 yrs
  4. Added to CISA KEVEU database agrees+3 yrs

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

techniques

1 , grouped by in kill-chain order, 1 cited passage 1

Privilege EscalationTA0004

Exploitation for Privilege Escalation T1068 Medium
AI mapping from the description · how it is exploited

Local unprivileged user exploits kernel flaw

An unprivileged (in case of unprivileged user namespaces enabled, otherwise needs namespaced CAP_SYS_ADMIN privilege) local user
From the official description (NVD) Original (opens in a new tab) ↗

Detection

0 rules for this CVE · 31 general rules for its techniques

Rules for this CVE

0 that reference CVE-2022-0185 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

General rules for this CVE’s techniques

These detect the technique in general, not this specific vulnerability.

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

6 links, grouped by NVD tag (5 duplicates merged)
↑ ↓ chooseEnter openEsc close