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 03105314D2C for ; Thu, 18 Sep 2025 16:06: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=1758211581; cv=none; b=FaaMVndd0ivMpzY0mU6Axc/J5qbW97kx7Fmha8vQ70KJClNWAUCGMLh2pSOr9feaaorbTalDkPGzWDESwmpOPLYlpOHQmQgcncKQvg9EzYO2nXF2f84uNg15nyM1/JdTDceN3m5XSAtXvVzWkwIEUTqhY78D0xpNtriXGQVmink= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758211581; c=relaxed/simple; bh=khDyR/P8pFuCfnuJmFA3omjkGzCyrNJDfLdfHOmazsU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZQWXZeDzUAQwsxyrseZKrWkli5HyJkxxSDVXUVYO5nl+0h5e3sK0akz+fLqyy+PYXcQt9qBcNyxbvOyCz4jGI8BEmA2MHwHSqm+CcfrR9ALWz8ynt/6falUQX6alrohLauxpBp9338PlmZZR2mSCTkRtHXJDaL2hwNen5sX8vIw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=q0cB5xgM; 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="q0cB5xgM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7705AC4CEE7; Thu, 18 Sep 2025 16:06:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758211580; bh=khDyR/P8pFuCfnuJmFA3omjkGzCyrNJDfLdfHOmazsU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=q0cB5xgM6a7MmGC5TR9m2ANv56AvT7RNDaACP+vioM5+P67lpw/rNRu8yVYG3Pzx0 FNR7FHPhhof7k9YMm61TfNUMiWYsjeIPdTZ8fUUhvoe2cq5wXZEnjR+7NVCiL0ht43 Dg+BuspjeeanPgEhoIeh7kl2Vg9txTLz8SvKOtzM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50418: wifi: ath11k: mhi: fix potential memory leak in ath11k_mhi_register() Date: Thu, 18 Sep 2025 18:04:08 +0200 Message-ID: <2025091855-CVE-2022-50418-deac@gregkh> X-Mailer: git-send-email 2.51.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=2145; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=vvTPtyKCQNQLMuDThLGRF3f/g32Ue8uzLeeCnnrJ5vI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlndLPTA2MWdglmhG+STk3fsMtm97GAmNjH89JKLqzKE nhzxKOlI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZiGMMwP3dPRW5yx6etIm8K +LrCny/Mr8wVY5ifbOzSsX2b9zdNzpJS689i61P7E0oB 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: ath11k: mhi: fix potential memory leak in ath11k_mhi_register() mhi_alloc_controller() allocates a memory space for mhi_ctrl. When gets some error, mhi_ctrl should be freed with mhi_free_controller(). But when ath11k_mhi_read_addr_from_dt() fails, the function returns without calling mhi_free_controller(), which will lead to a memory leak. We can fix it by calling mhi_free_controller() when ath11k_mhi_read_addr_from_dt() fails. The Linux kernel CVE team has assigned CVE-2022-50418 to this issue. Affected and fixed versions =========================== Fixed in 5.19.17 with commit 72ef896e80b6ec7cdc1dd42577045f8e7c9c32b3 Fixed in 6.0.3 with commit 015ced9eb63b8b19cb725a1d592d150b60494ced Fixed in 6.1 with commit 43e7c3505ec70db3d3c6458824d5fa40f62e3e7b 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-2022-50418 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/ath11k/mhi.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/72ef896e80b6ec7cdc1dd42577045f8e7c9c32b3 https://git.kernel.org/stable/c/015ced9eb63b8b19cb725a1d592d150b60494ced https://git.kernel.org/stable/c/43e7c3505ec70db3d3c6458824d5fa40f62e3e7b