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 30A891E3DF2 for ; Mon, 15 Sep 2025 14:46:44 +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=1757947604; cv=none; b=rfyuNNoyGWum+qnD/tfEupbMEeEFlysq6E9PPdOBmDpxOaeTpfISxSBCKWJAQ0MY5fa42/o/tvDJ9isEAr05uNhsdPODOA9DuVAi3wjoLvGZgZzi8bVkkmiSYCgstRuSYYmItyxsC9mxz1ZZi+H87YzKQVXIEKbjasyJjh/xGjU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757947604; c=relaxed/simple; bh=Fact8oLuhZLh1cz5Ql9km4L/WgPAZj18Bd/N2Y40DDI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hc1CmZmIMvKxOSlEjAHCRdqeS3D4IyiDZSGmshatXIS4MJnv99V5J37JhWQW5U+Xw3q8hWxqWOPs0fwPVg3a/jMnwzHzZ652TXUujWZj701G2OHxkWWyQ/zh4bdpFVdUs+9Z/y3kTNzyl+dwhKw9B9DmdhL1b/Jby2R/iDcY1OY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dXkDaYiY; 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="dXkDaYiY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5296EC4CEF1; Mon, 15 Sep 2025 14:46:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757947604; bh=Fact8oLuhZLh1cz5Ql9km4L/WgPAZj18Bd/N2Y40DDI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=dXkDaYiYS1qC+qVhieC6sLwjAWWebbl/Q3G5TBFsP45KuE45XyyfLEJlzHzN8hWh0 Pt6ZZrlIx7BPtyapKzcESvakMiAgRFkca7RKl3NA67MiF78Lop00oTNuwjTVP0CCPo owuGNUGWwtQd+zF6wet4pIiC6ZqJNW4zFDsW9VNU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50302: lockd: set other missing fields when unlocking files Date: Mon, 15 Sep 2025 16:46:04 +0200 Message-ID: <2025091558-CVE-2022-50302-89ee@gregkh> X-Mailer: git-send-email 2.51.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=2525; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zMaQX0OkgqRqPtje0bSv2aN4CAUtKoIbPHgnZ7H67+0=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkn1JbtCVjSL6Omk3Zg6dGv/7nZl8abO4R9v+8Qc3f5w zRV49VzOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAirysY5ucudX54ujT6os69 P76rpwnemDx30Q+GubLVC/tevOZgLp6k488bFxJlpPzrAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: lockd: set other missing fields when unlocking files vfs_lock_file() expects the struct file_lock to be fully initialised by the caller. Re-exported NFSv3 has been seen to Oops if the fl_file field is NULL. The Linux kernel CVE team has assigned CVE-2022-50302 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15.56 with commit 9c3eef773cf4a8a18f959234bbb4c0a55c31ab71 and fixed in 5.15.86 with commit 95d42a8d3d4ae84a0bd3ee23e1fee240cdf0a9f0 Issue introduced in 5.19 with commit aec158242b87a43d83322e99bc71ab4428e5ab79 and fixed in 6.0.16 with commit 688575aef211b0986fc51010116f5888a99d76a2 Issue introduced in 5.19 with commit aec158242b87a43d83322e99bc71ab4428e5ab79 and fixed in 6.1.2 with commit d7aa9f7778316beb690f6e2763b6d672ad8b256f Issue introduced in 5.19 with commit aec158242b87a43d83322e99bc71ab4428e5ab79 and fixed in 6.2 with commit 18ebd35b61b4693a0ddc270b6d4f18def232e770 Issue introduced in 5.18.13 with commit 58c3f48a540b821b3253e2dc31c8fa237293ffc9 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-2022-50302 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/lockd/svcsubs.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/31c93ee5f1e4dc278b562e20f3c3274ac34997f3 https://git.kernel.org/stable/c/95d42a8d3d4ae84a0bd3ee23e1fee240cdf0a9f0 https://git.kernel.org/stable/c/688575aef211b0986fc51010116f5888a99d76a2 https://git.kernel.org/stable/c/d7aa9f7778316beb690f6e2763b6d672ad8b256f https://git.kernel.org/stable/c/18ebd35b61b4693a0ddc270b6d4f18def232e770