CVE Database›Document archive›CVE-2022-50749

CVE-2022-50749

kernel: acct: fix potential integer overflow in encode_comp_t()

Loading…

Severity

Low

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · December 24, 2025

Updated · June 30, 2026

Description

An integer overflow flaw was found in the Linux kernel's process accounting subsystem. In the encode_comp_t() function, the variable 'exp' is declared as an int but is returned as comp_t (a __u16). When the computed value exceeds 65535, the return value wraps around, resulting in incorrect process accounting data being recorded.

Statement

This flaw affects the accuracy of process accounting data when resource usage values are very large. The integer overflow causes incorrect values to be recorded in accounting files but does not cause a kernel crash or provide any exploitable security impact. Process accounting is an optional feature not enabled by default on most systems.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE-190 · Integer Overflow or Wraparound