An issue was discovered in the Linux kernel through 4.17.10. There is an invalid pointer dereference in btrfsrootnode() when mounting a crafted btrfs image, because of a lack of chunk block group mapping validation in btrfsreadblockgroups in fs/btrfs/extent-tree.c, and a lack of empty-tree checks in checkleaf in fs/btrfs/tree-checker.c.