In the Linux kernel, the following vulnerability has been resolved:
btrfs: do not double complete bio on errors during compressed reads
I hit some weird panics while fixing up the error handling from btrfslookupbiosums(). Turns out the compression path will complete the bio we use if we set up any of the compression bios and then return an error, and then btrfssubmitdatabio() will also call bio_endio() on the bio.
Fix this by making btrfssubmitcompressedread() responsible for calling bioendio() on the bio if there are any errors. Currently it was only doing it if we created the compression bios, otherwise it was depending on btrfssubmitdatabio() to do the right thing. This creates the above problem, so fix up btrfssubmitcompressedread() to always call bioendio() in case of an error, and then simply return from btrfssubmitdatabio() if we had to call btrfssubmitcompressed_read().
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49167.json"
}