Not scored
acct: fix potential integer overflow in encode_comp_t()
- Severity
- Not scored
- Exploit likelihood
- 0.30% (higher than 25% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: acct: fix potential integer overflow in encode_comp_t() The integer overflow is descripted with following codes: > 317 static comp_t encode_comp_t(u64 value) > 318 { > 319 int exp, rnd; ...... > 341 exp <<= MANTSIZE; > 342 exp += value; > 343 return exp; > 344 } Currently comp_t 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before e93f995a591c352d35d89c518c54f790e1537754, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before cf60bbca1b83a7e0927e36dbf178328982927886, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 1750a0983c455a9b3badd848471fc8d58cb61f67, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a815a3e019456c94b03bd183e7ac22fd29e9e6fd, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 6edd0cdee5780fd5f43356b72b29a2a6d48ef6da, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before ebe16676e1dcaa4556ec4d36ca40c82e99e88cfa, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 2224897d8187dc22a83e05d9361efcccf67bcf12, from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 0aac6e60c464a5f942f995428e67f8ae1c422250 and 2 more Not affected: before 2.6.12, from 4.9.337 up to 4.9.*, from 4.14.303 up to 4.14.*, from 4.19.270 up to 4.19.*, from 5.4.229 up to 5.4.*, from 5.10.163 up to 5.10.* | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: acct: fix potential integer overflow in encode_comp_t() The integer overflow is descripted with following codes: > 317 static comp_t encode_comp_t(u64 value) > 318 { > 319 int exp, rnd; ...... > 341 exp <<= MANTSIZE; > 342 exp += value; > 343 return exp; > 344 } Currently comp_t 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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: acct: corrige un potencial desbordamiento de entero en encode_comp_t() El desbordamiento de entero se describe con los siguientes códigos: > 317 static comp_t encode_comp_t(u64 value) > 318 { > 319 int exp, rnd; ...... > 341 exp <<= MANTSIZE; > 342 exp += value; > 343 return exp; > 344 } Actualmente, comp_t se define como tipo ’__u16’, pero la variable ’exp’ es de tipo ’int’, por lo que el desbordamiento ocurriría cuando la variable ’exp’ en la línea 343 sea mayor que 65535.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-50749 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2022-50749 changed 2026-11-10 | Public domain |