{"id":"CVE-2021-46945","state":"PUBLISHED","title":"ext4: always panic when errors=panic is specified","description":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: always panic when errors=panic is specified\n\nBefore commit 014c9caa29d3 (\"ext4: make ext4_abort() use\n__ext4_error()\"), the following series of commands would trigger a\npanic:\n\n1. mount /dev/sda -o ro,errors=panic test\n2. mount /dev/sda -o remount,abort test\n\nAfter commit 014c9caa29d3, remounting a file system using the test\nmount option \"abort\" will no longer trigger a panic.  This commit will\nrestore the behaviour immediately before commit 014c9caa29d3.\n(However, note that the Linux kernel's behavior has not been\nconsistent; some previous kernel versions, including 5.4 and 4.19\nsimilarly did not panic after using the mount option \"abort\".)\n\nThis also makes a change to long-standing behaviour; namely, the\nfollowing series commands will now cause a panic, when previously it\ndid not:\n\n1. mount /dev/sda -o ro,errors=panic test\n2. echo test > /sys/fs/ext4/sda/trigger_fs_error\n\nHowever, this makes ext4's behaviour much more consistent, so this is\na good thing.","publishedAt":"2024-02-27T18:40:31.095Z","updatedAt":"2026-05-11T13:44:56.826Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"014c9caa29d3a44e0de695c99ef18bec3e887d52","status":"affected","lessThan":"64e1eebe2131183174f4fbb6b1491355f96c6cde","versionType":"git"},{"version":"014c9caa29d3a44e0de695c99ef18bec3e887d52","status":"affected","lessThan":"1e9ea8f4637026b8e965128953f2da061ccae9c4","versionType":"git"},{"version":"014c9caa29d3a44e0de695c99ef18bec3e887d52","status":"affected","lessThan":"ac2f7ca51b0929461ea49918f27c11b680f28995","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ext4/super.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.11","versionType":"semver"},{"version":"5.11.20","status":"unaffected","lessThanOrEqual":"5.11.*","versionType":"semver"},{"version":"5.12.3","status":"unaffected","lessThanOrEqual":"5.12.*","versionType":"semver"},{"version":"5.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ext4/super.c"]}],"references":["https://git.kernel.org/stable/c/64e1eebe2131183174f4fbb6b1491355f96c6cde","https://git.kernel.org/stable/c/1e9ea8f4637026b8e965128953f2da061ccae9c4","https://git.kernel.org/stable/c/ac2f7ca51b0929461ea49918f27c11b680f28995"],"weaknesses":[],"ingestedAt":"2026-10-29T19:49:16.371Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/46xxx/CVE-2021-46945.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2021-46945","state":"PUBLISHED","datePublished":"2024-02-27T18:40:31.095Z","dateUpdated":"2026-05-11T13:44:56.826Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-02-25T13:45:52.721Z"},"containers":{"cna":{"title":"ext4: always panic when errors=panic is specified","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\next4: always panic when errors=panic is specified\n\nBefore commit 014c9caa29d3 (\"ext4: make ext4_abort() use\n__ext4_error()\"), the following series of commands would trigger a\npanic:\n\n1. mount /dev/sda -o ro,errors=panic test\n2. mount /dev/sda -o remount,abort test\n\nAfter commit 014c9caa29d3, remounting a file system using the test\nmount option \"abort\" will no longer trigger a panic.  This commit will\nrestore the behaviour immediately before commit 014c9caa29d3.\n(However, note that the Linux kernel's behavior has not been\nconsistent; some previous kernel versions, including 5.4 and 4.19\nsimilarly did not panic after using the mount option \"abort\".)\n\nThis also makes a change to long-standing behaviour; namely, the\nfollowing series commands will now cause a panic, when previously it\ndid not:\n\n1. mount /dev/sda -o ro,errors=panic test\n2. echo test > /sys/fs/ext4/sda/trigger_fs_error\n\nHowever, this makes ext4's behaviour much more consistent, so this is\na good thing."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"014c9caa29d3a44e0de695c99ef18bec3e887d52","status":"affected","lessThan":"64e1eebe2131183174f4fbb6b1491355f96c6cde","versionType":"git"},{"version":"014c9caa29d3a44e0de695c99ef18bec3e887d52","status":"affected","lessThan":"1e9ea8f4637026b8e965128953f2da061ccae9c4","versionType":"git"},{"version":"014c9caa29d3a44e0de695c99ef18bec3e887d52","status":"affected","lessThan":"ac2f7ca51b0929461ea49918f27c11b680f28995","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ext4/super.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.11","versionType":"semver"},{"version":"5.11.20","status":"unaffected","lessThanOrEqual":"5.11.*","versionType":"semver"},{"version":"5.12.3","status":"unaffected","lessThanOrEqual":"5.12.*","versionType":"semver"},{"version":"5.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/ext4/super.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/64e1eebe2131183174f4fbb6b1491355f96c6cde"},{"url":"https://git.kernel.org/stable/c/1e9ea8f4637026b8e965128953f2da061ccae9c4"},{"url":"https://git.kernel.org/stable/c/ac2f7ca51b0929461ea49918f27c11b680f28995"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T13:44:56.826Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.11.20"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.12.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.13"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-06-28T17:01:37.364142Z","id":"CVE-2021-46945","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-06-28T17:01:44.888Z"}},{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/64e1eebe2131183174f4fbb6b1491355f96c6cde","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/1e9ea8f4637026b8e965128953f2da061ccae9c4","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/ac2f7ca51b0929461ea49918f27c11b680f28995","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-04T05:17:43.032Z"}}]}}}