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 EFE641A9B3D for ; Wed, 26 Feb 2025 01:59:47 +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=1740535188; cv=none; b=M6a2rw5e2wSlMCNCKboqWHKSY11CmZtXZe3QqeBxOjlyE9n7oi29gADvnxAC6x8WbwVzrgswrYLtOYVOaLrPhiFWu95+aOakYIZtvj1fG8qZpyjEdY54XHSpOlD5Tzz1yhON1CsBSVJo6pLZkyo9dGunTl1ukznJbs2kXsbhgDE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740535188; c=relaxed/simple; bh=zEa8naeqNJwfdfu8omDLPrixg6Jx9rx/7O5cjbnZqto=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jZtV+iinVtbChDSPC+OqjyBYEX8Wji5FGG37uYd0OgrpWEqOHokpnRiTJCUaB7rq6bzyyhtylfcxiAgfdOesoKgTd2x2sv2fO3xPYRid7NfHszDs5RyfadTw8snvRgKSIs5AJ6kwpfa39vTlRi4A+2zR0LKC7yEX2YLjaxjixPk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OHONe/4u; 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="OHONe/4u" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C62E4C4CEDD; Wed, 26 Feb 2025 01:59:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740535187; bh=zEa8naeqNJwfdfu8omDLPrixg6Jx9rx/7O5cjbnZqto=; h=From:To:Cc:Subject:Date:Reply-to:From; b=OHONe/4u11UmrjI4EBGPj3RVamupI0dT8AV3J/20SKduUiFLU4FoixrBgWvZDukZF s4oQ87YoBr0k+ewKMAiTB4Mb1df4IneBIhTiz2wp1Bk1OCD2ByoOlHp0CwhxtjXGSl qfGKflPYvPYxkxHw4QQ2VOTIcTxUnuQ5XbiF3oeI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49231: rtw88: fix memory overrun and memory leak during hw_scan Date: Wed, 26 Feb 2025 02:57:16 +0100 Message-ID: <2025022623-CVE-2022-49231-88de@gregkh> X-Mailer: git-send-email 2.48.1 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=2049; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zEa8naeqNJwfdfu8omDLPrixg6Jx9rx/7O5cjbnZqto=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7SvxZrYIF89YL3JjFYmE9fRvP7nePXp3xm/HeKp2Zw /XTg38LO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAijeUMC457PhPkNrDJu3zg Xm9B2V/LxBf/HjHMs1nBOdv5nKCS3bet/ncT310++XNCHgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: rtw88: fix memory overrun and memory leak during hw_scan Previously we allocated less memory than actual required, overwrite to the buffer causes the mm module to complaint and raise access violation faults. Along with potential memory leaks when returned early. Fix these by passing the correct size and proper deinit flow. The Linux kernel CVE team has assigned CVE-2022-49231 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit 10d162b2ed395e69720926b4f8d87f1f25ca920f and fixed in 5.17.2 with commit ec5da191bfcd5fd22b95459b623694f66c1cc10b Issue introduced in 5.17 with commit 10d162b2ed395e69720926b4f8d87f1f25ca920f and fixed in 5.18 with commit d95984b5580dcb8b1c0036577c52b609990a1dab 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-49231 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/fw.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/ec5da191bfcd5fd22b95459b623694f66c1cc10b https://git.kernel.org/stable/c/d95984b5580dcb8b1c0036577c52b609990a1dab