In the Linux kernel, the following vulnerability has been resolved: pcmcia: Add error handling for addinterval() in dovalidatemem() In the dovalidatemem(), the call to addinterval() does not handle errors. If kmalloc() fails in addinterval(), it could result in a null pointer being inserted into the linked list, leading to illegal memory access when subinterval() is called next. This patch adds an error handling for the addinterval(). If addinterval() returns an error, the function will return early with the error code.