In the Linux kernel, the following vulnerability has been resolved:
usb: xhci: Add error handling in xhcimapurbfordma
Currently xhcimapurbfordma() creates a temporary buffer and copies the SG list to the new linear buffer. But if the kzallocnode() fails, then the following sgpcopytobuffer() can lead to crash since it tries to memcpy to NULL pointer.
So return -ENOMEM if kzalloc returns null pointer.