一、 漏洞 CVE-2022-50557 基础信息
漏洞信息
                                        # thunderbay 内存泄漏修复

## 概述

Linux 内核中修复了一个在 `pinctrl` 子系统 thunderbay 驱动中的内存泄漏漏洞。

## 影响版本

无具体版本号,但涉及 `thunderbay_build_functions()` 函数的逻辑。

## 细节

- 函数 `thunderbay_add_functions()` 在成功时会释放 `thunderbay_funcs` 的内存。
- 但如果该函数失败,`thunderbay_funcs` 并未被释放,导致内存泄漏。
- 修复方式:在 `thunderbay_add_functions()` 失败的路径中添加 `kfree()` 以释放内存。
- 同时对代码进行清理:将 `kfree(funcs)` 从 `thunderbay_add_functions()` 移动到 `thunderbay_build_functions()`,提高逻辑清晰度与内存管理一致性。

## 影响

- **内存泄漏**:在 `thunderbay_add_functions()` 调用失败时,未能释放先前分配的 `thunderbay_funcs` 内存,可能导致系统运行时内存使用逐渐增加。
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
pinctrl: thunderbay: fix possible memory leak in thunderbay_build_functions()
来源:美国国家漏洞数据库 NVD
漏洞描述信息
In the Linux kernel, the following vulnerability has been resolved: pinctrl: thunderbay: fix possible memory leak in thunderbay_build_functions() The thunderbay_add_functions() will free memory of thunderbay_funcs when everything is ok, but thunderbay_funcs will not be freed when thunderbay_add_functions() fails, then there will be a memory leak, so we need to add kfree() when thunderbay_add_functions() fails to fix it. In addition, doing some cleaner works, moving kfree(funcs) from thunderbay_add_functions() to thunderbay_build_functions().
来源:美国国家漏洞数据库 NVD
CVSS信息
N/A
来源:美国国家漏洞数据库 NVD
漏洞类别
N/A
来源:美国国家漏洞数据库 NVD
漏洞标题
Linux kernel 安全漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于thunderbay_build_functions函数中内存释放不当,可能导致内存泄漏。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
其他
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2022-50557 的公开POC
# POC 描述 源链接 神龙链接
三、漏洞 CVE-2022-50557 的情报信息
四、漏洞 CVE-2022-50557 的评论

暂无评论


发表评论