<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Mon, 28 Sep 2026 23:46:46 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-49285 — iio: accel: mma8452: use the correct logic to get mma8452_data</title>
      <link>https://db.gcve.eu/vuln/cve-2022-49285</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;iio: accel: mma8452: use the correct logic to get mma8452_data&lt;/p&gt;
&lt;p&gt;The original logic to get mma8452_data is wrong, the *dev point to
the device belong to iio_dev. we can&amp;#39;t use this dev to find the
correct i2c_client. The original logic happen to work because it
finally use dev-&amp;gt;driver_data to get iio_dev. Here use the API
to_i2c_client() is wrong and make reader confuse. To correct the
logic, it should be like this&lt;/p&gt;
&lt;p&gt;struct mma8452_data *data = iio_priv(dev_get_drvdata(dev));&lt;/p&gt;
&lt;p&gt;But after commit 8b7651f25962 (&amp;#34;iio: iio_device_alloc(): Remove
unnecessary self drvdata&amp;#34;), the upper logic also can&amp;#39;t work.
When try to show the avialable scale in userspace, will meet kernel
dump, kernel handle NULL pointer dereference.&lt;/p&gt;
&lt;p&gt;So use dev_to_iio_dev() to correct the logic.&lt;/p&gt;
&lt;p&gt;Dual fixes tags as the second reflects when the bug was exposed, whilst
the first reflects when the original bug was introduced.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Linux&lt;/p&gt;
&lt;p&gt;In the Linux kernel, the following vulnerability has been resolved:&lt;/p&gt;
&lt;p&gt;iio: accel: mma8452: use the correct logic to get mma8452_data&lt;/p&gt;
&lt;p&gt;The original logic to get mma8452_data is wrong, the *dev point to
the device belong to iio_dev. we can&amp;#39;t use this dev to find the
correct i2c_client. The original logic happen to work because it
finally use dev-&amp;gt;driver_data to get iio_dev. Here use the API
to_i2c_client() is wrong and make reader confuse. To correct the
logic, it should be like this&lt;/p&gt;
&lt;p&gt;struct mma8452_data *data = iio_priv(dev_get_drvdata(dev));&lt;/p&gt;
&lt;p&gt;But after commit 8b7651f25962 (&amp;#34;iio: iio_device_alloc(): Remove
unnecessary self drvdata&amp;#34;), the upper logic also can&amp;#39;t work.
When try to show the avialable scale in userspace, will meet kernel
dump, kernel handle NULL pointer dereference.&lt;/p&gt;
&lt;p&gt;So use dev_to_iio_dev() to correct the logic.&lt;/p&gt;
&lt;p&gt;Dual fixes tags as the second reflects when the bug was exposed, whilst
the first reflects when the original bug was introduced.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/cve-2022-49285</guid>
    </item>
  </channel>
</rss>
