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.
Use CWE-190, Linux vendor hub and Linux Kernel product page to widen CVE-2022-0185 into its surrounding weakness, vendor, and product context.
Compare it with CVE-2026-6920, CVE-2026-6919 and CVE-2026-6318 for nearby disclosures in the same product family.