In the Linux kernel, the following vulnerability has been resolved:
wifi: rtw88: use ieee80211purgetx_queue() to purge TX skb
When removing kernel modules by: rmmod rtw888723cs rtw888703b rtw888723x rtw88sdio rtw88_core
Driver uses skbqueuepurge() to purge TX skb, but not report tx status causing "Have pending ack frames!" warning. Use ieee80211purgetx_queue() to correct this.
Since ieee80211purgetx_queue() doesn't take locks, to prevent racing between TX work and purge TX queue, flush and destroy TX work in advance.
wlan0: deauthenticating from aa:f5:fd:60:4c:a8 by local choice (Reason: 3=DEAUTHLEAVING) ------------[ cut here ]------------ Have pending ack frames! WARNING: CPU: 3 PID: 9232 at net/mac80211/main.c:1691 ieee80211freeackframe+0x5c/0x90 [mac80211] CPU: 3 PID: 9232 Comm: rmmod Tainted: G C 6.10.1-200.fc40.aarch64 #1 Hardware name: pine64 Pine64 PinePhone Braveheart (1.1)/Pine64 PinePhone Braveheart (1.1), BIOS 2024.01 01/01/2024 pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--) pc : ieee80211freeackframe+0x5c/0x90 [mac80211] lr : ieee80211freeackframe+0x5c/0x90 [mac80211] sp : ffff80008c1b37b0 x29: ffff80008c1b37b0 x28: ffff000003be8000 x27: 0000000000000000 x26: 0000000000000000 x25: ffff000003dc14b8 x24: ffff80008c1b37d0 x23: ffff000000ff9f80 x22: 0000000000000000 x21: 000000007fffffff x20: ffff80007c7e93d8 x19: ffff00006e66f400 x18: 0000000000000000 x17: ffff7ffffd2b3000 x16: ffff800083fc0000 x15: 0000000000000000 x14: 0000000000000000 x13: 2173656d61726620 x12: 6b636120676e6964 x11: 0000000000000000 x10: 000000000000005d x9 : ffff8000802af2b0 x8 : ffff80008c1b3430 x7 : 0000000000000001 x6 : 0000000000000001 x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000000 x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff000003be8000 Call trace: ieee80211freeackframe+0x5c/0x90 [mac80211] idrforeach+0x74/0x110 ieee80211freehw+0x44/0xe8 [mac80211] rtwsdioremove+0x9c/0xc0 [rtw88sdio] sdiobusremove+0x44/0x180 deviceremove+0x54/0x90 devicereleasedriverinternal+0x1d4/0x238 driverdetach+0x54/0xc0 busremovedriver+0x78/0x108 driverunregister+0x38/0x78 sdiounregisterdriver+0x2c/0x40 rtw8723csdriverexit+0x18/0x1000 [rtw888723cs] _dosysdeletemodule.isra.0+0x190/0x338 _arm64sysdeletemodule+0x1c/0x30 invokesyscall+0x74/0x100 el0svccommon.constprop.0+0x48/0xf0 doel0svc+0x24/0x38 el0svc+0x3c/0x158 el0t64synchandler+0x120/0x138 el0t64_sync+0x194/0x198 ---[ end trace 0000000000000000 ]---
[
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"211389034101427579572982090080685198377",
"317414088510122707097186487673966729545",
"316821713856694039968329942078628576978",
"294868393176718430908054132765175083346",
"226521083245029795945973592134060872906",
"35126225968218817766206358316179885456",
"10658108219792401161148221721639680773",
"85294750978863153916793454201951978118"
]
},
"id": "CVE-2024-56609-179dd551",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3e5e4a801aaf4283390cc34959c6c48f910ca5ea",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/sdio.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"270260211688848480687872443452354049114",
"248074208694377518197668258282190356125",
"292384323196273675345204124716138230247",
"108038606629646935592338584905069609061",
"245863627185746900115545499368736288315",
"213528829696136380520818134146548213456",
"98387390521076315114488900730566620059",
"264191270017132249666892125993762480445",
"29950349468885223347651252159244708873",
"149958178784068920188547308169643098092",
"333680619904982065190595079497357329282",
"29659953681524415615915173057818720605",
"226722475609795044977190724395956125883"
]
},
"id": "CVE-2024-56609-2419b8a9",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9bca6528f20325d30c22236b23116f161d418f6d",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/usb.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"292418099089811921959449847027938418585",
"240336160712339772881786830761228683636",
"230475895099950864137739721132578652583",
"117930476935100802646559212847086431689"
]
},
"id": "CVE-2024-56609-257d0f98",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4e8ce3978d704cb28678355d294e10a008b6230a",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/tx.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "77928478718763056451226340665516482917",
"length": 363.0
},
"id": "CVE-2024-56609-2a078aa0",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4e8ce3978d704cb28678355d294e10a008b6230a",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/tx.c",
"function": "rtw_tx_report_purge_timer"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "11284519206299286684588534476837272682",
"length": 151.0
},
"id": "CVE-2024-56609-2b07581c",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9bca6528f20325d30c22236b23116f161d418f6d",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/usb.c",
"function": "rtw_usb_deinit_tx"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "291328289402470204474275666504487776474",
"length": 284.0
},
"id": "CVE-2024-56609-50dc20b5",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3e5e4a801aaf4283390cc34959c6c48f910ca5ea",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/sdio.c",
"function": "rtw_sdio_deinit_tx"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"270260211688848480687872443452354049114",
"248074208694377518197668258282190356125",
"292384323196273675345204124716138230247",
"108038606629646935592338584905069609061",
"245863627185746900115545499368736288315",
"213528829696136380520818134146548213456",
"98387390521076315114488900730566620059",
"264191270017132249666892125993762480445",
"29950349468885223347651252159244708873",
"149958178784068920188547308169643098092",
"333680619904982065190595079497357329282",
"29659953681524415615915173057818720605",
"226722475609795044977190724395956125883"
]
},
"id": "CVE-2024-56609-7a3e4551",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3d94c4b21966b49c3e26ceeefacaa11ff7ee6d68",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/usb.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "11284519206299286684588534476837272682",
"length": 151.0
},
"id": "CVE-2024-56609-a2c43243",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3d94c4b21966b49c3e26ceeefacaa11ff7ee6d68",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/usb.c",
"function": "rtw_usb_deinit_tx"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"314337569804139983692470001524764108870",
"15417617090920013049800844201564825835",
"217233818345673085121231137952154942198",
"13539822566804991995042721806936446610"
]
},
"id": "CVE-2024-56609-a6d29097",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4e8ce3978d704cb28678355d294e10a008b6230a",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/main.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "291328289402470204474275666504487776474",
"length": 284.0
},
"id": "CVE-2024-56609-a9496716",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9bca6528f20325d30c22236b23116f161d418f6d",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/sdio.c",
"function": "rtw_sdio_deinit_tx"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"211389034101427579572982090080685198377",
"317414088510122707097186487673966729545",
"316821713856694039968329942078628576978",
"294868393176718430908054132765175083346",
"226521083245029795945973592134060872906",
"35126225968218817766206358316179885456",
"10658108219792401161148221721639680773",
"85294750978863153916793454201951978118"
]
},
"id": "CVE-2024-56609-bdc4b8ed",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9bca6528f20325d30c22236b23116f161d418f6d",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/sdio.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "11284519206299286684588534476837272682",
"length": 151.0
},
"id": "CVE-2024-56609-c329583b",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3e5e4a801aaf4283390cc34959c6c48f910ca5ea",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/usb.c",
"function": "rtw_usb_deinit_tx"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"211389034101427579572982090080685198377",
"317414088510122707097186487673966729545",
"316821713856694039968329942078628576978",
"294868393176718430908054132765175083346",
"226521083245029795945973592134060872906",
"35126225968218817766206358316179885456",
"10658108219792401161148221721639680773",
"85294750978863153916793454201951978118"
]
},
"id": "CVE-2024-56609-d0598aa2",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3d94c4b21966b49c3e26ceeefacaa11ff7ee6d68",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/sdio.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"threshold": 0.9,
"line_hashes": [
"270260211688848480687872443452354049114",
"248074208694377518197668258282190356125",
"292384323196273675345204124716138230247",
"108038606629646935592338584905069609061",
"245863627185746900115545499368736288315",
"213528829696136380520818134146548213456",
"98387390521076315114488900730566620059",
"264191270017132249666892125993762480445",
"29950349468885223347651252159244708873",
"149958178784068920188547308169643098092",
"333680619904982065190595079497357329282",
"29659953681524415615915173057818720605",
"226722475609795044977190724395956125883"
]
},
"id": "CVE-2024-56609-d52c194c",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3e5e4a801aaf4283390cc34959c6c48f910ca5ea",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/usb.c"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "163326160670831562263820486885163100041",
"length": 741.0
},
"id": "CVE-2024-56609-e08d0266",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4e8ce3978d704cb28678355d294e10a008b6230a",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/main.c",
"function": "rtw_core_deinit"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "163278096257419568465944786279009250262",
"length": 162.0
},
"id": "CVE-2024-56609-e186b751",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3e5e4a801aaf4283390cc34959c6c48f910ca5ea",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/usb.c",
"function": "rtw_usb_tx_queue_purge"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "291328289402470204474275666504487776474",
"length": 284.0
},
"id": "CVE-2024-56609-e3b94e8f",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3d94c4b21966b49c3e26ceeefacaa11ff7ee6d68",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/sdio.c",
"function": "rtw_sdio_deinit_tx"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "163278096257419568465944786279009250262",
"length": 162.0
},
"id": "CVE-2024-56609-f7a82b5d",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@9bca6528f20325d30c22236b23116f161d418f6d",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/usb.c",
"function": "rtw_usb_tx_queue_purge"
}
},
{
"deprecated": false,
"signature_version": "v1",
"digest": {
"function_hash": "163278096257419568465944786279009250262",
"length": 162.0
},
"id": "CVE-2024-56609-fbbe244d",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3d94c4b21966b49c3e26ceeefacaa11ff7ee6d68",
"target": {
"file": "drivers/net/wireless/realtek/rtw88/usb.c",
"function": "rtw_usb_tx_queue_purge"
}
}
]