In the Linux kernel, the following vulnerability has been resolved: mmc: mmctest: Fix NULL dereference on allocation failure If the "test->highmem = allocpages()" allocation fails then calling _freepages(test->highmem) will result in a NULL dereference. Also change the error code to -ENOMEM instead of returning success.