In the Linux kernel, the following vulnerability has been resolved:
clk: visconti: prevent array overflow in visconticlkregister_gates()
This code was using -1 to represent that there was no reset function. Unfortunately, the -1 was stored in u8 so the if (clks[i].rsid >= 0) condition was always true. This lead to an out of bounds access in visconticlkregistergates().