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 8B6B317A5AA for ; Fri, 13 Sep 2024 05:31:15 +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=1726205475; cv=none; b=SZOA1f9WvaD1DvJ1ffCifN4agn/5AnM1cfrHqMOIbQfK6dNIWexAA+4/GaYIpN3BlPKqDdkfsTIbTHo/xazTTWfy6tizqYzV2HR7cKv7svCywhZV5GG+Tm8BNXSJtT3HVSpmaCSCPZHK+E/IFiR0L/t+WspHjtqwzpPKLbNeeK8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726205475; c=relaxed/simple; bh=dmmjSuTyHvFLfdmOCbcX9LxwCvYLqN/y3BSdi92XwLQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=K9tn7isfwWksjKHQYdlZKvwaPJRAxXXLCw1rMF/IioLheQ4PoQlFihp81gyDsuBFMGZMj/2fRFMKqgTovj0Un2fVd5ZpQGyfdoh/bzrnukDvg6Srj7JED49ZcZsCumM9ny88hfreLx32QlndhlpuzqonpurrxKzw6PJFzguS7Gg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=UKMASWPh; 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="UKMASWPh" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC84CC4CEC0; Fri, 13 Sep 2024 05:31:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726205475; bh=dmmjSuTyHvFLfdmOCbcX9LxwCvYLqN/y3BSdi92XwLQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=UKMASWPhd+Bke0SMsEFzjqXdhi1Wl/s6VTSll8uo/yA21u4cJWXXyNFFxzSkp/cFO nilvMy+g8L9GGsdU1RtEJHSBTlHPHNKpv8QqdofSaozLNysUw1D4Nsvj54zbZ6Tvsr mv1MH5KNSPCE9LrDEyPQpgsJg6Ylwt5nybEMrJIc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46690: nfsd: fix nfsd4_deleg_getattr_conflict in presence of third party lease Date: Fri, 13 Sep 2024 07:30:51 +0200 Message-ID: <2024091339-CVE-2024-46690-38b2@gregkh> X-Mailer: git-send-email 2.46.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=2138; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=dmmjSuTyHvFLfdmOCbcX9LxwCvYLqN/y3BSdi92XwLQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmPz/7fnpF75+PzdWs2ZW4UMvt4m7OxZeHr2CfZ7+/M5 Xq62uqDSkcsC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBM5EIPw3xvvRkOUS8lz9jx 663P6KxczbBX4C/D/IQnl1X5f1359Mh8+ct1TsYTb/d/jQYA 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: nfsd: fix nfsd4_deleg_getattr_conflict in presence of third party lease It is not safe to dereference fl->c.flc_owner without first confirming fl->fl_lmops is the expected manager. nfsd4_deleg_getattr_conflict() tests fl_lmops but largely ignores the result and assumes that flc_owner is an nfs4_delegation anyway. This is wrong. With this patch we restore the "!= &nfsd_lease_mng_ops" case to behave as it did before the change mentioned below. This is the same as the current code, but without any reference to a possible delegation. The Linux kernel CVE team has assigned CVE-2024-46690 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit c5967721e106 and fixed in 6.10.8 with commit 1b46a871e980 Issue introduced in 6.9 with commit c5967721e106 and fixed in 6.11-rc6 with commit 40927f3d0972 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-46690 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/nfsd/nfs4state.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/1b46a871e980e3daa16fd5e77539966492e8910a https://git.kernel.org/stable/c/40927f3d0972bf86357a32a5749be71a551241b6