CVE-2022-48784

Severity CVSS v4.0:
Pending analysis
Type:
CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
Publication date:
16/07/2024
Last modified:
03/02/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> cfg80211: fix race in netlink owner interface destruction<br /> <br /> My previous fix here to fix the deadlock left a race where<br /> the exact same deadlock (see the original commit referenced<br /> below) can still happen if cfg80211_destroy_ifaces() already<br /> runs while nl80211_netlink_notify() is still marking some<br /> interfaces as nl_owner_dead.<br /> <br /> The race happens because we have two loops here - first we<br /> dev_close() all the netdevs, and then we destroy them. If we<br /> also have two netdevs (first one need only be a wdev though)<br /> then we can find one during the first iteration, close it,<br /> and go to the second iteration -- but then find two, and try<br /> to destroy also the one we didn&amp;#39;t close yet.<br /> <br /> Fix this by only iterating once.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.12.1 (including) 5.15.25 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 5.16.11 (excluding)
cpe:2.3:o:linux:linux_kernel:5.17:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.17:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.17:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:5.17:rc4:*:*:*:*:*:*