CVE-2024-27391: wifi: wilc1000: do not realloc workqueue everytime an interface is added
In the Linux kernel, the following vulnerability has been resolved:
wifi: wilc1000: do not realloc workqueue everytime an interface is added
Commit 09ed8bfc5215 ("wilc1000: Rename workqueue from "WILCwq" to "NETDEV-wq"") moved workqueue creation in wilcnetdevifcinit in order to set the interface name in the workqueue name. However, while the driver needs only one workqueue, the wilcnetdevifcinit is called each time we add an interface over a phy, which in turns overwrite the workqueue with a new one. This can be observed with the following commands:
for i in $(seq 0 10) do iw phy phy0 interface add wlan1 type managed iw dev wlan1 del done ps -eo pid,comm|grep wlan
39 kworker/R-wlan0 98 kworker/R-wlan1 102 kworker/R-wlan1 105 kworker/R-wlan1 108 kworker/R-wlan1 111 kworker/R-wlan1 114 kworker/R-wlan1 117 kworker/R-wlan1 120 kworker/R-wlan1 123 kworker/R-wlan1 126 kworker/R-wlan1 129 kworker/R-wlan1
Fix this leakage by putting back hifworkqueue allocation in wilccfg80211init. Regarding the workqueue name, it is indeed relevant to set it lowercase, however it is not attached to a specific netdev, so enforcing netdev name in the name is not so relevant. Still, enrich the name with the wiphy name to make it clear which phy is using the workqueue.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-27391?
CVE-2024-27391 has been classified with a moderate severity level due to its potential impact on the Linux kernel.
How do I fix CVE-2024-27391?
To fix CVE-2024-27391, upgrade to the recommended Linux kernel versions: 5.10.223-1, 5.10.226-1, 6.1.123-1, 6.1.119-1, 6.12.10-1, or 6.12.11-1.
Which software versions are affected by CVE-2024-27391?
CVE-2024-27391 affects specific Debian Linux kernel versions prior to the patched releases.
Is CVE-2024-27391 a remote exploit?
CVE-2024-27391 does not indicate a remote exploit capability directly but may affect network-related operations.
What components of the Linux kernel are impacted by CVE-2024-27391?
CVE-2024-27391 specifically impacts the wilc1000 Wi-Fi driver in the Linux kernel.