CVE-2022-50749

Source
https://cve.org/CVERecord?id=CVE-2022-50749
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50749.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50749
Downstream
Related
Published
2025-12-24T13:05:44.734Z
Modified
2026-03-20T12:22:37.476509Z
Summary
acct: fix potential integer overflow in encode_comp_t()
Details

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 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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50749.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Fixed
e93f995a591c352d35d89c518c54f790e1537754
Fixed
cf60bbca1b83a7e0927e36dbf178328982927886
Fixed
1750a0983c455a9b3badd848471fc8d58cb61f67
Fixed
a815a3e019456c94b03bd183e7ac22fd29e9e6fd
Fixed
6edd0cdee5780fd5f43356b72b29a2a6d48ef6da
Fixed
ebe16676e1dcaa4556ec4d36ca40c82e99e88cfa
Fixed
2224897d8187dc22a83e05d9361efcccf67bcf12
Fixed
0aac6e60c464a5f942f995428e67f8ae1c422250
Fixed
c5f31c655bcc01b6da53b836ac951c1556245305

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50749.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.6.12
Fixed
4.9.337
Type
ECOSYSTEM
Events
Introduced
4.10.0
Fixed
4.14.303
Type
ECOSYSTEM
Events
Introduced
4.15.0
Fixed
4.19.270
Type
ECOSYSTEM
Events
Introduced
4.20.0
Fixed
5.4.229
Type
ECOSYSTEM
Events
Introduced
5.5.0
Fixed
5.10.163
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.86
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.0.16
Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.2

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50749.json"