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 1CD5E1EFFB3 for ; Thu, 1 May 2025 14:16:48 +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=1746109008; cv=none; b=EZUj38kiqd89KyO/Ft0rtY4IyIjWpJNDEROqDRXKao7GHa+r5GpnqTVlhACEwZaDuVZ4e7/X1aXTYsiNTMcu0rmrcyGUgMWOagEZ8JY9ecvZk2P+ZBQklEt8o+vDIGBTuPeLn2riSU6Tix1OwhxCk3qKIfBL8HWS/EcajmnhbH4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746109008; c=relaxed/simple; bh=tdJgWwHpBwMib+AK0GeC9odxX+QfNbo51dyXl1q8Lzs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GP05+lbzReB2Jcbp7kK7CQeT1MhuCioltiHHtcpQLYkb5a7SEwUWlWkio85xcrItST6Dj30G57rrnUf3TQ9LYPu5852YdOspnL7WgNfpK8crSr7NPX2zYs1gZIiGuzyyM9/YQeXMH32OsAXWNVmUHOpakoq+Z182bF1xnuA4Q1w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZbhSkUP7; 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="ZbhSkUP7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8E1FCC4CEEF; Thu, 1 May 2025 14:16:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746109008; bh=tdJgWwHpBwMib+AK0GeC9odxX+QfNbo51dyXl1q8Lzs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ZbhSkUP7nvuoOuJ0+22P+6eOr05cfdJSlSzF8D878M4RhKllIxt40u6A1Vo/Kte8e CAwvm8Gt7erKYqwhC5FDw5ouxmasL7gnAqQ7fRvpZ/RKeNelR+L8DV8+3hnulSibLD xMYnfAVsKyhBYISX0uskRCcHGWGJqpZnMgal2Pk8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49881: wifi: cfg80211: fix memory leak in query_regdb_file() Date: Thu, 1 May 2025 16:11:11 +0200 Message-ID: <2025050154-CVE-2022-49881-3caa@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=2896; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zCh5I6QYskUeDpI5HtWOpMlIUb0nHQbRUGEnId12frQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDZu8ZXZtCbfadm/mhaCerZoLJBuaD5Wm31Re3WD5w 7Z5xn7rjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIXyLDgmNWVx34nkldFf9R +rBtrdtM/oNCmQzznfMfPuvdoOchKhP2Yda9mmey3GF7AQ== 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: cfg80211: fix memory leak in query_regdb_file() In the function query_regdb_file() the alpha2 parameter is duplicated using kmemdup() and subsequently freed in regdb_fw_cb(). However, request_firmware_nowait() can fail without calling regdb_fw_cb() and thus leak memory. The Linux kernel CVE team has assigned CVE-2022-49881 to this issue. Affected and fixed versions =========================== Issue introduced in 4.15 with commit 007f6c5e6eb45c81ee89368a5f226572ae638831 and fixed in 4.19.267 with commit 219446396786330937bcd382a7bc4ccd767383bc Issue introduced in 4.15 with commit 007f6c5e6eb45c81ee89368a5f226572ae638831 and fixed in 5.4.225 with commit 0ede1a988299e95d54bd89551fd635980572e920 Issue introduced in 4.15 with commit 007f6c5e6eb45c81ee89368a5f226572ae638831 and fixed in 5.10.155 with commit e1e12180321f416d83444f2cdc9259e0f5093d35 Issue introduced in 4.15 with commit 007f6c5e6eb45c81ee89368a5f226572ae638831 and fixed in 5.15.79 with commit 38c9fa2cc6bf4b6e1a74057aef8b5cffd23d3264 Issue introduced in 4.15 with commit 007f6c5e6eb45c81ee89368a5f226572ae638831 and fixed in 6.0.9 with commit e9b5a4566d5bc71cc901be50d1fa24da00613120 Issue introduced in 4.15 with commit 007f6c5e6eb45c81ee89368a5f226572ae638831 and fixed in 6.1 with commit 57b962e627ec0ae53d4d16d7bd1033e27e67677a 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-49881 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: net/wireless/reg.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/219446396786330937bcd382a7bc4ccd767383bc https://git.kernel.org/stable/c/0ede1a988299e95d54bd89551fd635980572e920 https://git.kernel.org/stable/c/e1e12180321f416d83444f2cdc9259e0f5093d35 https://git.kernel.org/stable/c/38c9fa2cc6bf4b6e1a74057aef8b5cffd23d3264 https://git.kernel.org/stable/c/e9b5a4566d5bc71cc901be50d1fa24da00613120 https://git.kernel.org/stable/c/57b962e627ec0ae53d4d16d7bd1033e27e67677a