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 D90863EE1C5 for ; Wed, 6 May 2026 11:29:02 +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=1778066942; cv=none; b=jUFxu45ZGGyOgqb1yFQ24Oxp0INTcc2qSRKYVdo1h/sfhKkXIvoaiQSi0wTiJ8jFkgQWuGDVMfvjrLYJCRmSpMde6X2jT33yNTLf65kDKml9leHkPvV9ZyqlngyNjI5snm2dqTnlvUSBkrEwx1HbS8WS9zEMmU0a8OnTehNJnww= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778066942; c=relaxed/simple; bh=F1GLnCZnbOmQTbgqFYJosFAAqvCaBLdgrtUST3WdWLA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IBLcu6gY0EABUaYR7iNGOCYJ6FwX4UNfoIHkjZXt5qVk3JvVmPWdZAbAxCPHnBRH10OgKskQFmsK5/WHacw9ZP0ddlLwTr6q4MejrjFxbdV7sVkSRmzj/qI/NsAm1Nl2WmEnBcNOwYvzXy4G6C/2yQIM1yow/+Cx5J1Kaw8oZ5g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ilK6QbbM; 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="ilK6QbbM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2598BC2BCB8; Wed, 6 May 2026 11:29:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778066942; bh=F1GLnCZnbOmQTbgqFYJosFAAqvCaBLdgrtUST3WdWLA=; h=From:To:Cc:Subject:Date:Reply-To:From; b=ilK6QbbMIClTD071NZUxQAoUxam1komAB61kyLffs1jNXxedOUu9EqtM46UDG1NaM J9a6EIWu2y8FdAvMdV95UhcqRawq5q8Io8lHPc8Lw0zCh2Fytc0PjkPF8sU7i1+WI+ FeDxsvixPSAUY1Ta4wtpMQhjMwvXT7E7MgarohJg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71273: wifi: rtw88: Use devm_kmemdup() in rtw_set_supported_band() Date: Wed, 6 May 2026 13:27:15 +0200 Message-ID: <2026050617-CVE-2025-71273-842f@gregkh> X-Mailer: git-send-email 2.54.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=2190; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=tCxpvx2/J97F+0VInbzuYc7FfGdwscZcG+rGM0pQQx8=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/Vaf29vXx+CuX3Kvp0X24ozwu8F5b04ulB+4wPtumI GEreflqRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkYRfDPIXpd34vvPWgs0fb 1Vp8zsycyTM6WBjmWaYwx63hZ+j6YztX1Hutmlv6BW1LAA== 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: rtw88: Use devm_kmemdup() in rtw_set_supported_band() Simplify the code by using device managed memory allocations. This also fixes a memory leak in rtw_register_hw(). The supported bands were not freed in the error path. Copied from commit 145df52a8671 ("wifi: rtw89: Convert rtw89_core_set_supported_band to use devm_*"). The Linux kernel CVE team has assigned CVE-2025-71273 to this issue. Affected and fixed versions =========================== Fixed in 6.12.75 with commit 9b5418070ee8468fac9e8bf641c83d46b85bff30 Fixed in 6.18.16 with commit ad9b80ee310ed734482a2e5da874b67f88ac0ef8 Fixed in 6.19.6 with commit 1bd90e0a99fdc8dc5deb3c92bf865e4496b4b311 Fixed in 7.0 with commit 2ba12401cc1f2d970fa2e7d5b15abde3f5abd40d 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-71273 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/realtek/rtw88/main.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/9b5418070ee8468fac9e8bf641c83d46b85bff30 https://git.kernel.org/stable/c/ad9b80ee310ed734482a2e5da874b67f88ac0ef8 https://git.kernel.org/stable/c/1bd90e0a99fdc8dc5deb3c92bf865e4496b4b311 https://git.kernel.org/stable/c/2ba12401cc1f2d970fa2e7d5b15abde3f5abd40d