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 8BD6413D8A0 for ; Thu, 1 May 2025 12:58:59 +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=1746104339; cv=none; b=NKtWYqOTJpwPxrjqY/j8yZRCNlxZm8S7IujoE1pUCpV/pKwiYtiWju4niabBLqWPh1sDWgRqkkM6srBTti3TK47heoQOOmIdWmteEducQRHFGZkxsIO0IVPEADdhwP51NEur6zqb8ijqkNvTJimep7B38J5N2pwsXMq7ESpFQ70= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746104339; c=relaxed/simple; bh=4lpAK1CA0bQvADgiiNPS29WTbLphd1Xa7GxU/PstKDM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bAoBZIdUUWgZNvZWtkndBoUdPonEbPMtAywfftMMQ1rdI307gtm23aRzA/oBb68cleaAwSa1EXXnekegHGcO9FYmTOmDMFADRsvhvFhbyz8gFl06UguiDs34Js089N+UJUofm/fAOXTR0IaWENxbMwVpsWEVSGkTtoZUJJS1zUY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XJnpXJTB; 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="XJnpXJTB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E7249C4CEE3; Thu, 1 May 2025 12:58:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746104339; bh=4lpAK1CA0bQvADgiiNPS29WTbLphd1Xa7GxU/PstKDM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XJnpXJTBdHXYDIsjMXgVGsPKGioc/z4Rs8lG+xKhmyf9RuEzfWPeZ2h7U222o8KtV xdtmTqqEYp5OPJCmvriXg4ddyFQt49A8WTHICaUiZ9Ou1QJSMi7gR4MOkjsrUuTvMM NoAsisJjTkwTeiWJl6WDY2HTuePuYCY5WfislK08= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37743: wifi: ath12k: Avoid memory leak while enabling statistics Date: Thu, 1 May 2025 14:56:49 +0200 Message-ID: <2025050134-CVE-2025-37743-35a7@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3116; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6h2C/MkxPYWM28spGbu9yQM5tLeSd/S5KVNvg0gMrWo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnC+U0cTi7X23XM9gSuzZDI46vTif1iysFvUPf61uVrF 2YdsnXpiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIkIhzLMD/y26c7ppX+yr+bp 8BmeV/6lEho+i2FBg/H8/ysnPj3t0iVZ35RR2bszwNgQAA== 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: ath12k: Avoid memory leak while enabling statistics Driver uses monitor destination rings for extended statistics mode and standalone monitor mode. In extended statistics mode, TLVs are parsed from the buffer received from the monitor destination ring and assigned to the ppdu_info structure to update per-packet statistics. In standalone monitor mode, along with per-packet statistics, the packet data (payload) is captured, and the driver updates per MSDU to mac80211. When the AP interface is enabled, only extended statistics mode is activated. As part of enabling monitor rings for collecting statistics, the driver subscribes to HAL_RX_MPDU_START TLV in the filter configuration. This TLV is received from the monitor destination ring, and kzalloc for the mon_mpdu object occurs, which is not freed, leading to a memory leak. The kzalloc for the mon_mpdu object is only required while enabling the standalone monitor interface. This causes a memory leak while enabling extended statistics mode in the driver. Fix this memory leak by removing the kzalloc for the mon_mpdu object in the HAL_RX_MPDU_START TLV handling. Additionally, remove the standalone monitor mode handlings in the HAL_MON_BUF_ADDR and HAL_RX_MSDU_END TLVs. These TLV tags will be handled properly when enabling standalone monitor mode in the future. Tested-on: QCN9274 hw2.0 PCI WLAN.WBE.1.3.1-00173-QCAHKSWPL_SILICONZ-1 Tested-on: WCN7850 hw2.0 PCI WLAN.HMT.1.0.c5-00481-QCAHMTSWPL_V1.0_V2.0_SILICONZ-3 The Linux kernel CVE team has assigned CVE-2025-37743 to this issue. Affected and fixed versions =========================== Fixed in 6.14.3 with commit 286bab0fc7b9db728dab8c63cadf6be9b3facf8c Fixed in 6.15-rc1 with commit ecfc131389923405be8e7a6f4408fd9321e4d19b 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-37743 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/ath/ath12k/dp_mon.c drivers/net/wireless/ath/ath12k/hal_rx.h 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/286bab0fc7b9db728dab8c63cadf6be9b3facf8c https://git.kernel.org/stable/c/ecfc131389923405be8e7a6f4408fd9321e4d19b