{"id":"CVE-2022-50749","aliases":["CVE-2022-50749"],"related":[],"kind":"vulnerability","state":"published","title":"acct: fix potential integer overflow in encode_comp_t()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nacct: fix potential integer overflow in encode_comp_t()\n\nThe integer overflow is descripted with following codes:\n  > 317 static comp_t encode_comp_t(u64 value)\n  > 318 {\n  > 319         int exp, rnd;\n    ......\n  > 341         exp <<= MANTSIZE;\n  > 342         exp += value;\n  > 343         return exp;\n  > 344 }\n\nCurrently comp_t is defined as type of '__u16', but the variable 'exp' is\ntype of 'int', so overflow would happen when variable 'exp' in line 343 is\ngreater than 65535.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nacct: fix potential integer overflow in encode_comp_t()\n\nThe integer overflow is descripted with following codes:\n  > 317 static comp_t encode_comp_t(u64 value)\n  > 318 {\n  > 319         int exp, rnd;\n    ......\n  > 341         exp <<= MANTSIZE;\n  > 342         exp += value;\n  > 343         return exp;\n  > 344 }\n\nCurrently comp_t is defined as type of '__u16', but the variable 'exp' is\ntype of 'int', so overflow would happen when variable 'exp' in line 343 is\ngreater than 65535.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nacct: corrige un potencial desbordamiento de entero en encode_comp_t()\n\nEl desbordamiento de entero se describe con los siguientes códigos:\n  > 317 static comp_t encode_comp_t(u64 value)\n  > 318 {\n  > 319         int exp, rnd;\n    ......\n  > 341         exp <<= MANTSIZE;\n  > 342         exp += value;\n  > 343         return exp;\n  > 344 }\n\nActualmente, 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.","source":"nvd"}],"published":"2025-12-24T13:05:44.734Z","modified":"2026-11-10T12:10:00.177Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"e93f995a591c352d35d89c518c54f790e1537754","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"cf60bbca1b83a7e0927e36dbf178328982927886","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"1750a0983c455a9b3badd848471fc8d58cb61f67","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"a815a3e019456c94b03bd183e7ac22fd29e9e6fd","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"6edd0cdee5780fd5f43356b72b29a2a6d48ef6da","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"ebe16676e1dcaa4556ec4d36ca40c82e99e88cfa","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"2224897d8187dc22a83e05d9361efcccf67bcf12","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"0aac6e60c464a5f942f995428e67f8ae1c422250","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"c5f31c655bcc01b6da53b836ac951c1556245305","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"4.9.337","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.303","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.270","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.229","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.163","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.86","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.16","lastAffected":"6.0.*","status":"unaffected"},{"type":"semver","introduced":"6.1.2","lastAffected":"6.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/e93f995a591c352d35d89c518c54f790e1537754","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cf60bbca1b83a7e0927e36dbf178328982927886","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1750a0983c455a9b3badd848471fc8d58cb61f67","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a815a3e019456c94b03bd183e7ac22fd29e9e6fd","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6edd0cdee5780fd5f43356b72b29a2a6d48ef6da","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ebe16676e1dcaa4556ec4d36ca40c82e99e88cfa","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2224897d8187dc22a83e05d9361efcccf67bcf12","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0aac6e60c464a5f942f995428e67f8ae1c422250","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c5f31c655bcc01b6da53b836ac951c1556245305","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50749","url":"https://www.cve.org/CVERecord?id=CVE-2022-50749","licence":"CVE Terms of Use","modified":"2026-05-11T19:24:46.724Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50749","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50749","licence":"Public domain","modified":"2026-11-10T12:10:00.177Z"}],"updatedAt":"2026-11-25T22:58:21.345Z","epss":{"score":0.00304,"percentile":0.25017,"date":"2026-12-01T12:00:22.000Z"}}