漏洞信息
# wifi: ath12k: 修复对内存的无效访问
## 漏洞概述
在Linux内核中,`ath12k_dp_rx_msdu_coalesce()`函数中存在一个使用已释放内存的漏洞。特别是在解引用已释放的`skb`后的`rxcb->is_continuation`,导致潜在的use-after-free错误。
## 影响版本
未提供具体影响版本信息。
## 漏洞细节
在`ath12k_dp_rx_msdu_coalesce()`函数中,`rxcb`是从`skb`中获取的,`is_continuation`是`rxcb`的一部分。目前,在释放`skb`后,再次访问`rxcb->is_continuation`这部分内存是错误的,因为这部分内存已经释放。为了修复这个问题,通过局部定义`bool is_continuation`从`rxcb`中提取,这样在释放`skb`后,就可以继续使用`is_continuation`。
## 影响
此漏洞可能会导致use-after-free错误,这可能引起程序崩溃或潜在的安全风险。编译测试已通过。
提示
尽管我们采用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。
神龙会尽力确保数据准确,但也请结合实际情况进行甄别与判断。
神龙祝您一切顺利!
漏洞标题
wifi: ath12k: fix invalid access to memory
漏洞描述信息
In the Linux kernel, the following vulnerability has been resolved:
wifi: ath12k: fix invalid access to memory
In ath12k_dp_rx_msdu_coalesce(), rxcb is fetched from skb and boolean
is_continuation is part of rxcb.
Currently, after freeing the skb, the rxcb->is_continuation accessed
again which is wrong since the memory is already freed.
This might lead use-after-free error.
Hence, fix by locally defining bool is_continuation from rxcb,
so that after freeing skb, is_continuation can be used.
Compile tested only.
CVSS信息
N/A
漏洞类别
N/A
漏洞标题
Linux kernel 安全漏洞
漏洞描述信息
Linux kernel是美国Linux基金会的开源操作系统Linux所使用的内核。 Linux kernel存在安全漏洞,该漏洞源于释放skb后仍访问rxcb->is_continuation,可能导致释放后重用。
CVSS信息
N/A
漏洞类别
其他