acct: fix potential integer overflow in encode_comp_t()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < ebe16676e1dcaa4556ec4d36ca40c82e99e88cfa| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's acct encode_comp_t() function can overflow when its computed value exceeds the range of comp_t. The input does not specify an attacker outcome or whether exploitation requires network or local access, authentication, or user interaction.
Engineers running the Linux kernel should check their installations; affected versions are not specified.