Описание
In the Linux kernel, the following vulnerability has been resolved:
wifi: mac80211: tear down new links on vif update error path
When ieee80211_vif_update_links() adds new links it allocates a link
container for each and calls ieee80211_link_init() (which registers the
per-link debugfs files with file->private_data pointing into the container)
and ieee80211_link_setup(). If the subsequent drv_change_vif_links() fails,
the error path restores the old pointers and jumps to 'free', which frees
the new containers but never removes their debugfs entries or stops the
links. The debugfs files survive with file->private_data dangling at the
freed container, so a later open()+read() (e.g. link-1/txpower)
dereferences freed memory in ieee80211_if_read_link(), a use-after-free.
The removal path already dismantles links correctly via
ieee80211_tear_down_links(), which removes each link's keys and debugfs
entries and calls ieee80211_link_stop(); the add path on the error branch
does not. Commit be1ba9ed221f ("wifi: mac80211: avoid weird state in error
path") hardened this same error path for the link-removal case
(new_links == 0) but left the newly-added links' teardown unaddressed.
drv_change_vif_links() can fail at runtime on MLO drivers (internal
allocation / queue / firmware command failures).
Remove the new links' debugfs entries and stop them before freeing.
BUG: KASAN: slab-use-after-free in ieee80211_if_read_link (net/mac80211/debugfs_netdev.c:127)
Read of size 8 at addr ffff888011290000 by task exploit/145
Call Trace:
...
ieee80211_if_read_link (net/mac80211/debugfs_netdev.c:127)
short_proxy_read (fs/debugfs/file.c:373)
vfs_read (fs/read_write.c:572)
ksys_read (fs/read_write.c:716)
do_syscall_64 (arch/x86/entry/syscall_64.c:94)
entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121)
...
Oops: general protection fault, probably for non-canonical address 0xdffffc000000000a
RIP: 0010:ieee80211_if_read_link (net/mac80211/debugfs_netdev.c:127)
Kernel panic - not syncing: Fatal exception
A flaw was found in the Linux kernel's mac80211 Wi-Fi subsystem. When new Wi-Fi links are added, an error in the update process can cause debugfs entries to point to memory that has already been freed. A local attacker can exploit this use-after-free vulnerability by accessing these dangling debugfs entries, which can lead to a system crash and a denial of service.
Отчет
A moderate-impact use-after-free flaw was found in the Linux kernel's mac80211 Wi-Fi subsystem as shipped in Red Hat Enterprise Linux and Red Hat In-Vehicle OS. When ieee80211_vif_update_links() adds new Wi-Fi links and the subsequent drv_change_vif_links() driver callback fails, which can occur at runtime on multi-link operation (MLO) capable drivers due to internal allocation, queue, or firmware command failures, the error path frees the newly allocated link containers without removing their per-link debugfs entries or stopping the links. The surviving debugfs files keep file->private_data pointing into the freed memory, so a local attacker who can read one of these dangling debugfs entries (for example link-1/txpower) triggers a use-after-free read in ieee80211_if_read_link(), causing a kernel panic and a denial of service. The affected scope covers the kernel and kernel-rt components of Red Hat Enterprise Linux 8 (8.10 update stream), Red Hat Enterprise Linux 9 (9.4, 9.6, 9.8, and 9.9 streams), Red Hat Enterprise Linux 10 (10.0, 10.2, and 10.3 streams), and Red Hat In-Vehicle OS 2, including its kernel-ivos-qualcomm component; in these streams the fix is currently deferred. Earlier Red Hat Enterprise Linux streams (RHEL 6 ELS, RHEL 7 ELS, and the RHEL 8.4, 8.6, 8.8, and RHEL 9.2 update streams) are not affected because the code that registers the per-link debugfs data this flaw depends on is not present in those versions. Because the fix is deferred, a residual risk remains: a local user who can access a dangling per-link debugfs entry left behind after a failed Wi-Fi link update on an MLO-capable driver could crash the kernel and cause denial of service. Exploitability is limited, since triggering the flaw requires local access, a runtime driver failure during a link update, and read access to the Wi-Fi debugfs files, which is typically restricted to privileged users, and the demonstrated impact is a system crash rather than loss of confidentiality or integrity. The upstream CVE record rates this flaw Important (CVSS 3.1 score 7.8), while Red Hat rates it Moderate (CVSS 3.1 score 5.5). Red Hat's lower rating reflects that exploitation requires local access, depends on a rare error path in MLO-capable Wi-Fi drivers, and results in denial of service with no established confidentiality or integrity impact.
Меры по смягчению последствий
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 10 | kernel | Fix deferred | ||
| Red Hat Enterprise Linux 6 | kernel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel | Not affected | ||
| Red Hat Enterprise Linux 7 | kernel-rt | Not affected | ||
| Red Hat Enterprise Linux 8 | kernel | Fix deferred | ||
| Red Hat Enterprise Linux 8 | kernel-rt | Fix deferred | ||
| Red Hat Enterprise Linux 9 | kernel | Fix deferred | ||
| Red Hat Enterprise Linux 9 | kernel-rt | Not affected |
Показывать по
Дополнительная информация
Статус:
5.5 Medium
CVSS3
Связанные уязвимости
In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: tear down new links on vif update error path When ieee80211_vif_update_links() adds new links it allocates a link container for each and calls ieee80211_link_init() (which registers the per-link debugfs files with file->private_data pointing into the container) and ieee80211_link_setup(). If the subsequent drv_change_vif_links() fails, the error path restores the old pointers and jumps to 'free', which frees the new containers but never removes their debugfs entries or stops the links. The debugfs files survive with file->private_data dangling at the freed container, so a later open()+read() (e.g. link-1/txpower) dereferences freed memory in ieee80211_if_read_link(), a use-after-free. The removal path already dismantles links correctly via ieee80211_tear_down_links(), which removes each link's keys and debugfs entries and calls ieee80211_link_stop(); the add path on the error branch does not. Commit ...
In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: tear down new links on vif update error path When ieee80211_vif_update_links() adds new links it allocates a link container for each and calls ieee80211_link_init() (which registers the per-link debugfs files with file->private_data pointing into the container) and ieee80211_link_setup(). If the subsequent drv_change_vif_links() fails, the error path restores the old pointers and jumps to 'free', which frees the new containers but never removes their debugfs entries or stops the links. The debugfs files survive with file->private_data dangling at the freed container, so a later open()+read() (e.g. link-1/txpower) dereferences freed memory in ieee80211_if_read_link(), a use-after-free. The removal path already dismantles links correctly via ieee80211_tear_down_links(), which removes each link's keys and debugfs entries and calls ieee80211_link_stop(); the add path on the error branch does not. Commit
wifi: mac80211: tear down new links on vif update error path
In the Linux kernel, the following vulnerability has been resolved: w ...
5.5 Medium
CVSS3