一、 漏洞 CVE-2025-38269 基础信息
漏洞信息
                                        # btrfs:在btrfs_convert_extent_bit()中插入状态失败后退出

## 概述
在Linux内核中,`btrfs_convert_extent_bit()`函数中存在一个漏洞。当`insert_state()`失败时,代码会调用`extent_io_tree_panic()`触发`BUG()`,但当`CONFIG_BUG`禁用时,代码会继续执行并导致错误指针被解引用,进而引发内存越界访问。

## 影响版本
未提供具体影响的版本信息。

## 细节
当`insert_state()`函数失败返回错误指针时,代码会执行`extent_io_tree_panic()`,这会触发`BUG()`。但是,如果配置`CONFIG_BUG`被禁用(这是一个不常见的场景),代码将继续执行,调用`cache_state()`并解引用错误指针,导致非法内存访问。

## 影响
在`CONFIG_BUG`配置禁用的情况下,会导致内存越界访问。修复方案是在调用`extent_io_tree_panic()`后跳转到`out`标签,并使代码更加清晰。
                                        
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
btrfs: exit after state insertion failure at btrfs_convert_extent_bit()
来源:美国国家漏洞数据库 NVD
漏洞描述信息
In the Linux kernel, the following vulnerability has been resolved: btrfs: exit after state insertion failure at btrfs_convert_extent_bit() If insert_state() state failed it returns an error pointer and we call extent_io_tree_panic() which will trigger a BUG() call. However if CONFIG_BUG is disabled, which is an uncommon and exotic scenario, then we fallthrough and call cache_state() which will dereference the error pointer, resulting in an invalid memory access. So jump to the 'out' label after calling extent_io_tree_panic(), it also makes the code more clear besides dealing with the exotic scenario where CONFIG_BUG is disabled.
来源:美国国家漏洞数据库 NVD
CVSS信息
N/A
来源:美国国家漏洞数据库 NVD
漏洞类别
N/A
来源:美国国家漏洞数据库 NVD
漏洞标题
Linux kernel 安全漏洞
来源:中国国家信息安全漏洞库 CNNVD
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于btrfs中的状态插入失败问题,可能导致无效内存访问。
来源:中国国家信息安全漏洞库 CNNVD
CVSS信息
N/A
来源:中国国家信息安全漏洞库 CNNVD
漏洞类别
其他
来源:中国国家信息安全漏洞库 CNNVD
二、漏洞 CVE-2025-38269 的公开POC
# POC 描述 源链接 神龙链接
三、漏洞 CVE-2025-38269 的情报信息