{"id":"CVE-2021-47433","published":"2024-05-22T06:19:30Z","modified":"2026-08-05T08:47:47Z","title":"btrfs: fix abort logic in btrfs_replace_file_extents","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix abort logic in btrfs_replace_file_extents\n\nError injection testing uncovered a case where we'd end up with a\ncorrupt file system with a missing extent in the middle of a file.  This\noccurs because the if statement to decide if we should abort is wrong.\n\nThe only way we would abort in this case is if we got a ret !=\n-EOPNOTSUPP and we called from the file clone code.  However the\nprealloc code uses this path too.  Instead we need to abort if there is\nan error, and the only error we _don't_ abort on is -EOPNOTSUPP and only\nif we came from the clone file code.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0058,"percentile":0.48624,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/0e32a2b85c7d92ece86c17dfef390c5ed79c6378","tags":[]},{"url":"https://git.kernel.org/stable/c/0e309e1152fc34ef75991d9d69b165dbf75bf26c","tags":[]},{"url":"https://git.kernel.org/stable/c/4afb912f439c4bc4e6a4f3e7547f2e69e354108f","tags":[]}],"priority":{"score":15.4,"factors":[{"name":"EPSS percentile","points":9.72},{"name":"CVSS severity","points":5.67}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 8fccebfa534c7984864394fa03608305e4929aae, < 0e32a2b85c7d92ece86c17dfef390c5ed79c6378",">= 8fccebfa534c7984864394fa03608305e4929aae, < 0e309e1152fc34ef75991d9d69b165dbf75bf26c",">= 8fccebfa534c7984864394fa03608305e4929aae, < 4afb912f439c4bc4e6a4f3e7547f2e69e354108f"]},{"vendor":"Linux","product":"Linux","versions":["5.10"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-06-10T18:56:43.265826Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2021-34438","exploited":false,"provenance":"source"}}