In the Linux kernel, the following vulnerability has been resolved:
acct: fix potential integer overflow in encodecompt()
The integer overflow is descripted with following codes:
317 static compt encodecomp_t(u64 value) 318 { 319 int exp, rnd; ...... 341 exp <<= MANTSIZE; 342 exp += value; 343 return exp; 344 }
Currently compt is defined as type of '_u16', but the variable 'exp' is type of 'int', so overflow would happen when variable 'exp' in line 343 is greater than 65535.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50749.json",
"cna_assigner": "Linux"
}