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 9161B4AEF2 for ; Mon, 3 Jun 2024 07:50:52 +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=1717401052; cv=none; b=MYXYKttXgr4xPT0n/fRrWVprYrck4m9Q0COkSgG61Mr02nVFbk5qwxHAhB7OiF2T/KhITQfiKUSXYLvPoyVv686XUHd7EBl418SOqAvbE0VhFvspgfTZBaSNvySLvTeZLX84uCq2wx/Fg3DeFjP9sful0hX4/8OsDQmV83VwPT0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717401052; c=relaxed/simple; bh=amzObNmaDbVFW8Acn9Xkzsevt1rhVl6vwn+JfF7GPIc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LT9FD9gvvq9NpxG22jNBf0a+C1Pye8uaBNL8Hrpnpb5ztectYo5mwB0ZQcxy4rhvr2o9ONX3pmF3GnbPF48WCDUcR7IURbw7n3UmnE6d9Ptpq9IPa9ccS9VeCM5xevAUWKcZ32mzl3mvMBNvyzijt08tsu5MLcbgTUd9nVJZGys= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=sHh/8KS9; 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="sHh/8KS9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B2D59C2BD10; Mon, 3 Jun 2024 07:50:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1717401052; bh=amzObNmaDbVFW8Acn9Xkzsevt1rhVl6vwn+JfF7GPIc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=sHh/8KS9O/2R7iXDpP0aCl6tBNPjcdWvg2eIemmM1h0OiBr6T13pWvFumBB4LjO63 /b+NxS/IlrP+Wt0ZHR0ceNp0sNe1JQCaRL02xD5UX1eWKog9V1/gPBha9IHmvclHBR oE77pPkqrCvjgCLfzkYU/Ufi1iQwzDwTG1Zq9s7o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-36964: fs/9p: only translate RWX permissions for plain 9P2000 Date: Mon, 3 Jun 2024 09:50:46 +0200 Message-ID: <2024060345-CVE-2024-36964-d557@gregkh> X-Mailer: git-send-email 2.45.2 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=2482; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=amzObNmaDbVFW8Acn9Xkzsevt1rhVl6vwn+JfF7GPIc=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmxpVfXylZ1FOeynZ7j0t2d+kzxz/5LhzP29memV3y8u X/b0dnMHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRwz8Z5nveWKjNKrU099ps 70+Hr7MUTn52/hLDXIEnMUcsOY5bz7wY/7h5/bSdLOe7egA= 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: fs/9p: only translate RWX permissions for plain 9P2000 Garbage in plain 9P2000's perm bits is allowed through, which causes it to be able to set (among others) the suid bit. This was presumably not the intent since the unix extended bits are handled explicitly and conditionally on .u. The Linux kernel CVE team has assigned CVE-2024-36964 to this issue. Affected and fixed versions =========================== Fixed in 4.19.314 with commit e90bc596a74b Fixed in 5.4.276 with commit df1962a19978 Fixed in 5.10.217 with commit 5a605930e19f Fixed in 5.15.159 with commit ad4f65328661 Fixed in 6.1.91 with commit ca9b5c81f0c9 Fixed in 6.6.31 with commit e55c601af3b1 Fixed in 6.8.10 with commit 157d468e34fd Fixed in 6.9 with commit cd25e15e57e6 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-36964 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: fs/9p/vfs_inode.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/e90bc596a74bb905e0a45bf346038c3f9d1e868d https://git.kernel.org/stable/c/df1962a199783ecd66734d563caf0fedecf08f96 https://git.kernel.org/stable/c/5a605930e19f451294bd838754f7d66c976a8a2c https://git.kernel.org/stable/c/ad4f65328661392de74e3608bb736fedf3b67e32 https://git.kernel.org/stable/c/ca9b5c81f0c918c63d73d962ed8a8e231f840bc8 https://git.kernel.org/stable/c/e55c601af3b1223a84f9f27f9cdbd2af5e203bf3 https://git.kernel.org/stable/c/157d468e34fdd3cb1ddc07c2be32fb3b02826b02 https://git.kernel.org/stable/c/cd25e15e57e68a6b18dc9323047fe9c68b99290b