CVEBrief

Home / Linux / Linux / CVE-2022-50778

CVE-2022-50778: is it exploited, and which versions of Linux are affected and fixed?

CVE-2022-50778 is a vulnerability in Linux. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: Linux from 5.16 until the fixed versions (CVE record by Linux). Fixed in 5.19.17, 6.0.3 and 6.1 (CVE record by Linux).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 28, 2026, 19:20 UTC and NVD November 19, 2026, 07:14 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 12:38 UTC
Affected
Linux from 5.16 until the fixed versions
CVE record by Linux
Fixed in
5.19.17, 6.0.3 and 6.1
CVE record by Linux
Exploit odds (EPSS)
0.25% in 30 days
higher than 18% of CVEs; FIRST, December 2, 2026

What is CVE-2022-50778?

In the Linux kernel, the following vulnerability has been resolved: fortify: Fix __compiletime_strlen() under UBSAN_BOUNDS_LOCAL With CONFIG_FORTIFY=y and CONFIG_UBSAN_LOCAL_BOUNDS=y enabled, we observe a runtime panic while running Android's Compatibility Test Suite's (CTS) android.hardware.input.cts.tests. This is stemming from a strlen() call in hidinput_allocate(). __compiletime_strlen() is implemented in terms of __builtin_object_size(), then does an array access to check for NUL-termination. A quirk of __builtin_object_size() is that for strings whose values are runtime dependent, __builtin_object_size(str, 1 or 0) returns the maximum size of possible values when those sizes are determinable at compile time. Example: static const char *v = "FOO BAR"; static const char *y = "FOO BA"; unsigned long x (int z) { // Returns 8, which is: // max(__builtin_object_size(v, 1), __builtin_object_size(y, 1)) return __builtin_object_size(z ? v : y, 1); } So when FORTIFY_SOURCE is enabled, the current implementation of __compiletime_strlen() will try to access beyond the end of y at runtime using the size of v. Mixed with UBSAN_LOCAL_BOUNDS we get a fault. hidinput_allocate() has a local C string whose value is control flow dependent on a switch statement, so __builtin_object_size(str, 1) evaluates to the maximum string length, making all other cases fault on the last character check. hidinput_allocate() could be cleaned up to avoid runtime calls to strlen() since the local variable can only have literal values, so there's no benefit to trying to fortify the strlen call site there. Perform a __builtin_constant_p() check against index 0 earlier in the macro to filter out the control-flow-dependant case. Add a KUnit test for checking the expected behavioral characteristics of FORTIFY_SOURCE internals.

From the CVE record by Linux, last updated May 11, 2026, 19:25 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
LinuxLinuxnot stated
LinuxLinuxfrom 5.16 until the fixed versions5.19.17, 6.0.3, 6.1

As the CVE record by Linux states it, last updated May 11, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Is CVE-2022-50778 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
EPSS
0.25% probability of exploitation activity in the next 30 days, percentile 17.9 (FIRST EPSS, scores of December 2, 2026)

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
December 24, 2025
Published
December 24, 2025, 13:06 UTC
CVE record updated
May 11, 2026, 19:25 UTC by Linux
NVD
Deferred, last modified November 10, 2026, 12:10 UTC
Last checked
CVE list November 28, 2026, 19:20 UTC; NVD November 19, 2026, 07:14 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect Linux?

Every CVE in Linux

Questions about CVE-2022-50778

Is CVE-2022-50778 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 0.25% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of Linux are affected by CVE-2022-50778?

Linux from 5.16 until the fixed versions, per the CVE record by Linux. The tables above give every range the sources list.

Which version fixes CVE-2022-50778?

5.19.17, 6.0.3 and 6.1, per the CVE record by Linux. Check the vendor's advisory before you rely on it.

Where is the official record of CVE-2022-50778?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.