Skip to contentSkip to conversation

CVE-2025-37796: wifi: at76c50x: fix use after free access in at76_disconnect

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 1, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

wifi: at76c50x: fix use after free access in at76_disconnect

The memory pointed to by priv is freed at the end of at76_delete_device function (using ieee80211_free_hw). But the code then accesses the udev field of the freed object to put the USB device. This may also lead to a memory leak of the usb device. Fix this by using udev from interface.

The Linux kernel CVE team has assigned CVE-2025-37796 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 3.17 with commit 29e20aa6c6aff35c81d4da2e2cd516dadb569061 and fixed in 6.1.135 with commit 5e7df74745700f059dc117a620e566964a2e8f2c
	Issue introduced in 3.17 with commit 29e20aa6c6aff35c81d4da2e2cd516dadb569061 and fixed in 6.6.88 with commit 7ca513631fa6ad3011b8b9197cdde0f351103704
	Issue introduced in 3.17 with commit 29e20aa6c6aff35c81d4da2e2cd516dadb569061 and fixed in 6.12.25 with commit a9682bfef2cf3802515a902e964d774e137be1b9
	Issue introduced in 3.17 with commit 29e20aa6c6aff35c81d4da2e2cd516dadb569061 and fixed in 6.14.4 with commit 152721cbae42713ecfbca6847e0f102ee6b19546
	Issue introduced in 3.17 with commit 29e20aa6c6aff35c81d4da2e2cd516dadb569061 and fixed in 6.15-rc3 with commit 27c7e63b3cb1a20bb78ed4a36c561ea4579fd7da

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2025-37796

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:

	drivers/net/wireless/atmel/at76c50x-usb.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/5e7df74745700f059dc117a620e566964a2e8f2c
	https://git.kernel.org/stable/c/7ca513631fa6ad3011b8b9197cdde0f351103704
	https://git.kernel.org/stable/c/a9682bfef2cf3802515a902e964d774e137be1b9
	https://git.kernel.org/stable/c/152721cbae42713ecfbca6847e0f102ee6b19546
	https://git.kernel.org/stable/c/27c7e63b3cb1a20bb78ed4a36c561ea4579fd7da