CVE-2022-50749
acct: fix potential integer overflow in encode_comp_t()
Check your servers for CVE-2022-50749
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-50749 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.30%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 25.0% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before e93f995a591c352d35d89c518c54f790e1537754 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before cf60bbca1b83a7e0927e36dbf178328982927886 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 1750a0983c455a9b3badd848471fc8d58cb61f67 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before a815a3e019456c94b03bd183e7ac22fd29e9e6fd affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 6edd0cdee5780fd5f43356b72b29a2a6d48ef6da affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before ebe16676e1dcaa4556ec4d36ca40c82e99e88cfa affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 2224897d8187dc22a83e05d9361efcccf67bcf12 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before 0aac6e60c464a5f942f995428e67f8ae1c422250 affected from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, before c5f31c655bcc01b6da53b836ac951c1556245305
Other versions: unaffected
|
| Linux |
affected 2.6.12 unaffected before 2.6.12 unaffected from 4.9.337 up to and including 4.9.* unaffected from 4.14.303 up to and including 4.14.* unaffected from 4.19.270 up to and including 4.19.* unaffected from 5.4.229 up to and including 5.4.* unaffected from 5.10.163 up to and including 5.10.* unaffected from 5.15.86 up to and including 5.15.* unaffected from 6.0.16 up to and including 6.0.* unaffected from 6.1.2 up to and including 6.1.* unaffected 6.2 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-50749 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50749
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-50749
trivy image --scanners vuln IMAGE | grep CVE-2022-50749
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/e93f995a591c352d35d89c518c54f790e1537754 git.kernel.org
- https://git.kernel.org/stable/c/cf60bbca1b83a7e0927e36dbf178328982927886 git.kernel.org
- https://git.kernel.org/stable/c/1750a0983c455a9b3badd848471fc8d58cb61f67 git.kernel.org
- https://git.kernel.org/stable/c/a815a3e019456c94b03bd183e7ac22fd29e9e6fd git.kernel.org
- https://git.kernel.org/stable/c/6edd0cdee5780fd5f43356b72b29a2a6d48ef6da git.kernel.org
- https://git.kernel.org/stable/c/ebe16676e1dcaa4556ec4d36ca40c82e99e88cfa git.kernel.org
- https://git.kernel.org/stable/c/2224897d8187dc22a83e05d9361efcccf67bcf12 git.kernel.org
- https://git.kernel.org/stable/c/0aac6e60c464a5f942f995428e67f8ae1c422250 git.kernel.org
- https://git.kernel.org/stable/c/c5f31c655bcc01b6da53b836ac951c1556245305 git.kernel.org
Source: the record CVE-2022-50749 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse