From mboxrd@z Thu Jan 1 00:00:00 1970 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 E98E63E49C for ; Fri, 17 May 2024 11:52:18 +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=1715946739; cv=none; b=tn5eqXhf7WbKn5XNhkuztacCTM9knWWnzPKtgGhV+acW28JGEmmBZgr4rCdycwAtt9NQ850sipa55P4xkC/ewt4wWyJrR2zNIkyplp7OQBcNbMryjSGS/ECRuAz06FcKo6cxtzn40TGV9KXWI529gGTOTDT6k7Km9UXN2eEQ2qU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715946739; c=relaxed/simple; bh=2yWe3reotquJzu6Z0788nkaUls/MgLV7Ix+lDtElbxw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iBPpj3RPWQLkYN9FPgadClyl2bY7ZUw4PCJqA5O6LkWOpTqecr8qq1zZagp/goM1avvtgcaOPdTGzVsYDtUDdwKxRSXJ82J23/ZuFl/BLpgat5gBo9D2QxS8ERIWRQ3ByE6LFpr/k5jmIAZZJ4YiXlnY1K2oRJKPR+AI/ULDMro= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GrbhGRW2; 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="GrbhGRW2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2B004C2BD10; Fri, 17 May 2024 11:52:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1715946738; bh=2yWe3reotquJzu6Z0788nkaUls/MgLV7Ix+lDtElbxw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=GrbhGRW2bTtaroWP0gFA51uGDZ1IiJAdPWoHXGAzijcU72K07keGtILodAXIwXzjY ZDxMLKsfp4v8/5XuUpw7R9gArztfGDfHrkV8cXMRC2GBG4oZ09qroc6C8VSeYXeXfy rPQ40xARb70jVStIDn2+SjwnWWIlPg1Np422Deo4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27410: wifi: nl80211: reject iftype change with mesh ID change Date: Fri, 17 May 2024 13:52:02 +0200 Message-ID: <2024051701-CVE-2024-27410-874a@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=3278; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2yWe3reotquJzu6Z0788nkaUls/MgLV7Ix+lDtElbxw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnuLg8Zn82LaPINMint9qoX9eU7rvPLPqw2QDLp6Iuny y9f/GfcEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPZuoRhwbQKFauzynaH4vmN +R8dKODd3hOxh2EOF5uz5mOFWxfLroU833nI5gbr52/fAA== 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: nl80211: reject iftype change with mesh ID change It's currently possible to change the mesh ID when the interface isn't yet in mesh mode, at the same time as changing it into mesh mode. This leads to an overwrite of data in the wdev->u union for the interface type it currently has, causing cfg80211_change_iface() to do wrong things when switching. We could probably allow setting an interface to mesh while setting the mesh ID at the same time by doing a different order of operations here, but realistically there's no userspace that's going to do this, so just disallow changes in iftype when setting mesh ID. The Linux kernel CVE team has assigned CVE-2024-27410 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.38 with commit 29cbe68c516a and fixed in 4.19.309 with commit d38d31bbbb9d Issue introduced in 2.6.38 with commit 29cbe68c516a and fixed in 5.4.271 with commit 0cfbb26ee5e7 Issue introduced in 2.6.38 with commit 29cbe68c516a and fixed in 5.10.212 with commit 99eb2159680a Issue introduced in 2.6.38 with commit 29cbe68c516a and fixed in 5.15.151 with commit 063715c33b4c Issue introduced in 2.6.38 with commit 29cbe68c516a and fixed in 6.1.81 with commit 930e826962d9 Issue introduced in 2.6.38 with commit 29cbe68c516a and fixed in 6.6.21 with commit 177d574be4b5 Issue introduced in 2.6.38 with commit 29cbe68c516a and fixed in 6.7.9 with commit a2add961a5ed Issue introduced in 2.6.38 with commit 29cbe68c516a and fixed in 6.8 with commit f78c1375339a 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-2024-27410 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/nl80211.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/d38d31bbbb9dc0d4d71a45431eafba03d0bc150d https://git.kernel.org/stable/c/0cfbb26ee5e7b3d6483a73883f9f6157bca22ec9 https://git.kernel.org/stable/c/99eb2159680af8786104dac80528acd5acd45980 https://git.kernel.org/stable/c/063715c33b4c37587aeca2c83cf08ead0c542995 https://git.kernel.org/stable/c/930e826962d9f01dcd2220176134427358d112f2 https://git.kernel.org/stable/c/177d574be4b58f832354ab1ef5a297aa0c9aa2df https://git.kernel.org/stable/c/a2add961a5ed25cfd6a74f9ffb9e7ab6d6ded838 https://git.kernel.org/stable/c/f78c1375339a291cba492a70eaf12ec501d28a8e