From mboxrd@z Thu Jan 1 00:00:00 1970 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 2D89E215197 for ; Wed, 26 Feb 2025 02:13:25 +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=1740536006; cv=none; b=fNDGkRKF6kdMw0RTlW4CHZiItm3DWyEHVG7Y3J+GZ1goUugKpnIPvQ6bq7SGmnzjuEabaNRbYzt2VGitsiC2zVK7ZIw2A/lECqSShVGoWRHs2PTZGISgHGZkyaXlIXDefQPvY4STOLqkC1QQbYJ6ihBbgRxCbfnL8/kZq8B2ff8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740536006; c=relaxed/simple; bh=RLZ5gjcjT66OFVUHWfNVOPzEdE5tsdn8uIN3KhcZ8NI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=smQrqiNxcM5Z5VcjDJjy8JRLJuzu+Id5Z5x7yqXON87dzzs5o5QnxOPCZLMn7lX996LSLK6wkMeLxf1O290XxYzogQgMED9OnhLty67YR2bD6Qe62ClaNSIyig/pkZaoxv1JIlLGGkLMSZsgZhFuv6HTfwIqS2lxArBpWSt/L2w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=SejD6UN/; 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="SejD6UN/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9A44AC4CEDD; Wed, 26 Feb 2025 02:13:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1740536005; bh=RLZ5gjcjT66OFVUHWfNVOPzEdE5tsdn8uIN3KhcZ8NI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=SejD6UN/k8QX1KojM6dR1VsACCogs2QlxKDEM6x84SsuwSkkjKnus9mwWrqH9VMJE MK4tgXoP4h//2XCilZxjmOMhTlntnUDUuGP0iSZuhDrkt2HO6OcB2jOUDZOeOWDaZY A18tVOomUAvq1Yqx77sx/7p0C+VU7CwbMd0SAF3s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49362: NFSD: Fix potential use-after-free in nfsd_file_put() Date: Wed, 26 Feb 2025 03:10:36 +0100 Message-ID: <2025022644-CVE-2022-49362-3299@gregkh> X-Mailer: git-send-email 2.48.1 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=2019; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=RLZ5gjcjT66OFVUHWfNVOPzEdE5tsdn8uIN3KhcZ8NI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn7yl/0RLhFzJ6gJGfzb+aXXu3Yur2euxqfiNw9pTdVW 94gbNKSjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhIxWOG+aGP3n85FK3msfie cuiOtRYrVx8IWMUwP2HeilmL2FY68sef7prBsnpvxLK93gA= 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 potential use-after-free in nfsd_file_put() nfsd_file_put_noref() can free @nf, so don't dereference @nf immediately upon return from nfsd_file_put_noref(). The Linux kernel CVE team has assigned CVE-2022-49362 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 999397926ab3f78c7d1235cc4ca6e3c89d2769bf and fixed in 5.18.4 with commit 333dcc94ebf53f79f3dc0e7a7c16700bc7ff7e57 Issue introduced in 5.18 with commit 999397926ab3f78c7d1235cc4ca6e3c89d2769bf and fixed in 5.19 with commit b6c71c66b0ad8f2b59d9bc08c7a5079b110bec01 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-49362 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/filecache.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/ada1757b259f353cade47037ee0a0249b4cddad3 https://git.kernel.org/stable/c/261eabe19cb28e4a8587a4442d257b543d7c2d57 https://git.kernel.org/stable/c/333dcc94ebf53f79f3dc0e7a7c16700bc7ff7e57 https://git.kernel.org/stable/c/b6c71c66b0ad8f2b59d9bc08c7a5079b110bec01