In the Linux kernel, the following vulnerability has been resolved:
wifi: rtw88: fix the 'para' buffer size to avoid reading out of bounds
Set the size to 6 instead of 2, since 'para' array is passed to 'rtwfwbtwificontrol(rtwdev, para[0], ¶[1])', which reads 5 bytes:
void rtwfwbtwificontrol(struct rtwdev *rtwdev, u8 opcode, u8 *data) { ... SETBTWIFICONTROLDATA1(h2cpkt, *data); SETBTWIFICONTROLDATA2(h2cpkt, *(data + 1)); ... SETBTWIFICONTROLDATA5(h2c_pkt, *(data + 4));
Detected using the static analysis tool - Svace.
[
{
"id": "CVE-2025-38159-2292fe8f",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9febcc8bded8be0d7efd8237fcef599b6d93b788",
"signature_version": "v1",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/coex.c"
},
"deprecated": false,
"digest": {
"line_hashes": [
"65421175389187879516088040599504294877",
"134737845149619241529691204131280044409",
"263380960775167736254072822486977042704",
"78228434777275118255914923908176393090"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2025-38159-679d26ab",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1ee8ea6937d13b20f90ff35d71ccc03ba448182d",
"signature_version": "v1",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/coex.c"
},
"deprecated": false,
"digest": {
"line_hashes": [
"65421175389187879516088040599504294877",
"134737845149619241529691204131280044409",
"263380960775167736254072822486977042704",
"78228434777275118255914923908176393090"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2025-38159-ace8bd54",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@68a1037f0bac4de9a585aa9c879ef886109f3647",
"signature_version": "v1",
"target": {
"function": "rtw_coex_tdma_timer_base",
"file": "drivers/net/wireless/realtek/rtw88/coex.c"
},
"deprecated": false,
"digest": {
"length": 1044.0,
"function_hash": "126432150592057079923177546310135482095"
},
"signature_type": "Function"
},
{
"id": "CVE-2025-38159-aecc0cf5",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4c2c372de2e108319236203cce6de44d70ae15cd",
"signature_version": "v1",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/coex.c"
},
"deprecated": false,
"digest": {
"line_hashes": [
"65421175389187879516088040599504294877",
"134737845149619241529691204131280044409",
"263380960775167736254072822486977042704",
"78228434777275118255914923908176393090"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2025-38159-b643f8de",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1ee8ea6937d13b20f90ff35d71ccc03ba448182d",
"signature_version": "v1",
"target": {
"function": "rtw_coex_tdma_timer_base",
"file": "drivers/net/wireless/realtek/rtw88/coex.c"
},
"deprecated": false,
"digest": {
"length": 1044.0,
"function_hash": "126432150592057079923177546310135482095"
},
"signature_type": "Function"
},
{
"id": "CVE-2025-38159-c5d9d623",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9febcc8bded8be0d7efd8237fcef599b6d93b788",
"signature_version": "v1",
"target": {
"function": "rtw_coex_tdma_timer_base",
"file": "drivers/net/wireless/realtek/rtw88/coex.c"
},
"deprecated": false,
"digest": {
"length": 1044.0,
"function_hash": "126432150592057079923177546310135482095"
},
"signature_type": "Function"
},
{
"id": "CVE-2025-38159-deeaf351",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@68a1037f0bac4de9a585aa9c879ef886109f3647",
"signature_version": "v1",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/coex.c"
},
"deprecated": false,
"digest": {
"line_hashes": [
"65421175389187879516088040599504294877",
"134737845149619241529691204131280044409",
"263380960775167736254072822486977042704",
"78228434777275118255914923908176393090"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2025-38159-ec9c8951",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c13255389499275bc5489a0b5b7940ccea3aef04",
"signature_version": "v1",
"target": {
"function": "rtw_coex_tdma_timer_base",
"file": "drivers/net/wireless/realtek/rtw88/coex.c"
},
"deprecated": false,
"digest": {
"length": 1044.0,
"function_hash": "126432150592057079923177546310135482095"
},
"signature_type": "Function"
},
{
"id": "CVE-2025-38159-f45b340d",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c13255389499275bc5489a0b5b7940ccea3aef04",
"signature_version": "v1",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/coex.c"
},
"deprecated": false,
"digest": {
"line_hashes": [
"65421175389187879516088040599504294877",
"134737845149619241529691204131280044409",
"263380960775167736254072822486977042704",
"78228434777275118255914923908176393090"
],
"threshold": 0.9
},
"signature_type": "Line"
},
{
"id": "CVE-2025-38159-f9cc77c1",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4c2c372de2e108319236203cce6de44d70ae15cd",
"signature_version": "v1",
"target": {
"function": "rtw_coex_tdma_timer_base",
"file": "drivers/net/wireless/realtek/rtw88/coex.c"
},
"deprecated": false,
"digest": {
"length": 1044.0,
"function_hash": "126432150592057079923177546310135482095"
},
"signature_type": "Function"
}
]