CVE-2022-0185: Linux Kernel Heap-Based Buffer Overflow
Linux Kernel · listed in the CISA catalog of actively exploited vulnerabilities since 2024-08-21.
- CVSS v3.1 (CVE record)
- 8.4
- high
- EPSS (exploit probability, 30 days)
- 25%
- higher than 97.9% of all CVEs
- Added to CISA KEV
- 2024-08-21
- US federal due date 2024-09-11
- Ubuntu priority
- high
CVE-2022-0185 explained
CVE-2022-0185 is a heap-based buffer overflow in the legacy_parse_param function of the Linux kernel's Filesystem Context functionality, caused by incorrect checking of the supplied parameter length. A local user can use it to escalate privileges. It is listed in the CISA Known Exploited Vulnerabilities catalog, so patching should be a priority.
Impact
A local user who can open a filesystem that falls back to legacy parameter handling can gain elevated privileges. This leads to a full loss of confidentiality, integrity and availability on the system. If unprivileged user namespaces are enabled, no special privileges are needed. Otherwise the attacker needs namespaced CAP_SYS_ADMIN. No user interaction is required, but the attacker must already have local access.
Who is affected
Ubuntu 20.04 LTS, source package linux, is affected. A fix is available in 5.4.0-96.109 from the standard archive. Standard support for Ubuntu 20.04 LTS has ended, and future fixes for that release are only available with Ubuntu Pro (ESM). Further Ubuntu kernel flavours are listed on this page. Check the entry for the kernel flavour you run.
Written with AI from the data on this page and checked against it automatically.
Official 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.
CISA required action: Apply updates per vendor instructions or discontinue use of the product if updates are unavailable.
CISA notes
- This vulnerability affects a common open-source component, third-party library, or a protocol used by different products. For more information, please see: git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.gi…; nvd.nist.gov/vuln/detail/CVE-2022-0185
Upstream versions (CVE record)
From the CVE record published by the vendor or CVE numbering authority.
- kernelAffectedFixed in
- 8.4
not stated
| Product | Affected | Fixed in |
|---|---|---|
| kernel |
| not stated |
Ubuntu and Debian releases
A server is vulnerable if it has a package built from the listed source package installed in a version lower than the fixed version for its release.
Ubuntu 20.04 LTS·linux
Fixed: 5.4.0-96.109
57 more Ubuntu kernel flavours (cloud, HWE, low-latency, real-time …) – 60 release entries
- 24.04 linux-raspi-realtime: no fixed version published
- 22.04 linux-intel-iot-realtime: no fixed version published
- 22.04 linux-realtime: no fixed version published
- 20.04 linux-aws: 5.4.0-1063.66
- 20.04 linux-aws-5.11: 5.11.0-1027.30~20.04.1
- 20.04 linux-aws-5.13: 5.13.0-1011.12~20.04.1
- 20.04 linux-aws-5.8: no fixed version published
- 20.04 linux-azure: 5.4.0-1067.70
- 20.04 linux-azure-5.11: 5.11.0-1027.30~20.04.1
- 20.04 linux-azure-5.13: 5.13.0-1012.14~20.04.1
- 20.04 linux-azure-5.8: no fixed version published
- 20.04 linux-bluefield: 5.4.0-1025.28
- 20.04 linux-gcp: 5.4.0-1062.66
- 20.04 linux-gcp-5.11: 5.11.0-1028.32~20.04.1
- 20.04 linux-gcp-5.13: 5.13.0-1012.15~20.04.1
- 20.04 linux-gcp-5.8: no fixed version published
- 20.04 linux-gke: 5.4.0-1059.62
- 20.04 linux-gkeop: 5.4.0-1031.32
- 20.04 linux-hwe-5.11: no fixed version published
- 20.04 linux-hwe-5.13: 5.13.0-27.29~20.04.1
- 20.04 linux-hwe-5.8: no fixed version published
- 20.04 linux-ibm: 5.4.0-1012.13
- 20.04 linux-intel-5.13: 5.13.0-1010.10
- 20.04 linux-kvm: 5.4.0-1053.55
- 20.04 linux-oem-5.10: 5.10.0-1057.61
- 20.04 linux-oem-5.13: 5.13.0-1028.35
- 20.04 linux-oem-5.14: 5.14.0-1020.22
- 20.04 linux-oem-5.6: no fixed version published
- 20.04 linux-oracle: 5.4.0-1061.65
- 20.04 linux-oracle-5.11: 5.11.0-1027.30~20.04.1
- 20.04 linux-oracle-5.13: 5.13.0-1015.19~20.04.1
- 20.04 linux-oracle-5.8: no fixed version published
- 20.04 linux-raspi: 5.4.0-1050.56
- 20.04 linux-raspi2: no fixed version published
- 20.04 linux-riscv: no fixed version published
- 20.04 linux-riscv-5.11: 5.11.0-1028.31~20.04.1
- 20.04 linux-riscv-5.8: no fixed version published
- 18.04 linux-aws-5.0: no fixed version published
- 18.04 linux-aws-5.3: no fixed version published
- 18.04 linux-aws-5.4: 5.4.0-1063.66~18.04.1
- 18.04 linux-azure: no fixed version published
- 18.04 linux-azure-5.3: no fixed version published
- 18.04 linux-azure-5.4: 5.4.0-1067.70~18.04.1
- 18.04 linux-azure-edge: no fixed version published
- 18.04 linux-gcp: no fixed version published
- 18.04 linux-gcp-5.3: no fixed version published
- 18.04 linux-gcp-5.4: 5.4.0-1062.66~18.04.1
- 18.04 linux-gke-4.15: no fixed version published
- 18.04 linux-gke-5.4: 5.4.0-1059.62~18.04.1
- 18.04 linux-gkeop-5.4: 5.4.0-1031.32~18.04.1
- 18.04 linux-hwe: no fixed version published
- 18.04 linux-hwe-5.4: 5.4.0-96.109~18.04.1
- 18.04 linux-hwe-edge: no fixed version published
- 18.04 linux-ibm-5.4: 5.4.0-1012.13~18.04.1
- 18.04 linux-oem: no fixed version published
- 18.04 linux-oracle-5.0: no fixed version published
- 18.04 linux-oracle-5.3: no fixed version published
- 18.04 linux-oracle-5.4: 5.4.0-1061.65~18.04.1
- 18.04 linux-raspi-5.4: 5.4.0-1050.56~18.04.1
- 16.04 linux-hwe-edge: no fixed version published
What to do
- Identify which kernel package and flavour each host runs.
- Update the
linuxpackage on Ubuntu 20.04 LTS to5.4.0-96.109or later. - Reboot each host after the kernel update so that the fixed kernel is running.
- After the reboot, confirm that the running kernel version matches the fixed version or a later one.
- Consider enabling Ubuntu Pro (ESM) on Ubuntu 20.04 LTS hosts to keep receiving security fixes.
Written with AI from the data on this page and checked against it automatically.
Check and fix on a server
Kernel fixes arrive as a new kernel package (new ABI) through the metapackages, so upgrade the whole system and boot into the new kernel.
1. Show the running kernel and the version of its package
uname -r && dpkg-query -W -f='${Version}\n' "linux-image-$(uname -r)"2. Compare with the fixed version for your release and kernel flavour from the table
I=INSTALLED_VERSION; F=FIXED_VERSION # replace both
dpkg --compare-versions "$I" lt "$F"; case $? in 0) echo vulnerable ;; 1) echo "fixed or newer" ;; *) echo "check the versions" ;; esac3. Install the new kernel, then reboot (or apply a livepatch)
sudo apt update && sudo apt full-upgrade && sudo rebootOn Debian, signed kernel images come from the linux-signed-* source packages; the version to compare is the same.
CISA's assessment (SSVC)
- Exploitation
- Exploited in the wild
- Automatable
- No – each attack needs manual steps
- Technical impact
- Total – full control of the component or total information disclosure
Weakness: CWE-190 Integer Overflow or Wraparound CWE-190
Questions about CVE-2022-0185
- Can an unprivileged user exploit this?
- Yes, if unprivileged user namespaces are enabled. Otherwise the attacker needs namespaced
CAP_SYS_ADMINprivilege. In both cases the attacker needs local access to the system. - Is installing the updated package enough?
- No. This is a kernel fix, so the system keeps running the vulnerable kernel until you reboot into the updated one.
- Is this vulnerability being exploited?
- CISA added CVE-2022-0185 to its Known Exploited Vulnerabilities catalog on 2024-08-21. Whether it has been used in ransomware campaigns is listed as unknown.
Written with AI from the data on this page and checked against it automatically.
References
Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-21. Always confirm with the vendor's or distribution's advisory before patching.