一、 漏洞 CVE-2022-49832 基础信息
漏洞信息
                                        # pinctrl:devicetree:修复 pinctrl_dt_to_map 中的空指针解引用问题

## 漏洞概述
Linux内核中的pinctrl模块在处理设备树时存在空指针引用漏洞,具体发生在`pinctrl_dt_to_map`函数中。

## 影响版本
未明确指出具体影响的版本,但适用于包含上述代码的Linux内核版本。

## 细节
在`kasprintf()`函数调用`kmalloc()`失败时,会返回空指针。如果`kasprintf()`返回空指针,应直接返回`ENOMEM`错误。以下是KASAN生成的错误报告内容:

```
BUG: KASAN: null-ptr-deref in strcmp+0x2e/0x50
Read of size 1 at addr 0000000000000000 by task python3/2640
Call Trace:
 strcmp
 __of_find_property
 of_find_property
 pinctrl_dt_to_map
```

## 影响
该漏洞可能导致空指针引用,进而导致内核崩溃或拒绝服务(Denial of Service)。
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
pinctrl: devicetree: fix null pointer dereferencing in pinctrl_dt_to_map
来源:美国国家漏洞数据库 NVD
漏洞描述信息
In the Linux kernel, the following vulnerability has been resolved: pinctrl: devicetree: fix null pointer dereferencing in pinctrl_dt_to_map Here is the BUG report by KASAN about null pointer dereference: BUG: KASAN: null-ptr-deref in strcmp+0x2e/0x50 Read of size 1 at addr 0000000000000000 by task python3/2640 Call Trace: strcmp __of_find_property of_find_property pinctrl_dt_to_map kasprintf() would return NULL pointer when kmalloc() fail to allocate. So directly return ENOMEM, if kasprintf() return NULL pointer.
来源:美国国家漏洞数据库 NVD
CVSS信息
N/A
来源:美国国家漏洞数据库 NVD
漏洞类别
N/A
来源:美国国家漏洞数据库 NVD
漏洞标题
Linux kernel 安全漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于pinctrl_dt_to_map中未处理kasprintf失败情况,可能导致空指针取消引用。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
其他
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2022-49832 的公开POC
# POC 描述 源链接 神龙链接
三、漏洞 CVE-2022-49832 的情报信息