A NULL pointer dereference bug was found in the rocker device (emulated ethernet switch) of QEMU. rocker_tlv_parse_nested could return early because of no group ids in the group_tlvs. In such case tlvs is NULL; tlvs[i + 1] in the next for-loop will deref the NULL pointer. References: https://lists.nongnu.org/archive/html/qemu-devel/2023-08/msg04621.html https://gitlab.com/qemu-project/qemu/-/issues/1851