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 586D72BCF45 for ; Wed, 18 Jun 2025 11:16:26 +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=1750245386; cv=none; b=g+85O9pkhn8Oip8JgY1KzVpNfGjLU/oTkSR0lAOdLJKKa8b2PPTZ9O573RfdUWUa7fmRDca+mRbhRW8HeJUYCnRSSYdBiUeGlAek2gOWLF5ohFvxGQ3UoRRaRI6nqblClhneV2tflNk4+EufXc5CBDZ9RyG7ZCJS2qJP/wlLGNo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245386; c=relaxed/simple; bh=lvKmUyRbZFjSvwATMxBZWc5YxkujrLD1DDhVWCHlG7o=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fnnAm4jJZ/ng4in4b9qOJZ7JcRQPS41OPbj5/F9s2BkGk+om53rVn9806Qvtv2yMF91p0Fs/DlGidWEHdwidR9onEfKWaDt+6IW9pT5brOdZ+D+XGTBZGCGZsgZIWkee3153TO8V2Ml3UvQ8tM4uMLKXWNwMPZHYJ1zgetQyFBQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=YfEmOcdp; 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="YfEmOcdp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87E4BC4CEE7; Wed, 18 Jun 2025 11:16:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245385; bh=lvKmUyRbZFjSvwATMxBZWc5YxkujrLD1DDhVWCHlG7o=; h=From:To:Cc:Subject:Date:Reply-to:From; b=YfEmOcdpBYm41rCldBVeeJAfS/rEmB9hihU4pCHWlK5UPFwAMgCCBixmuR2W1JVw3 Dt3NYH/gtJrcOA7G0GMI9f2Z/2veTKs2BTAmofMwc0zlScyisKe1yE7gvKBQ1iyrmf 4PCK7tSTwA2tSV96f6KnARRT6zw/fNwLQ3uSWNvY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50217: fuse: write inode in fuse_release() Date: Wed, 18 Jun 2025 13:04:42 +0200 Message-ID: <2025061846-CVE-2022-50217-b559@gregkh> X-Mailer: git-send-email 2.49.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=2301; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=F59eTHkhBlbWuc2re7Ljryp2b7nuTHCu/ZgTJzkzb18=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc2at5H58qNGB7wzL1mKp2QYGP3f8dOFX5zJbotu/R n++xlPPjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIjwDD/LSegw5HD3TevMW+ 98Tq092ff33Jfcowz0DE8C1viErEglbdvoRdX2ynm3xwBQA= 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: fuse: write inode in fuse_release() A race between write(2) and close(2) allows pages to be dirtied after fuse_flush -> write_inode_now(). If these pages are not flushed from fuse_release(), then there might not be a writable open file later. So any remaining dirty pages must be written back before the file is released. This is a partial revert of the blamed commit. The Linux kernel CVE team has assigned CVE-2022-50217 to this issue. Affected and fixed versions =========================== Issue introduced in 5.16 with commit 36ea23374d1f7b6a9d96a2b61d38830fdf23e45d and fixed in 5.18.18 with commit 5ccb0420b7c9334ab8122037847101931b899301 Issue introduced in 5.16 with commit 36ea23374d1f7b6a9d96a2b61d38830fdf23e45d and fixed in 5.19.2 with commit 4bd9d5d20f344d015422969302d12653c903c271 Issue introduced in 5.16 with commit 36ea23374d1f7b6a9d96a2b61d38830fdf23e45d and fixed in 6.0 with commit 035ff33cf4db101250fb980a3941bf078f37a544 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-50217 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/fuse/file.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/5ccb0420b7c9334ab8122037847101931b899301 https://git.kernel.org/stable/c/4bd9d5d20f344d015422969302d12653c903c271 https://git.kernel.org/stable/c/035ff33cf4db101250fb980a3941bf078f37a544