<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://vulnerability.circl.lu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-29T03:43:49.948583+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@circl.lu</email>
  </author>
  <link href="https://vulnerability.circl.lu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://vulnerability.circl.lu/vuln/cve-2026-90136</id>
    <title>CVE-2026-90136 — platform/x86/amd/hsmp: Reject negative power cap writes in hwmon</title>
    <updated>2026-09-29T03:43:49.963739+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>platform/x86/amd/hsmp: Reject negative power cap writes in hwmon</p>
<p>hsmp_hwmon_write() takes the user-supplied hwmon value as a signed long
and assigns "val / MICROWATT_PER_MILLIWATT" to msg.args[0], which is a
__u32.  MICROWATT_PER_MILLIWATT is an unsigned long, so a negative write
to power1_cap (e.g. "echo -1 &gt; power1_cap") is first converted to a huge
unsigned value by the division and then stored into the u32 argument.</p>
<p>As a result a nonsensical, multi-gigawatt socket power limit is sent to
the SMU via HSMP_SET_SOCKET_POWER_LIMIT instead of the write being
rejected.</p>
<p>Reject negative values with -EINVAL before the conversion.</p>
<p>Tested with HSMP enabled:</p>
<p>CAP=$(dirname $(grep -l amd_hsmp_hwmon \
        /sys/class/hwmon/hwmon*/name | head -1))/power1_cap</p>
<p># negative write
  echo -1000000 &gt; $CAP ; echo "ret=$?"
  # valid positive write must still work
  echo 400000000 &gt; $CAP ; echo "ret=$?"</p>
<p>Before:
  # echo -1000000 &gt; $CAP ; echo "ret=$?"
  ret=0                             &lt;- accepted; bogus limit sent to SMU
  # echo 400000000 &gt; $CAP ; echo "ret=$?"
  ret=0</p>
<p>After:
  # echo -1000000 &gt; $CAP ; echo "ret=$?"
  bash: echo: write error: Invalid argument
  ret=1                             &lt;- rejected with -EINVAL
  # echo 400000000 &gt; $CAP ; echo "ret=$?"
  ret=0                             &lt;- valid write still works</p></div>
    </content>
    <link href="https://vulnerability.circl.lu/vuln/cve-2026-90136"/>
  </entry>
</feed>
