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().
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49186.json",
"cna_assigner": "Linux"
}