Menu

Star on GitHub · 3.2k

CVE-2022-49612

7.8 · HIGH

In the Linux kernel, the following vulnerability has been resolved: power: supply: core: Fix boundary conditions in interpolation The functions power_supply_temp2resist_simple and power_supply_oc…

Published Feb 26, 2025CWE-787EPSS 0.28%

Overview

CVE-2022-49612 is a high-severity vulnerability. It was published on February 26, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

In the Linux kernel, the following vulnerability has been resolved:

power: supply: core: Fix boundary conditions in interpolation

The functions power_supply_temp2resist_simple and power_supply_ocv2cap_simple

handle boundary conditions incorrectly.

The change was introduced in a4585ba2050f460f749bbaf2b67bd56c41e30283

("power: supply: core: Use library interpolation").

There are two issues: First, the lines "high = i - 1" and "high = i" in ocv2cap

have the wrong order compared to temp2resist. As a consequence, ocv2cap

sets high=-1 if ocv>table[0].ocv, which causes an out-of-bounds read.

Second, the logic of temp2resist is also not correct.

Consider the case table[] = {{20, 100}, {10, 80}, {0, 60}}.

For temp=5, we expect a resistance of 70% by interpolation.

However, temp2resist sets high=low=2 and returns 60.

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2022-49612?

CVE-2022-49612 is a high-severity vulnerability. It was published on February 26, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2022-49612?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2022-49612?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2022-49612?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2022-49612 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2022

View all