一、 漏洞 CVE-2022-49894 基础信息
漏洞信息
                                        # cxl/region:修复区域HPA排序验证

## 漏洞概述
在Linux内核中,某些内存区域可能没有分配地址空间。在验证HPA(Host Physical Address)顺序时跳过这些区域,否则可能导致内核崩溃。

## 影响版本
该漏洞影响未具体指定版本的Linux内核。

## 细节
某些区域可能没有分配任何地址空间。在验证HPA顺序时跳过这些区域,否则可能导致如下崩溃:
```
devm_cxl_add_region: cxl_acpi cxl_acpi.0: decoder3.4: created region9
BUG: kernel NULL pointer dereference, address: 0000000000000000
[..]
RIP: 0010:store_targetN+0x655/0x1740 [cxl_core]
[..]
Call Trace:
 <TASK>
 kernfs_fop_write_iter+0x144/0x200
 vfs_write+0x24a/0x4d0
 ksys_write+0x69/0xf0
 do_syscall_64+0x3a/0x90
```

## 影响
该漏洞可能导致内核空指针取消引用(NULL pointer dereference),进而导致系统崩溃。具体调用链如下:
- `alloc_region_ref` (drivers/cxl/core/region.c:676)
- `cxl_port_attach_region` (drivers/cxl/core/region.c:850)
- `cxl_region_attach` (drivers/cxl/core/region.c:1290)
- `attach_target` (drivers/cxl/core/region.c:1410)
- `store_targetN` (drivers/cxl/core/region.c:1453)
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
cxl/region: Fix region HPA ordering validation
来源:美国国家漏洞数据库 NVD
漏洞描述信息
In the Linux kernel, the following vulnerability has been resolved: cxl/region: Fix region HPA ordering validation Some regions may not have any address space allocated. Skip them when validating HPA order otherwise a crash like the following may result: devm_cxl_add_region: cxl_acpi cxl_acpi.0: decoder3.4: created region9 BUG: kernel NULL pointer dereference, address: 0000000000000000 [..] RIP: 0010:store_targetN+0x655/0x1740 [cxl_core] [..] Call Trace: <TASK> kernfs_fop_write_iter+0x144/0x200 vfs_write+0x24a/0x4d0 ksys_write+0x69/0xf0 do_syscall_64+0x3a/0x90 store_targetN+0x655/0x1740: alloc_region_ref at drivers/cxl/core/region.c:676 (inlined by) cxl_port_attach_region at drivers/cxl/core/region.c:850 (inlined by) cxl_region_attach at drivers/cxl/core/region.c:1290 (inlined by) attach_target at drivers/cxl/core/region.c:1410 (inlined by) store_targetN at drivers/cxl/core/region.c:1453
来源:美国国家漏洞数据库 NVD
CVSS信息
N/A
来源:美国国家漏洞数据库 NVD
漏洞类别
N/A
来源:美国国家漏洞数据库 NVD
漏洞标题
Linux kernel 安全漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于未验证区域HPA顺序,可能导致空指针解引用。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
其他
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2022-49894 的公开POC
# POC 描述 源链接 神龙链接
三、漏洞 CVE-2022-49894 的情报信息