Menu

Star on GitHub · 3.2k

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…

Published Dec 24, 2025EPSS 0.24%

Overview

CVE-2022-50778 is a known-severity vulnerability. It was published on December 24, 2025.

Technical description

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

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2022-50778?

CVE-2022-50778 is a known-severity vulnerability. It was published on December 24, 2025.

How severe is CVE-2022-50778?

CVSS score information is not yet available for this vulnerability. Check back as the CVE record is updated by NVD analysts.

How do I fix or remediate CVE-2022-50778?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-50778?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2022-50778 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.