一、 漏洞 CVE-2022-49805 基础信息
漏洞信息
                                        # 网络:lan966x:修复lan966x_stats_init()中潜在的空指针解引用问题

## 概述
在Linux内核中,lan966x_stats_init() 函数调用了 `create_singlethread_workqueue()`,但未检查返回值,这可能导致空指针解引用错误。

## 细节
`lan966x_stats_init()` 调用 `create_singlethread_workqueue()` 而没有检查其返回值,因此可能会返回NULL。随后调用 `queue_delayed_work()` 时,可能导致空指针解引用:
```plaintext
lan966x_stats_init()
    create_singlethread_workqueue()  # 失败,lan966x->stats_queue 为 NULL
    queue_delayed_work()
        queue_delayed_work_on()
            __queue_delayed_work()  # 这里有警告,但仍继续
                __queue_work()      # 访问 wq->flags,导致空指针解引用
```

解决方法是检查返回值,如果返回值为NULL,则返回 -ENOMEM。

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