CVE Vulnerabilities

CVE-2022-0185

Integer Underflow (Wrap or Wraparound)

Published: Feb 11, 2022 | Modified: Jun 26, 2023
CVSS 3.x
8.4
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
7.2 HIGH
AV:L/AC:L/Au:N/C:C/I:C/A:C
RedHat/V2
RedHat/V3
Ubuntu

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.

Weakness

The product subtracts one value from another, such that the result is less than the minimum allowable integer value, which produces a value that is not equal to the correct result.

Affected Software

Name Vendor Start Version End Version
Linux_kernel Linux 5.1 (including) 5.4.173 (excluding)
Linux_kernel Linux 5.5 (including) 5.10.93 (excluding)
Linux_kernel Linux 5.11 (including) 5.15.16 (excluding)
Linux_kernel Linux 5.16 (including) 5.16.2 (excluding)

References