In the Linux kernel, the following vulnerability has been resolved:
ima: fix buffer overrun in imaeventdigestinit_common
Function imaeventdigestinit() calls imaeventdigestinitcommon() with HASHALGO_LAST which is then used to access the array hashdigest_size[] leading to buffer overrun. Have a conditional statement to handle this.