In the Linux kernel, the following vulnerability has been resolved:
dm stats: check for and propagate alloc_percpu failure
Check allocprecpu()'s return value and return an error from dmstatsinit() if it fails. Update allocdev() to fail if dmstatsinit() does.
Otherwise, a NULL pointer dereference will occur in dmstatscleanup() even if dm-stats isn't being actively used.