CVE-2022-50749

acct: fix potential integer overflow in encode_comp_t()

State
Published
Severity
Not scored
Published
Dec 24, 2025
Updated
May 11, 2026
Reserved
Dec 24, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before e93f995a591c352d35d89c518c54f790e1537754Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before cf60bbca1b83a7e0927e36dbf178328982927886Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 1750a0983c455a9b3badd848471fc8d58cb61f67Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before a815a3e019456c94b03bd183e7ac22fd29e9e6fdAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 6edd0cdee5780fd5f43356b72b29a2a6d48ef6daAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before ebe16676e1dcaa4556ec4d36ca40c82e99e88cfaAffected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 2224897d8187dc22a83e05d9361efcccf67bcf12Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before 0aac6e60c464a5f942f995428e67f8ae1c422250Affected
  • 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to before c5f31c655bcc01b6da53b836ac951c1556245305Affected
LinuxLinux
  • 2.6.12Affected
  • before 2.6.12Not affected
  • 4.9.337 through 4.9.*Not affected
  • 4.14.303 through 4.14.*Not affected
  • 4.19.270 through 4.19.*Not affected
  • 5.4.229 through 5.4.*Not affected
  • 5.10.163 through 5.10.*Not affected
  • 5.15.86 through 5.15.*Not affected
  • 6.0.16 through 6.0.*Not affected
  • 6.1.2 through 6.1.*Not affected
  • 6.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.