CVE-2024-57792
Published: 11 January 2025
Summary
CVE-2024-57792 is a high-severity an unspecified weakness vulnerability in Linux Linux Kernel. Its CVSS base score is 7.8 (High).
Operationally, exploitation aligns with the MITRE ATT&CK technique Exploitation for Privilege Escalation (T1068); ranked at the 6.7th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog.
The strongest mitigations our analysis identified are NIST 800-53 SI-10 (Information Input Validation) and SI-2 (Flaw Remediation).
Deeper analysis
CVE-2024-57792 is a vulnerability in the Linux kernel's power supply gpio-charger driver. The issue arises when setting charge current limits for devices that enforce a lowest limit greater than zero. If a requested charge current limit falls below this threshold, the driver calculates an array index equal to the current_limit_map_size, resulting in an out-of-bounds memory access beyond the allocated buffer.
The vulnerability carries a CVSS v3.1 base score of 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H). A local attacker with low privileges can exploit it by supplying an invalid charge current limit value, potentially achieving high-impact confidentiality, integrity, and availability effects such as arbitrary code execution, memory corruption, or kernel crashes.
Mitigation is available through upstream patches in the Linux kernel stable trees. The referenced commits—such as 13eb3cae1d8e23cce96c095abe34da8028c09ac5, 6abbbd8286b6f944eecf3c74444c138590135211, afc6e39e824ad0e44b2af50a97885caec8d213d1, b29c7783ac1fe36d639c089cf471ac7a46df05f0, and c3703d9340ca2820e1ac63256f4b423ea8559831—correct the index calculation in the set charge current limits function to prevent the out-of-bounds access. Security practitioners should update affected kernels accordingly.
EU & UK References
- 🇪🇺 ENISA EUVD: EUVD-2024-53752
Vulnerability details
In the Linux kernel, the following vulnerability has been resolved: power: supply: gpio-charger: Fix set charge current limits Fix set charge current limits for devices which allow to set the lowest charge current limit to be greater zero. If requested…
more
charge current limit is below lowest limit, the index equals current_limit_map_size which leads to accessing memory beyond allocated memory.
- CWE(s)
Related Threats
MITRE ATT&CK Enterprise TechniquesAI
Why these techniques?
Local kernel OOB access in gpio-charger driver directly enables privilege escalation via arbitrary code execution or memory corruption from low-privileged context.
CVEs Like This One
Affected Assets
Mitigating Controls
Mitigating Controls (NIST 800-53 r5) AI
Flaw remediation directly addresses the vulnerability by applying upstream kernel patches that fix the out-of-bounds memory access in the gpio-charger driver.
Information input validation ensures charge current limit inputs are checked against valid ranges to prevent invalid indices causing buffer overflows.
Memory protection mechanisms like address space randomization and non-executable stacks mitigate exploitation of the out-of-bounds access for code execution or corruption.