目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1336

100%

CVE-2022-50778— Linux kernel 安全漏洞

EPSS 0.21% · P11

影响版本矩阵 8

厂商产品版本范围状态
LinuxLinux3009f891bb9f328945ebd5b71e12df7e2467f3dd< ed42391164e6839a48aaf4c53eefda516835e799affected
3009f891bb9f328945ebd5b71e12df7e2467f3dd< 5d59ad2bfb35fccfe2ad5e8bb8801f6224d3f7d4affected
3009f891bb9f328945ebd5b71e12df7e2467f3dd< d07c0acb4f41cc42a0d97530946965b3e4fa68c1affected
5.16affected
< 5.16unaffected
5.19.17≤ 5.19.*unaffected
6.0.3≤ 6.0.*unaffected
6.1≤ *unaffected
获取后续新漏洞提醒登录后订阅

一、 漏洞 CVE-2022-50778 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
fortify: Fix __compiletime_strlen() under UBSAN_BOUNDS_LOCAL
来源: CVE Program / CVE List V5
Vulnerability 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 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.
来源: CVE Program / CVE List V5
CVSS Information
N/A
来源: CVE Program / CVE List V5
Vulnerability Type
N/A
来源: CVE Program / CVE List V5
Vulnerability Title
Linux kernel 安全漏洞
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Description
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于__compiletime_strlen在UBSAN_BOUNDS_LOCAL下可能返回最大可能大小,可能导致越界读取。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商产品影响版本CPE订阅
LinuxLinux 3009f891bb9f328945ebd5b71e12df7e2467f3dd ~ ed42391164e6839a48aaf4c53eefda516835e799 -
LinuxLinux 5.16 -

二、漏洞 CVE-2022-50778 的公开POC

#POC 描述源链接神龙链接
AI 生成 POC高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2022-50778 的情报信息

登录查看更多情报信息。

CVE-2022-50778 其他参考 (2)

同批安全公告 · Linux · 2025-12-24 · 共 322 条

CVE-2025-687419.8 CRITICALLinux kernel 安全漏洞
CVE-2023-538679.8 CRITICALLinux kernel 安全漏洞
CVE-2025-687269.8 CRITICALLinux kernel 安全漏洞
CVE-2025-687459.8 CRITICALLinux kernel 安全漏洞
CVE-2023-540949.8 CRITICALLinux kernel 安全漏洞
CVE-2023-540909.8 CRITICALLinux kernel 安全漏洞
CVE-2023-540769.8 CRITICALLinux kernel 安全漏洞
CVE-2022-507179.8 CRITICALLinux kernel 安全漏洞
CVE-2025-683599.8 CRITICALLinux kernel 安全漏洞
CVE-2023-539969.3 CRITICALLinux kernel 安全漏洞
CVE-2023-540718.8 HIGHLinux kernel 安全漏洞
CVE-2023-541208.8 HIGHLinux kernel 安全漏洞
CVE-2023-540438.8 HIGHLinux kernel 安全漏洞
CVE-2022-507328.8 HIGHLinux kernel 安全漏洞
CVE-2023-540928.8 HIGHLinux kernel 安全漏洞
CVE-2023-540608.8 HIGHLinux kernel 安全漏洞
CVE-2025-687368.8 HIGHLinux kernel 安全漏洞
CVE-2023-540408.8 HIGHLinux kernel 安全漏洞
CVE-2023-539868.6 HIGHLinux kernel 安全漏洞
CVE-2022-507468.4 HIGHLinux kernel 安全漏洞

显示前 20 条,共 322 条。 查看全部 &rarr; →

IV. Related Vulnerabilities

V. Comments for CVE-2022-50778

暂无评论


发表评论