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 161621D1519 for ; Mon, 21 Oct 2024 20:13:44 +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=1729541624; cv=none; b=NjD6QJqTZ66stg/E8Dn9nPdzffmdVFkYAbCbqtObabRv2lnuq6qE1FpwsUYDJT6GgbonFUUlXcnYIKmVogQuRhpOuFpuHVZF3PyBKRkEzdeQhz/KjdoSvYCJTOquLipgLBR+7xqowepJRrflE5L8264fYK3J7ajIhBaDoQm52VY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729541624; c=relaxed/simple; bh=i1ElJkp1yS+zuTrBJp/oBvxZiLJ/a3Cpe9vvhFb3Jgk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eN4ID/NMP1w9skITJBy+huLYStr5OBsfXUeEJqTk7GqmV0tKFu/Q/JvJJRiMKRhFjbwV+fNOeIV7F0i5zOjRa1GFkgu6/DxwRJbPMGm5FU5upkairFYTJQG/aD0mjzZP/5aSLQLjzADCY9jnT/HcwCYlHcUXYLUzFdRgG/yiIH8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=NZq8oXIM; 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="NZq8oXIM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8CECCC4CEC3; Mon, 21 Oct 2024 20:13:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729541623; bh=i1ElJkp1yS+zuTrBJp/oBvxZiLJ/a3Cpe9vvhFb3Jgk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=NZq8oXIMdKEgJrz8f0c3Y+VfBZ/eOZZbOETbffm9QK4GHDPav1KRvIuXa2o6b5ZZr CUBv/GFyYnBQakj1CixHTjVSJ/YZY+W6fKhg4Om+PE3/VbqP/x9PrhRbuFV6igPd+/ xpWO7Egc3MAa4kWSi9KURVgy9kNsSsOHFsYI9UIQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49023: wifi: cfg80211: fix buffer overflow in elem comparison Date: Mon, 21 Oct 2024 22:06:55 +0200 Message-ID: <2024102154-CVE-2022-49023-381d@gregkh> X-Mailer: git-send-email 2.47.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=2333; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=i1ElJkp1yS+zuTrBJp/oBvxZiLJ/a3Cpe9vvhFb3Jgk=; b=owGbwMvMwCRo6H6F97bub03G02pJDOliW5RCV07mWnvio/oXN575rY33lLWiWsqVDjW99zkkc /H7RLa4jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIRhzDgjXabXf63sbd88ue NDF7h09DvvLKqQzz7CZdTby6VmzjQc6NAp5G12pUMiX8AQ== 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: wifi: cfg80211: fix buffer overflow in elem comparison For vendor elements, the code here assumes that 5 octets are present without checking. Since the element itself is already checked to fit, we only need to check the length. The Linux kernel CVE team has assigned CVE-2022-49023 to this issue. Affected and fixed versions =========================== Issue introduced in 5.1 with commit 0b8fb8235be8 and fixed in 5.4.226 with commit f5c2ec288a86 Issue introduced in 5.1 with commit 0b8fb8235be8 and fixed in 5.10.158 with commit 9e6b79a3cd17 Issue introduced in 5.1 with commit 0b8fb8235be8 and fixed in 5.15.82 with commit 88a6fe370788 Issue introduced in 5.1 with commit 0b8fb8235be8 and fixed in 6.0.12 with commit 391cb8725536 Issue introduced in 5.1 with commit 0b8fb8235be8 and fixed in 6.1 with commit 9f16b5c82a02 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-49023 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/scan.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/f5c2ec288a865dbe3706b09bed12302e9f6d696b https://git.kernel.org/stable/c/9e6b79a3cd17620d467311b30d56f2648f6880aa https://git.kernel.org/stable/c/88a6fe3707888bd1893e9741157a7035c4159ab6 https://git.kernel.org/stable/c/391cb872553627bdcf236c03ee7d5adb275e37e1 https://git.kernel.org/stable/c/9f16b5c82a025cd4c864737409234ddc44fb166a