{"id":"CVE-2022-49167","published":"2025-02-26T01:55:26Z","modified":"2026-08-05T08:54:11Z","title":"btrfs: do not double complete bio on errors during compressed reads","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: do not double complete bio on errors during compressed reads\n\nI hit some weird panics while fixing up the error handling from\nbtrfs_lookup_bio_sums().  Turns out the compression path will complete\nthe bio we use if we set up any of the compression bios and then return\nan error, and then btrfs_submit_data_bio() will also call bio_endio() on\nthe bio.\n\nFix this by making btrfs_submit_compressed_read() responsible for\ncalling bio_endio() on the bio if there are any errors.  Currently it\nwas only doing it if we created the compression bios, otherwise it was\ndepending on btrfs_submit_data_bio() to do the right thing.  This\ncreates the above problem, so fix up btrfs_submit_compressed_read() to\nalways call bio_endio() in case of an error, and then simply return from\nbtrfs_submit_data_bio() if we had to call\nbtrfs_submit_compressed_read().","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00272,"percentile":0.19543,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/4a4ceb2b990771c374d85d496a1a45255dde48e3","tags":[]},{"url":"https://git.kernel.org/stable/c/987b5df1d10355d377315a26e7fb6c72ded83c9f","tags":[]},{"url":"https://git.kernel.org/stable/c/f9f15de85d74e7eef021af059ca53a15f041cdd8","tags":[]}],"priority":{"score":9.4,"factors":[{"name":"EPSS percentile","points":3.91},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 86ccbb4d2a2af4109430df518c995a4f7d14dfd2, < 4a4ceb2b990771c374d85d496a1a45255dde48e3",">= 86ccbb4d2a2af4109430df518c995a4f7d14dfd2, < 987b5df1d10355d377315a26e7fb6c72ded83c9f",">= 86ccbb4d2a2af4109430df518c995a4f7d14dfd2, < f9f15de85d74e7eef021af059ca53a15f041cdd8"]},{"vendor":"Linux","product":"Linux","versions":["5.16"]}],"euvd":{"id":"EUVD-2022-55058","exploited":false,"provenance":"source"}}