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 229CF2D63F1 for ; Fri, 4 Jul 2025 13:42:46 +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=1751636567; cv=none; b=VMadZGclynmCKjivEaIPLfrJLoWIXXFZx2CoMiMhXUq2bofgsR8QVcQdzb49wmS2n2r7akQyCtW0mk39PYIYDd0U4Eug57SJvYmSqQAvO+7N8sAT0/uNNU5aFt/bZZpC5yj7hlGSV+xOdWLyKkizpLnlQhr8NGJzcXvAq5Dh8tY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751636567; c=relaxed/simple; bh=89QBh5mRutPd5D8bmBXxcKd7jG95flVmnu5Uc1t87Ac=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Yk6Dc1H+RNM16rc9udyPmcMSw0gne+PTYafkE7Btz8AYM7P/cG+wDOX5z73yt6sviiyPcdUR81ku1nO259Y6163dRi96vWes9TzDbv3V0n9W/PWsCQE/IOsPdu29WXVBsaeK+s0N0D0vFDJpgZPZ8ROwqkJeJF4nJUol3AQi7Lg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nN0pblqI; 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="nN0pblqI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B01EC4CEE3; Fri, 4 Jul 2025 13:42:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751636566; bh=89QBh5mRutPd5D8bmBXxcKd7jG95flVmnu5Uc1t87Ac=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nN0pblqINx13eGyxRbv770niu/7JPG1cC7dSDEcxiTt35R7bGBA5gb7Yc/GPK1v4G wzX1VXRyIIUHumcp0ensOt2loEn3YvYu4PyLf/pcm4u+GgCWN9E2ymP5XQeQR2qI2S sTscLOWsI0nlNeP38ozSTY0xjneeatfNmwydgb6k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38199: wifi: ath12k: Fix memory leak due to multiple rx_stats allocation Date: Fri, 4 Jul 2025 15:37:28 +0200 Message-ID: <2025070417-CVE-2025-38199-287e@gregkh> X-Mailer: git-send-email 2.50.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=2362; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YcG2hSUCG+LFk1SKG8AUaG4w1JAFIhshQIp3hUfjG3Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnpN3nPzemKO3RHoYDf+gJTwydJ7rb3Jgfm/NLS28ydz VHexJjXEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNRWs+w4BCv/N6XV7JLvy6I brarYYwU2aG1CCg6323GieipOu+D8pTv5eq/i9s3xRMA 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: Fix memory leak due to multiple rx_stats allocation rx_stats for each arsta is allocated when adding a station. arsta->rx_stats will be freed when a station is removed. Redundant allocations are occurring when the same station is added multiple times. This causes ath12k_mac_station_add() to be called multiple times, and rx_stats is allocated each time. As a result there is memory leaks. Prevent multiple allocations of rx_stats when ath12k_mac_station_add() is called repeatedly by checking if rx_stats is already allocated before allocating again. Allocate arsta->rx_stats if arsta->rx_stats is NULL respectively. 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-38199 to this issue. Affected and fixed versions =========================== Fixed in 6.15.4 with commit 232f962ae5fca98912a719e64b4964a5aec7c99b Fixed in 6.16-rc1 with commit c426497fa2055c8005196922e7d29c41d7e0948a 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-38199 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/mac.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/232f962ae5fca98912a719e64b4964a5aec7c99b https://git.kernel.org/stable/c/c426497fa2055c8005196922e7d29c41d7e0948a