CVE-2022-50749

acct: fix potential integer overflow in encode_comp_t()

published December 24, 2025

CVSS
—
EPSS
0%
Percentile
19.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00284 · 19.8th percentile
Published
2025-12-24T13:05Z
EPSS history
Timeline
  • 24 DEC 13:05Z
    acct: fix potential integer overflow in encode_comp_t()
    cvelistv5