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 5E8782E62BE for ; Wed, 1 Oct 2025 11:55:11 +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=1759319711; cv=none; b=W2yQXKsMNSJjvU0rY2JazvtfB4ZbGKt7EWssK8ArdUcPlxYFujg5pWpfP94/CwbQdL5RpK1FIcuHvvNdT076B/ErYdRBKBQkuXIj1O+glbuscme+AUx9Yl90wML/omXNbF9Z3sHaV2i3SR8JFe7zzygaSHtwKga0mQwnz7SUWz0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319711; c=relaxed/simple; bh=EiiZ8jzxBUZfbFXm0zH4pGfsiJiIJaz0twQ0tVOGSBU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UoGlxGdtojjrnyPiS/R5mCygYlmxBkxdPnXs8498WW6/CC3FNk6GpDxl3xBX6n/CSL01GmqBYc/JWEtBXJ3BjDwcG0eqERst+CqjhiiCBzvR7q6C28QgYYbwIypdrIyGrK568nfGXsHqGAn6IkzY6gZ3lwRANYeR4sTj8sitqXQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PaaPz9CD; 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="PaaPz9CD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BE61AC4CEF4; Wed, 1 Oct 2025 11:55:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319711; bh=EiiZ8jzxBUZfbFXm0zH4pGfsiJiIJaz0twQ0tVOGSBU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PaaPz9CDIJVqve8xzKppfNtE1NRAZ8sIKxsYk8brhvDagE7rROVjYZpN5oxHxS+MF a5oLfA3VCp5RzAK+N27B6KhnsDWOD8nulSWUbD28b3OTdHVsS74FjnjkNJTmMc2QRm lfaThgVqEO4VreU2oGCmiprbstpgGeq1sq5lrGkM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50455: nfs: fix possible null-ptr-deref when parsing param Date: Wed, 1 Oct 2025 13:45:25 +0200 Message-ID: <2025100118-CVE-2022-50455-24fb@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=2191; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KTZME6Inu084VYzmmtPlHhDBAWwf1fpFTtvMwC0JRMY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3Rfxkl5lU/LV/+tqwRLZdSWcpX89GXRdhl1X5PQx8Q XeuSa3viGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgInYXmCYZ+Qef1r8NPeGCf05 m5p99GJ6jpsfY5ifLBMfyHDYaNbDUrPvG9pq1SOWqiwEAA== 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: nfs: fix possible null-ptr-deref when parsing param According to commit "vfs: parse: deal with zero length string value", kernel will set the param->string to null pointer in vfs_parse_fs_string() if fs string has zero length. Yet the problem is that, nfs_fs_context_parse_param() will dereferences the param->string, without checking whether it is a null pointer, which may trigger a null-ptr-deref bug. This patch solves it by adding sanity check on param->string in nfs_fs_context_parse_param(). The Linux kernel CVE team has assigned CVE-2022-50455 to this issue. Affected and fixed versions =========================== Fixed in 6.0.16 with commit 46819f604557fe7bc39a6c352fd368371aa9cd6e Fixed in 6.1.2 with commit 55513864b418c6453d68aebc36cffcf965342426 Fixed in 6.2 with commit 5559405df652008e56eee88872126fe4c451da67 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-50455 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/nfs/fs_context.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/46819f604557fe7bc39a6c352fd368371aa9cd6e https://git.kernel.org/stable/c/55513864b418c6453d68aebc36cffcf965342426 https://git.kernel.org/stable/c/5559405df652008e56eee88872126fe4c451da67