一、 漏洞 CVE-2023-53075 基础信息
漏洞信息
                                        # ftrace:在索引为 0 时修复 lookup_rec() 中的无效地址访问问题

## 漏洞概述
在Linux内核中修复了一个在`lookup_rec()`函数中当索引为0时发生无效地址访问的漏洞。该漏洞导致使用已释放的内存(use-after-free)问题。

## 影响版本
未具体说明受影响版本,但适用于包含相关代码的Linux内核版本。

## 细节
KASAN(Kernel Address Sanitizer)报告了如下问题:
```
BUG: KASAN: use-after-free in lookup_rec
Read of size 8 at addr ffff000199270ff0 by task modprobe
CPU: 2 Comm: modprobe
Call trace:
  kasan_report
  __asan_load8
  lookup_rec
  ftrace_location
  arch_check_ftrace_location
  check_kprobe_address_safe
  register_kprobe
```
问题发生在`lookup_rec()`函数中访问`pg->records[pg->index - 1].ip`时。当`pg->index`为0时,索引变为`-1`,进而访问了无效地址`pg->records[-1].ip`。

## 影响
当`pg->index`为0时,访问数组负索引导致使用已释放的内存问题。修正措施是在`pg->index`为0时不检查`ip`。
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
ftrace: Fix invalid address access in lookup_rec() when index is 0
来源:美国国家漏洞数据库 NVD
漏洞描述信息
In the Linux kernel, the following vulnerability has been resolved: ftrace: Fix invalid address access in lookup_rec() when index is 0 KASAN reported follow problem: BUG: KASAN: use-after-free in lookup_rec Read of size 8 at addr ffff000199270ff0 by task modprobe CPU: 2 Comm: modprobe Call trace: kasan_report __asan_load8 lookup_rec ftrace_location arch_check_ftrace_location check_kprobe_address_safe register_kprobe When checking pg->records[pg->index - 1].ip in lookup_rec(), it can get a pg which is newly added to ftrace_pages_start in ftrace_process_locs(). Before the first pg->index++, index is 0 and accessing pg->records[-1].ip will cause this problem. Don't check the ip when pg->index is 0.
来源:美国国家漏洞数据库 NVD
CVSS信息
N/A
来源:美国国家漏洞数据库 NVD
漏洞类别
N/A
来源:美国国家漏洞数据库 NVD
漏洞标题
Linux kernel 安全漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于lookup_rec在索引为0时访问无效地址。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
其他
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2023-53075 的公开POC
# POC 描述 源链接 神龙链接
三、漏洞 CVE-2023-53075 的情报信息