wifi: rtw88: fix the 'para' buffer size to avoid reading out of bounds
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 'rtw_fw_bt_wifi_control(rtwdev, para[0], ¶[1])', which reads 5 bytes: void rtw_fw_bt_wifi_control(struct rtw_dev *rtwdev, u8 op_code, u8 *data) { ... SET_BT_WIFI_CONTROL_DATA1(h2c_pkt, *data); SET_BT_WIFI_CONTROL_DATA2(h2c_pkt, *(data + 1)); ... SET_BT_WIFI_CONTROL_DATA5(h2c_pkt, *(data + 4)); Detected using the static analysis tool - Svace.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.186, 6.1.142, 6.12.34, 6.15.3, 6.6.94
- CVEs
- CVE-2025-38159
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 03:23 UTC · Revision 1
Source evidence
wifi: rtw88: fix the 'para' buffer size to avoid reading out of bounds
core-osv · Original sourcePublished 3 Jul 2025, 08:36 UTC
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 'rtw_fw_bt_wifi_control(rtwdev, para[0], ¶[1])', which reads 5 bytes: void rtw_fw_bt_wifi_control(struct rtw_dev *rtwdev, u8 op_code, u8 *data) { ... SET_BT_WIFI_CONTROL_DATA1(h2c_pkt, *data); SET_BT_WIFI_CONTROL_DATA2(h2c_pkt, *(data + 1)); ... SET_BT_WIFI_CONTROL_DATA5(h2c_pkt, *(data + 4)); Detected using the static analysis tool - Svace.
osv:CVE-2025-38159
Kernel
Fixed versions: 5.15.186, 6.1.142, 6.6.94, 6.12.34, 6.15.3
Complete source record
{
"id": "0f535cff1f84d6b11fada2e5ef634878dface1e874b2765ba4ed668dd8f68b38",
"url": "https://osv.dev/vulnerability/CVE-2025-38159",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "wifi: rtw88: fix the 'para' buffer size to avoid reading out of bounds",
"summary": "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 'rtw_fw_bt_wifi_control(rtwdev, para[0], ¶[1])', which reads 5 bytes: void rtw_fw_bt_wifi_control(struct rtw_dev *rtwdev, u8 op_code, u8 *data) { ... SET_BT_WIFI_CONTROL_DATA1(h2c_pkt, *data); SET_BT_WIFI_CONTROL_DATA2(h2c_pkt, *(data + 1)); ... SET_BT_WIFI_CONTROL_DATA5(h2c_pkt, *(data + 4)); Detected using the static analysis tool - Svace.",
"evidence": "osv:CVE-2025-38159",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.186",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.142",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.94",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.34",
"evidence": "/affected/1/ranges"
},
{
"value": "6.15.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2025-38159",
"aliases": [
"CVE-2025-38159"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "4136214f7c46839c15f0f177fe1d5052302c0205"
},
{
"fixed": "1ee8ea6937d13b20f90ff35d71ccc03ba448182d"
},
{
"fixed": "68a1037f0bac4de9a585aa9c879ef886109f3647"
},
{
"fixed": "74e18211c2c89ab66c9546baa7408288db61aa0d"
},
{
"fixed": "c13255389499275bc5489a0b5b7940ccea3aef04"
},
{
"fixed": "9febcc8bded8be0d7efd8237fcef599b6d93b788"
},
{
"fixed": "4c2c372de2e108319236203cce6de44d70ae15cd"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38159.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.4.0"
},
{
"fixed": "5.15.186"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.142"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.94"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.34"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.15.3"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38159.json"
}
}
],
"modified": "2026-10-28T02:30:49.610358103Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/1ee8ea6937d13b20f90ff35d71ccc03ba448182d",
"https://git.kernel.org/stable/c/4c2c372de2e108319236203cce6de44d70ae15cd",
"https://git.kernel.org/stable/c/68a1037f0bac4de9a585aa9c879ef886109f3647",
"https://git.kernel.org/stable/c/74e18211c2c89ab66c9546baa7408288db61aa0d",
"https://git.kernel.org/stable/c/9febcc8bded8be0d7efd8237fcef599b6d93b788",
"https://git.kernel.org/stable/c/c13255389499275bc5489a0b5b7940ccea3aef04",
"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38159.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-38159",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38159.json"
}
},
"related_cves": [
{
"value": "CVE-2025-38159",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 517722,
"published_at": "2025-07-03T08:36:01.49+00:00"
}