An issue was discovered in the Linux kernel through 4.17.10. There is an invalid pointer dereference in io_ctl_map_page() when mounting and operating a crafted btrfs image, because of a lack of block group item validation in check_leaf_item in fs/btrfs/tree-checker.c.
https://usn.ubuntu.com/4118-1/
https://usn.ubuntu.com/4094-1/
https://usn.ubuntu.com/3932-2/
https://usn.ubuntu.com/3932-1/