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 7FB6E19E7F7 for ; Tue, 7 Oct 2025 15:20:09 +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=1759850409; cv=none; b=R5kZiH2ytLcDzFqEzS+ShaZ0AUmn7Bxmgv3LPP/DuvS3ZC6PRPGGEynBaQA8pxvlgDVtkjSPZeLupQb2A88qsgPu0T0YCXht4fwEoIOcSPHogOvoogULU1Y1jt8b1bo9dkdfbjArFfKuqbW/kFgpvXQVHAYxsQ33seo51th31NE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850409; c=relaxed/simple; bh=Xbij3c8EWE+Nat38JFGkCODIwKeqOmqhA4sOvazpnP8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=hew9pSvAZPg7PHBlkK+b6W0s2b3NNOVguBZbTU3+epY73lwGPqMZPfwj42T3fBEfxBK3PeKknEs5wyVZE4AuEjAgfaKoAHt2zYIZTy2vv910+G8J7TAXr+L/jW4jlvHPbLat6ge6HzPU9DSF7mr35NbLBqU11kvc5YTw14RHHX0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vVsuzgcM; 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="vVsuzgcM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADFF9C4CEF1; Tue, 7 Oct 2025 15:20:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850409; bh=Xbij3c8EWE+Nat38JFGkCODIwKeqOmqhA4sOvazpnP8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=vVsuzgcMPSVFUiq5ia/VdnkZ6FqD2nYwbhPIGpvKmnDFTAMlNdYSKJtrYeMukatTr F60i3fX7N3N9GPaElWcwFD823MqrsKJxAqXCSZHXFM/zhxGbVGT+PKY/l7yKVK4S6b RhiUlRVaumXsVVR5gaRkhS4xHiZAAZxqVwJLIaeI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50519: nilfs2: replace WARN_ONs by nilfs_error for checkpoint acquisition failure Date: Tue, 7 Oct 2025 17:19:06 +0200 Message-ID: <2025100704-CVE-2022-50519-4c44@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=3106; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ao7Z8CzRxT8jrjIcCaCvHiru4Xnv5nISK3soUtKcVxg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9TNcT/qwecw7p2L4afPfzos7eRqyggzr9P6IlZ18X vdm0VLnjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI7h6GBcfNJn8KuzJz878C hkV+McY6u/5wsDIsmDKfYenMyzYTnJzWWZ3fv+2+x9YXZwE= 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: nilfs2: replace WARN_ONs by nilfs_error for checkpoint acquisition failure If creation or finalization of a checkpoint fails due to anomalies in the checkpoint metadata on disk, a kernel warning is generated. This patch replaces the WARN_ONs by nilfs_error, so that a kernel, booted with panic_on_warn, does not panic. A nilfs_error is appropriate here to handle the abnormal filesystem condition. This also replaces the detected error codes with an I/O error so that neither of the internal error codes is returned to callers. The Linux kernel CVE team has assigned CVE-2022-50519 to this issue. Affected and fixed versions =========================== Fixed in 4.9.331 with commit b63026b5e13040cd5afa11769dd0d9e1504b031a Fixed in 4.14.296 with commit ae16440c44ae2acda6d72aff9d74eccf8967dae5 Fixed in 4.19.262 with commit bf98be80cbe3b4e6c86c36ed00457389aca3eb15 Fixed in 5.4.218 with commit 259c0f68168ac6a598db3486597b10e74d625db0 Fixed in 5.10.148 with commit 8a18fdc5ae8e6d7ac33c6ee0a2e5f9f1414ef412 Fixed in 5.15.74 with commit c0c3d3d3ea41cb5228ee90568bb953f9a56c3227 Fixed in 5.19.16 with commit 090fcfb6edeb9367a915b2749e2bd1f8b48d8898 Fixed in 6.0.2 with commit 5c0776b5bc31de7cd28afb558fae37a20f33602e Fixed in 6.1 with commit 723ac751208f6d6540191689cfbf6c77135a7a1b 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-50519 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/nilfs2/segment.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/b63026b5e13040cd5afa11769dd0d9e1504b031a https://git.kernel.org/stable/c/ae16440c44ae2acda6d72aff9d74eccf8967dae5 https://git.kernel.org/stable/c/bf98be80cbe3b4e6c86c36ed00457389aca3eb15 https://git.kernel.org/stable/c/259c0f68168ac6a598db3486597b10e74d625db0 https://git.kernel.org/stable/c/8a18fdc5ae8e6d7ac33c6ee0a2e5f9f1414ef412 https://git.kernel.org/stable/c/c0c3d3d3ea41cb5228ee90568bb953f9a56c3227 https://git.kernel.org/stable/c/090fcfb6edeb9367a915b2749e2bd1f8b48d8898 https://git.kernel.org/stable/c/5c0776b5bc31de7cd28afb558fae37a20f33602e https://git.kernel.org/stable/c/723ac751208f6d6540191689cfbf6c77135a7a1b