CVE-2022-50749
Unknown Unknown - Not Provided
Integer Overflow in Linux Kernel acct encode_comp_t() Function

Publication date: 2025-12-24

Last updated on: 2025-12-24

Assigner: kernel.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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-12-24
Last Modified
2025-12-24
Generated
2026-05-07
AI Q&A
2025-12-24
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is an integer overflow in the Linux kernel function encode_comp_t() within the acct subsystem. The function uses a variable 'exp' of type int, which can overflow when its value exceeds 65535, since the return type comp_t is defined as an unsigned 16-bit integer (__u16). This overflow can cause incorrect encoding of values.


How can this vulnerability impact me? :

The integer overflow in encode_comp_t() could lead to incorrect processing or encoding of accounting data in the Linux kernel. This may result in inaccurate system accounting information or potentially unexpected behavior in kernel components relying on this data. However, specific impacts beyond this are not detailed.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart