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 518924A99C for ; Tue, 27 Feb 2024 18:42:02 +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=1709059322; cv=none; b=DvK9diEx03+gi7B7LQ1yEcvPTXdP2t+2cjank4AdZUzQUJjv3ofs9vTKIRdrPWMqX08faBEzMPNb+YRlPmvecFW60yQ3A1YLvCHWuzmUVm65Cvgt5x77WpewrxA8Hh8dQ2+lebkF6HyMioU9qzVb2wNqYXZN8d11Nq7PBkN+k1g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709059322; c=relaxed/simple; bh=xv5lN+/GWChtu08eh5hw6JdSOKAP5x4AIUacKvMXIek=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d617eNZYVw1l03EAFunSh1zj/PFMXRqp0KXWMKwoNMK/s6+WuMY3GPpWsXBEnXkeYR+S2lRavG7qkyItIFY28d4Q+oGisodzSlBQ8FCWW6BRcAFXpHU32n6XlOB3Sv68TDjU7n4UfPb1/IXOZS1CQMzkwJB1hqhmHiL9kAy27iM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=GNOnNs0v; 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="GNOnNs0v" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C957FC433F1; Tue, 27 Feb 2024 18:42:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709059322; bh=xv5lN+/GWChtu08eh5hw6JdSOKAP5x4AIUacKvMXIek=; h=From:To:Cc:Subject:Date:Reply-to:From; b=GNOnNs0vtcFFJNT3gYK6O96i5ip4eSdwuxB3pLujRARV6DS60b6HnKIA/+/AQoPq9 M5qwBF2MdM28OihovvqyHzjed8V44nnWUW2LyDEf7WtnLu9EtnkfYl3qM2vnNaJmri IM7975AHMiY5ZtBTNlUdUs+pnvb88uQ6yVg03HJc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2021-46945: ext4: always panic when errors=panic is specified Date: Tue, 27 Feb 2024 19:40:47 +0100 Message-ID: <20240227184057.2368370-10-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ext4: always panic when errors=panic is specified Before commit 014c9caa29d3 ("ext4: make ext4_abort() use __ext4_error()"), the following series of commands would trigger a panic: 1. mount /dev/sda -o ro,errors=panic test 2. mount /dev/sda -o remount,abort test After commit 014c9caa29d3, remounting a file system using the test mount option "abort" will no longer trigger a panic. This commit will restore the behaviour immediately before commit 014c9caa29d3. (However, note that the Linux kernel's behavior has not been consistent; some previous kernel versions, including 5.4 and 4.19 similarly did not panic after using the mount option "abort".) This also makes a change to long-standing behaviour; namely, the following series commands will now cause a panic, when previously it did not: 1. mount /dev/sda -o ro,errors=panic test 2. echo test > /sys/fs/ext4/sda/trigger_fs_error However, this makes ext4's behaviour much more consistent, so this is a good thing. The Linux kernel CVE team has assigned CVE-2021-46945 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit 014c9caa29d3 and fixed in 5.11.20 with commit 64e1eebe2131 Issue introduced in 5.11 with commit 014c9caa29d3 and fixed in 5.12.3 with commit 1e9ea8f46370 Issue introduced in 5.11 with commit 014c9caa29d3 and fixed in 5.13 with commit ac2f7ca51b09 Please see https://www.kernel.org or 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-2021-46945 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/ext4/super.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/64e1eebe2131183174f4fbb6b1491355f96c6cde https://git.kernel.org/stable/c/1e9ea8f4637026b8e965128953f2da061ccae9c4 https://git.kernel.org/stable/c/ac2f7ca51b0929461ea49918f27c11b680f28995