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 9E768130A77 for ; Wed, 17 Apr 2024 09:44:42 +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=1713347082; cv=none; b=hDBPYHKLn/I/mHnBOUlyJNG62hLg+x1zZknqmOzs5Ozui9qQ38MsaLmFq5zC2jErca4xIWb5q3OU4tdMr8V+UAXBwAzGa4/YkcEyOZgNw7yDh5RNeTKrh0OfKSog2bFFGnT3bmu9YxvKVTdi4g+2Rcw2sxzYiZNWexpFE8KkPOo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713347082; c=relaxed/simple; bh=9t5CpIJNBcZ/PI04lcgcI2Z9v3b34ZDgaXS8LD9CEVM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=e8XSEU2HjWNvuYf29MWfoAG+igAYkWF5ZPPTbYmOfrOoH113nZ5hW2RZknqqGgJlS53p8Mad/IswmUqJ01pC7C7ILVp8QdcxncQTBHcU+7zqRmUz8jVeoHW/LwdecylpqjdUaTb6oET40Y0s5e6iPUuEy3sGPEKlhbpHccGmnBE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vDV2huCj; 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="vDV2huCj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 23196C072AA; Wed, 17 Apr 2024 09:44:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713347082; bh=9t5CpIJNBcZ/PI04lcgcI2Z9v3b34ZDgaXS8LD9CEVM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vDV2huCjNNciYBwCIshTfNDZzraLyAJX57AtPHJVQOO/B0DluFeGOoqwMCI55SCyo RZwD4XDiwzaTy+bCmNTb8ruiE87e+Uc66mA+f0/jqAJXD9VeMJaonUa3bwqbtunty2 eQsmsgu+p6VK1vZfg7Wds3fPBBuv7DqRQ4FL67t4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26822: smb: client: set correct id, uid and cruid for multiuser automounts Date: Wed, 17 Apr 2024 11:44:05 +0200 Message-ID: <2024041702-CVE-2024-26822-04b5@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=2134; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9t5CpIJNBcZ/PI04lcgcI2Z9v3b34ZDgaXS8LD9CEVM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnyMx/NKNnhyn6N7WTOESeLG0I3ttypfZy+J7g9O6Dvv 8KbuRNcO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAibx8zzLO0kroiaGh6bNa2 NR8v3d9S9E07mZ9hvg/fL+HtM76FZyhOSZoxX4TT0nHtJAA= 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: smb: client: set correct id, uid and cruid for multiuser automounts When uid, gid and cruid are not specified, we need to dynamically set them into the filesystem context used for automounting otherwise they'll end up reusing the values from the parent mount. The Linux kernel CVE team has assigned CVE-2024-26822 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 9fd29a5bae6e and fixed in 6.6.18 with commit c2aa2718cda2 Issue introduced in 6.2 with commit 9fd29a5bae6e and fixed in 6.7.6 with commit 7590ba9057c6 Issue introduced in 6.2 with commit 9fd29a5bae6e and fixed in 6.8 with commit 4508ec173570 Issue introduced in 5.15.124 with commit c8117ac42303 Issue introduced in 6.1.54 with commit 60e3318e3e90 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-26822 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/smb/client/namespace.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/c2aa2718cda2d56b4a551cb40043e9abc9684626 https://git.kernel.org/stable/c/7590ba9057c6d74c66f3b909a383ec47cd2f27fb https://git.kernel.org/stable/c/4508ec17357094e2075f334948393ddedbb75157