{"id":"CVE-2022-50749","published":"2025-12-24T13:05:44Z","modified":"2026-05-11T19:24:46Z","title":"acct: fix potential integer overflow in encode_comp_t()","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00284,"percentile":0.20708,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/e93f995a591c352d35d89c518c54f790e1537754","tags":[]},{"url":"https://git.kernel.org/stable/c/cf60bbca1b83a7e0927e36dbf178328982927886","tags":[]},{"url":"https://git.kernel.org/stable/c/1750a0983c455a9b3badd848471fc8d58cb61f67","tags":[]},{"url":"https://git.kernel.org/stable/c/a815a3e019456c94b03bd183e7ac22fd29e9e6fd","tags":[]},{"url":"https://git.kernel.org/stable/c/6edd0cdee5780fd5f43356b72b29a2a6d48ef6da","tags":[]},{"url":"https://git.kernel.org/stable/c/ebe16676e1dcaa4556ec4d36ca40c82e99e88cfa","tags":[]},{"url":"https://git.kernel.org/stable/c/2224897d8187dc22a83e05d9361efcccf67bcf12","tags":[]},{"url":"https://git.kernel.org/stable/c/0aac6e60c464a5f942f995428e67f8ae1c422250","tags":[]},{"url":"https://git.kernel.org/stable/c/c5f31c655bcc01b6da53b836ac951c1556245305","tags":[]}],"priority":{"score":4.1,"factors":[{"name":"EPSS percentile","points":4.14}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < e93f995a591c352d35d89c518c54f790e1537754",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < cf60bbca1b83a7e0927e36dbf178328982927886",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1750a0983c455a9b3badd848471fc8d58cb61f67",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < a815a3e019456c94b03bd183e7ac22fd29e9e6fd",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 6edd0cdee5780fd5f43356b72b29a2a6d48ef6da",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < ebe16676e1dcaa4556ec4d36ca40c82e99e88cfa",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 2224897d8187dc22a83e05d9361efcccf67bcf12",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 0aac6e60c464a5f942f995428e67f8ae1c422250",">= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < c5f31c655bcc01b6da53b836ac951c1556245305"]},{"vendor":"Linux","product":"Linux","versions":["2.6.12"]}],"euvd":{"id":"EUVD-2022-55812","exploited":false,"provenance":"source"}}