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 83A3712F389 for ; Tue, 21 May 2024 14:21:26 +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=1716301286; cv=none; b=Y2kWcxrIKeGDBFMyJVwsjtDUVYlNW/1x/QjM1+vCuSw9V420f2OPoOfKmsDTxlbkWH8dr3DHqSrazLb5/9GSp+rpe3iKDgvFTk9Gkxic+MGi7yVSNGZl7tVHsYkzIY+6HZabu7UP7YtH+BMpj+FnSgTt6XTYjfive54w2s14Gz0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716301286; c=relaxed/simple; bh=d8r/8qzFIfjCIvww8ayxLm+XZ8BSBDGwMPNfbFi0BCI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=D0A7C1ieMCxagVEcRbyuG9PoqIdmqX8J1ypUw/IehqJAmCK9Qx3hLeDV9aOTdjxkmf6Azr8jceRXjwtWf+QxATg2IxphLaUn2+rJfbFGPourwP8t6JTKyO4VEiisvGB+kVUg+XB+4nJPOLNXUkrmXZFGtjYYMfGC6WhwQPlli7Q= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=nhEmfX6C; 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="nhEmfX6C" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0B286C2BD11; Tue, 21 May 2024 14:21:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716301286; bh=d8r/8qzFIfjCIvww8ayxLm+XZ8BSBDGwMPNfbFi0BCI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=nhEmfX6C367NH7APATysJGRRf1E3wMciTyy6cuFNIj0wpzntk/uob9c0SdAJjLNJI xxxnmYFQCqm+ngAO0Q+OrB6fd8qumryNsm2dp8wat9mdD9PNGoIf2G9rB9cmDsmPBB L1E1fBqBSstoxxRaLKXXwu6hW6yzQ/BZBmpGnQ7I= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-47251: mac80211: fix skb length check in ieee80211_scan_rx() Date: Tue, 21 May 2024 16:20:05 +0200 Message-ID: <2024052144-CVE-2021-47251-8504@gregkh> X-Mailer: git-send-email 2.45.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=2035; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=d8r/8qzFIfjCIvww8ayxLm+XZ8BSBDGwMPNfbFi0BCI=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+axtaf9W5/LjfzmD7xtchlvN2AiMLuwDrepeCnR0BP YKX+391xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwETmbWdY0FIs+1o8Nqfmumeo O6dY54oJtSerGOZHfem59WL6QqmWiLUL3ujfE9T14doMAA== 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: mac80211: fix skb length check in ieee80211_scan_rx() Replace hard-coded compile-time constants for header length check with dynamic determination based on the frame type. Otherwise, we hit a validation WARN_ON in cfg80211 later. [style fixes, reword commit message] The Linux kernel CVE team has assigned CVE-2021-47251 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10 with commit cd418ba63f0c and fixed in 5.10.46 with commit 5a1cd67a801c Issue introduced in 5.10 with commit cd418ba63f0c and fixed in 5.12.13 with commit d1b949c70206 Issue introduced in 5.10 with commit cd418ba63f0c and fixed in 5.13 with commit e298aa358f0c 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-2021-47251 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/mac80211/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/5a1cd67a801cf5ef989c4783e07b86a25b143126 https://git.kernel.org/stable/c/d1b949c70206178b12027f66edc088d40375b5cb https://git.kernel.org/stable/c/e298aa358f0ca658406d524b6639fe389cb6e11e