CWE-1314: Missing Write Protection for Parametric Data Values
Description
The device does not write-protect the parametric data values for sensors that scale the sensor value, allowing untrusted software to manipulate the apparent result and potentially damage hardware or cause operational failure.
Submission Date :
July 14, 2020, midnight
Modification Date :
2023-06-29 00:00:00+00:00
Organization :
The Intel Corporation
Extended Description
Various sensors are used by hardware to detect any devices operating outside of the design limits. The threshold limit values are set by hardware fuses or trusted software such as the BIOS. These limits may be related to thermal, power, voltage, current, and frequency. Hardware mechanisms may be used to protect against alteration of the threshold limit values by untrusted software.
The limit values are generally programmed in standard units for the type of value being read. However, the hardware-sensor blocks may report the settings in different units depending upon sensor design and operation. The raw sensor output value is converted to the desired units using a scale conversion based on the parametric data programmed into the sensor. The final converted value is then compared with the previously programmed limits.
While the limit values are usually protected, the sensor parametric data values may not be. By changing the parametric data, safe operational limits may be bypassed.
Example - 1
<xhtml_p>The sensor frequency value is scaled by applying the function:</xhtml_p>Sensed Temp = a + b * Sensor Freq<xhtml_p>where a and b are the programmable calibration data coefficients. Software sets a and b to zero ensuring the sensedtemperature is always zero.</xhtml_p>
This weakness may be addressed by preventing access to a and b.
<xhtml_p>The sensor frequency value is scaled by applying the function:</xhtml_p>Sensed Temp = a + b * Sensor Freq<xhtml_p>where a and b are the programmable calibration data coefficients. Untrusted software is prevented from changing the values of either a or b, preventing this method of manipulating the temperature.</xhtml_p>
Related Weaknesses
This table shows the weaknesses and high level categories that are related to this weakness. These relationships are defined to give an overview of the different insight to similar items that may exist at higher and lower levels of abstraction.
Visit http://cwe.mitre.org/ for more details.