# CVE-2022-50749: acct: fix potential integer overflow in encode\_comp\_t()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.32% (percentile 18, 2026-11-26)
- **Published:** 2025-12-24T13:05:44.734Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e93f995a591c352d35d89c518c54f790e1537754; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< cf60bbca1b83a7e0927e36dbf178328982927886; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1750a0983c455a9b3badd848471fc8d58cb61f67; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a815a3e019456c94b03bd183e7ac22fd29e9e6fd; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6edd0cdee5780fd5f43356b72b29a2a6d48ef6da; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ebe16676e1dcaa4556ec4d36ca40c82e99e88cfa; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2224897d8187dc22a83e05d9361efcccf67bcf12; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0aac6e60c464a5f942f995428e67f8ae1c422250; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c5f31c655bcc01b6da53b836ac951c1556245305
- Anyone running Linux 2.6.12

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

## Affected and fixed versions

- Linux: \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e93f995a591c352d35d89c518c54f790e1537754; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< cf60bbca1b83a7e0927e36dbf178328982927886; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1750a0983c455a9b3badd848471fc8d58cb61f67; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a815a3e019456c94b03bd183e7ac22fd29e9e6fd; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6edd0cdee5780fd5f43356b72b29a2a6d48ef6da; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ebe16676e1dcaa4556ec4d36ca40c82e99e88cfa; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2224897d8187dc22a83e05d9361efcccf67bcf12; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0aac6e60c464a5f942f995428e67f8ae1c422250; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c5f31c655bcc01b6da53b836ac951c1556245305 (cvelist)
- Linux: 2.6.12 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50749. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50749.md
Affected: Linux >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < e93f995a591c352d35d89c518c54f790e1537754; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < cf60bbca1b83a7e0927e36dbf178328982927886; >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 1750a0983c455a9b3badd848471fc8d58cb61f67; >= 1da177e4c3f41524e886b7f…
Fixed in: Linux 1750a0983c455a9b3badd848471fc8d58cb61f67, Linux 6edd0cdee5780fd5f43356b72b29a2a6d48ef6da, Linux 2224897d8187dc22a83e05d9361efcccf67bcf12, Linux 0aac6e60c464a5f942f995428e67f8ae1c422250

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50749 being exploited?

There is no confirmed exploitation: CVE-2022-50749 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-50749?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50749?

Linux \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< e93f995a591c352d35d89c518c54f790e1537754; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< cf60bbca1b83a7e0927e36dbf178328982927886; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 1750a0983c455a9b3badd848471fc8d58cb61f67; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< a815a3e019456c94b03bd183e7ac22fd29e9e6fd; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 6edd0cdee5780fd5f43356b72b29a2a6d48ef6da; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< ebe16676e1dcaa4556ec4d36ca40c82e99e88cfa; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 2224897d8187dc22a83e05d9361efcccf67bcf12; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< 0aac6e60c464a5f942f995428e67f8ae1c422250; \>= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, \< c5f31c655bcc01b6da53b836ac951c1556245305; Linux 2.6.12.

### Is there a fix for CVE-2022-50749?

Yes. Fixed in Linux 1750a0983c455a9b3badd848471fc8d58cb61f67, Linux 6edd0cdee5780fd5f43356b72b29a2a6d48ef6da, Linux 2224897d8187dc22a83e05d9361efcccf67bcf12, Linux 0aac6e60c464a5f942f995428e67f8ae1c422250. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50749?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/e93f995a591c352d35d89c518c54f790e1537754>
- other: <https://git.kernel.org/stable/c/cf60bbca1b83a7e0927e36dbf178328982927886>
- other: <https://git.kernel.org/stable/c/1750a0983c455a9b3badd848471fc8d58cb61f67>
- other: <https://git.kernel.org/stable/c/a815a3e019456c94b03bd183e7ac22fd29e9e6fd>
- other: <https://git.kernel.org/stable/c/6edd0cdee5780fd5f43356b72b29a2a6d48ef6da>
- other: <https://git.kernel.org/stable/c/ebe16676e1dcaa4556ec4d36ca40c82e99e88cfa>
- other: <https://git.kernel.org/stable/c/2224897d8187dc22a83e05d9361efcccf67bcf12>
- other: <https://git.kernel.org/stable/c/0aac6e60c464a5f942f995428e67f8ae1c422250>
- other: <https://git.kernel.org/stable/c/c5f31c655bcc01b6da53b836ac951c1556245305>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50749>

HTML: <https://flawdb.com/CVE-2022-50749> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50749>
