CVE-2022-0185: Linux Kernel Heap-Based Buffer Overflow Vulnerability

High severity, CVSS 8.4. Actively exploited: in CISA KEV since 2024-08-21. EPSS: 3.2% probability of exploitation activity in the next 30 days.

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.

What to do

CISA's required action (US federal agencies, by 2024-09-11): Apply updates per vendor instructions or discontinue use of the product if updates are unavailable.

The record states a fixed version for each range of affected versions. Update to the one for the range your version is in: a later release on another branch may not have the fix.

  • Linux Kernel, from 5.1, before 5.4.173: fixed in 5.4.173
  • Linux Kernel, from 5.5, before 5.10.93: fixed in 5.10.93
  • Linux Kernel, from 5.11, before 5.15.16: fixed in 5.15.16
  • Linux Kernel, from 5.16, before 5.16.2: fixed in 5.16.2

Affected products

Published 2022-02-11. Last modified 2026-06-17.