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 A68174207A for ; Sat, 2 Mar 2024 21:55:19 +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=1709416519; cv=none; b=JiJzrwOuk3Old4i7zE1GkG7nl5gZcVNyW5sM2G2ZGOTzoj50f7GFWljOI9/Qad6QFtAUrhMGSJB6nxM5ksPX+0wSxanjwDAR6DQH8f4OcrMboHPHjRyYA2bTIW/+drkr5sDxT4sbd0J3gAabGRTJ5v/5Ses+cATxW7C1AbIq40A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709416519; c=relaxed/simple; bh=JBhGr7aN+wCooHcxC/3anaV+HgSn8yz5UUvrTaAh4ZE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qb8COVe3E/O4nYdmyEIWo4neygg+SI8f5KeYwEEqkOCQJcvZdn4AzfcI+/jMBB9PvxclvHqkDcaKQSZiy+VWNRst3S4s0E+OlTg1ZULDVBDaEDJFwkpufVAdNeLAUZ0I2nVz9dNBRJd3WQ/jhuBuXUpZTU7qhlNlyvXbkUJYd5E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hzujsH8U; 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="hzujsH8U" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 24631C43390; Sat, 2 Mar 2024 21:55:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709416519; bh=JBhGr7aN+wCooHcxC/3anaV+HgSn8yz5UUvrTaAh4ZE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hzujsH8UiZroLKTMb3pvb8a9UZ354DoD0zDz6OMG0Ud7ccp/B2Ql1EGipPgkwJLxM xvMYUaTq0BUx7dzZecllHkhvHW6eD4qzGXOesFEnsJngVIQIoEQG1WyrtOAMpZRQZm 7vJ3BzcPpK2Ka28DvsOiWBNNj2hPZCIqgnIitXJk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52530: wifi: mac80211: fix potential key use-after-free Date: Sat, 2 Mar 2024 22:53:14 +0100 Message-ID: <2024030255-CVE-2023-52530-ebf0@gregkh> X-Mailer: git-send-email 2.44.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=2381; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JBhGr7aN+wCooHcxC/3anaV+HgSn8yz5UUvrTaAh4ZE=; b=owGbwMvMwCRo6H6F97bub03G02pJDKmP52/fXF5+KpDxQCr/T/XC46+EvIueeTulcy4uemsv0 zlPUPlMRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkrzfDgs5J6+3mlRn+bwmp WjXN6exn+R3XTBnm6XLJSlY8tby7UJeZPU/hdums4EwuAA== 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: mac80211: fix potential key use-after-free When ieee80211_key_link() is called by ieee80211_gtk_rekey_add() but returns 0 due to KRACK protection (identical key reinstall), ieee80211_gtk_rekey_add() will still return a pointer into the key, in a potential use-after-free. This normally doesn't happen since it's only called by iwlwifi in case of WoWLAN rekey offload which has its own KRACK protection, but still better to fix, do that by returning an error code and converting that to success on the cfg80211 boundary only, leaving the error for bad callers of ieee80211_gtk_rekey_add(). The Linux kernel CVE team has assigned CVE-2023-52530 to this issue. Affected and fixed versions =========================== Issue introduced in 4.14 with commit fdf7cb4185b6 and fixed in 6.1.57 with commit 2f4e16e39e4f Issue introduced in 4.14 with commit fdf7cb4185b6 and fixed in 6.5.7 with commit 65c72a720170 Issue introduced in 4.14 with commit fdf7cb4185b6 and fixed in 6.6 with commit 31db78a4923e Please see https://www.kernel.org or 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-2023-52530 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/cfg.c net/mac80211/key.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/2f4e16e39e4f5e78248dd9e51276a83203950b36 https://git.kernel.org/stable/c/65c72a7201704574dace708cbc96a8f367b1491d https://git.kernel.org/stable/c/31db78a4923ef5e2008f2eed321811ca79e7f71b