Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D7B934A79A for ; Wed, 24 Dec 2025 13:11:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581881; cv=none; b=trgzOmrqDW6MYFHzNS4k8FaIu2Y3s90BbFc0V1AmV1mfPt6yfo95kWOsCqOv0xB9baqAfBTKr1eH55tSHHSP/9P6pdfIbK94N8uHNTl4uD5zxylIs8an8AqKCZ07V+jhDH9oMlmHOPLjOmUWjUofXUhXj/hQg1jTP4rJLP6m5cM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581881; c=relaxed/simple; bh=2+IZPs7K2azoURu2irDLX3HZOtkuTrVuuOgkrrDqIR4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EMzDrmaknGChXCCGpbJIk4gUsQCNxWu6KpidSlLKsxVuVxNaINZwu6u2xe9MJRB14sNwjiFeGtz4fFeTvvfaAwI8CevWVTl1n9LqY0rOl8MVoAuAx2VFIMaUDmUSTSPGIxSLXxd5fX3NDU1TTUoGIxxiFpegieb6HJqQiHLodC0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=m8YDBSlf; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="m8YDBSlf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21E43C4CEFB; Wed, 24 Dec 2025 13:11:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581881; bh=2+IZPs7K2azoURu2irDLX3HZOtkuTrVuuOgkrrDqIR4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=m8YDBSlfep9rb6VxIXRRNmZ1aNOrX2w7YTecwBAl5uYj/kNH8leQRl9WAsTAETquF aKREjN9RrCHMjOtpGQsspGYdNJKp2Qjyy6xKI3l/NyKYCPldBdGoxVoN+YDCxceEib AuDu9I2/kDc1uHvSThYotEwdFvaA5E9jyQga+Z8Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54131: wifi: rt2x00: Fix memory leak when handling surveys Date: Wed, 24 Dec 2025 14:07:28 +0100 Message-ID: <2025122420-CVE-2023-54131-87b3@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3945; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WXFwVR3sjV3PUCNCcdxuPRovymPDPaEnmSBwaGe0ltg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneT312O/e/MV/WtmXWzuz/Lpd/FctK7r126mS1dPXNt ov/wrvYOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAinPYMc3jNz6b+1Hli5G5z rpDj9T4bET4hfoYFSxfdun20envcZYbXG8LaPKWVZqpLAwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: wifi: rt2x00: Fix memory leak when handling surveys When removing a rt2x00 device, its associated channel surveys are not freed, causing a memory leak observable with kmemleak: unreferenced object 0xffff9620f0881a00 (size 512): comm "systemd-udevd", pid 2290, jiffies 4294906974 (age 33.768s) hex dump (first 32 bytes): 70 44 12 00 00 00 00 00 92 8a 00 00 00 00 00 00 pD.............. 00 00 00 00 00 00 00 00 ab 87 01 00 00 00 00 00 ................ backtrace: [] __kmalloc+0x4b/0x130 [] rt2800_probe_hw+0xc2b/0x1380 [rt2800lib] [] rt2800usb_probe_hw+0xe/0x60 [rt2800usb] [] rt2x00lib_probe_dev+0x21a/0x7d0 [rt2x00lib] [] rt2x00usb_probe+0x1be/0x980 [rt2x00usb] [] usb_probe_interface+0xe2/0x310 [usbcore] [] really_probe+0x1a5/0x410 [] __driver_probe_device+0x78/0x180 [] driver_probe_device+0x1e/0x90 [] __driver_attach+0xd2/0x1c0 [] bus_for_each_dev+0x77/0xd0 [] bus_add_driver+0x112/0x210 [] driver_register+0x5c/0x120 [] usb_register_driver+0x88/0x150 [usbcore] [] do_one_initcall+0x44/0x220 [] do_init_module+0x4c/0x220 Fix this by freeing the channel surveys on device removal. Tested with a RT3070 based USB wireless adapter. The Linux kernel CVE team has assigned CVE-2023-54131 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 5447626910f5b8d964761ed4fa4feaf1a3ac47d0 and fixed in 5.15.111 with commit eb77c0c0a17c53d83b5fe8e46490fb0a7ed9e6af Issue introduced in 5.11 with commit 5447626910f5b8d964761ed4fa4feaf1a3ac47d0 and fixed in 6.1.28 with commit bea3f8aa999318bdffa2d17753e492f76904f0ce Issue introduced in 5.11 with commit 5447626910f5b8d964761ed4fa4feaf1a3ac47d0 and fixed in 6.2.15 with commit 494064ffd60d044c097d514917c40913d1affbca Issue introduced in 5.11 with commit 5447626910f5b8d964761ed4fa4feaf1a3ac47d0 and fixed in 6.3.2 with commit 0354bce76ed1d775904acdb4cc0bf88c5b9b5b9f Issue introduced in 5.11 with commit 5447626910f5b8d964761ed4fa4feaf1a3ac47d0 and fixed in 6.4 with commit cbef9a83c51dfcb07f77cfa6ac26f53a1ea86f49 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-2023-54131 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/ralink/rt2x00/rt2x00dev.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/eb77c0c0a17c53d83b5fe8e46490fb0a7ed9e6af https://git.kernel.org/stable/c/bea3f8aa999318bdffa2d17753e492f76904f0ce https://git.kernel.org/stable/c/494064ffd60d044c097d514917c40913d1affbca https://git.kernel.org/stable/c/0354bce76ed1d775904acdb4cc0bf88c5b9b5b9f https://git.kernel.org/stable/c/cbef9a83c51dfcb07f77cfa6ac26f53a1ea86f49