一、 漏洞 CVE-2022-49806 基础信息
漏洞信息
                                        # 网络:microchip:sparx5:修复sparx_stats_init() 和 sparx5_start() 中潜在的空指针解引用问题

## 概述
在Linux内核中,`sparx_stats_init()` 和 `sparx5_start()` 函数中存在空指针引用漏洞。这些函数调用 `create_singlethread_workqueue()` 并未检查返回值,导致可能产生空指针引用。

## 细节
- `sparx_stats_init()` 调用 `create_singlethread_workqueue()` 并未检查返回值。
- 如果 `create_singlethread_workqueue()` 失败,`sparx5->stats_queue` 将为 `NULL`。
- 后续调用 `queue_delayed_work()` 会引发空指针引用,具体路径如下:
  ```c
  queue_delayed_work()
      queue_delayed_work_on()
          __queue_delayed_work()  # 警告,但会继续执行
              __queue_work()      # 访问 wq->flags,此处为空指针引用。
  ```

- 需要检查 `create_singlethread_workqueue()` 的返回值,如果为 `NULL`,则返回 `-ENOMEM`。`sparx5_start()` 也存在类似问题。

## 影响
该漏洞可能导致空指针引用错误,进而可能引起系统崩溃或拒绝服务。
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
net: microchip: sparx5: Fix potential null-ptr-deref in sparx_stats_init() and sparx5_start()
来源:美国国家漏洞数据库 NVD
漏洞描述信息
In the Linux kernel, the following vulnerability has been resolved: net: microchip: sparx5: Fix potential null-ptr-deref in sparx_stats_init() and sparx5_start() sparx_stats_init() calls create_singlethread_workqueue() and not checked the ret value, which may return NULL. And a null-ptr-deref may happen: sparx_stats_init() create_singlethread_workqueue() # failed, sparx5->stats_queue is NULL queue_delayed_work() queue_delayed_work_on() __queue_delayed_work() # warning here, but continue __queue_work() # access wq->flags, null-ptr-deref Check the ret value and return -ENOMEM if it is NULL. So as sparx5_start().
来源:美国国家漏洞数据库 NVD
CVSS信息
N/A
来源:美国国家漏洞数据库 NVD
漏洞类别
N/A
来源:美国国家漏洞数据库 NVD
漏洞标题
Linux kernel 安全漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于sparx5驱动中未检查工作队列创建结果,可能导致空指针解引用。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
其他
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2022-49806 的公开POC
# POC 描述 源链接 神龙链接
三、漏洞 CVE-2022-49806 的情报信息