<?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://vulnerability.circl.lu</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>Wed, 30 Sep 2026 16:41:20 +0000</lastBuildDate>
    <item>
      <title>CVE-2022-50239 — cpufreq: qcom: fix writes in read-only memory region</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2022-50239</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;cpufreq: qcom: fix writes in read-only memory region&lt;/p&gt;
&lt;p&gt;This commit fixes a kernel oops because of a write in some read-only memory:&lt;/p&gt;
&lt;p&gt;[    9.068287] Unable to handle kernel write to read-only memory at virtual address ffff800009240ad8
	..snip..
	[    9.138790] Internal error: Oops: 9600004f [#1] PREEMPT SMP
	..snip..
	[    9.269161] Call trace:
	[    9.276271]  __memcpy+0x5c/0x230
	[    9.278531]  snprintf+0x58/0x80
	[    9.282002]  qcom_cpufreq_msm8939_name_version+0xb4/0x190
	[    9.284869]  qcom_cpufreq_probe+0xc8/0x39c
	..snip..&lt;/p&gt;
&lt;p&gt;The following line defines a pointer that point to a char buffer stored
in read-only memory:&lt;/p&gt;
&lt;p&gt;char *pvs_name = &amp;#34;speedXX-pvsXX-vXX&amp;#34;;&lt;/p&gt;
&lt;p&gt;This pointer is meant to hold a template &amp;#34;speedXX-pvsXX-vXX&amp;#34; where the
XX values get overridden by the qcom_cpufreq_krait_name_version function. Since
the template is actually stored in read-only memory, when the function
executes the following call we get an oops:&lt;/p&gt;
&lt;p&gt;snprintf(*pvs_name, sizeof(&amp;#34;speedXX-pvsXX-vXX&amp;#34;), &amp;#34;speed%d-pvs%d-v%d&amp;#34;,
		 speed, pvs, pvs_ver);&lt;/p&gt;
&lt;p&gt;To fix this issue, we instead store the template name onto the stack by
using the following syntax:&lt;/p&gt;
&lt;p&gt;char pvs_name_buffer[] = &amp;#34;speedXX-pvsXX-vXX&amp;#34;;&lt;/p&gt;
&lt;p&gt;Because the `pvs_name` needs to be able to be assigned to NULL, the
template buffer is stored in the pvs_name_buffer and not under the
pvs_name variable.&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;cpufreq: qcom: fix writes in read-only memory region&lt;/p&gt;
&lt;p&gt;This commit fixes a kernel oops because of a write in some read-only memory:&lt;/p&gt;
&lt;p&gt;[    9.068287] Unable to handle kernel write to read-only memory at virtual address ffff800009240ad8
	..snip..
	[    9.138790] Internal error: Oops: 9600004f [#1] PREEMPT SMP
	..snip..
	[    9.269161] Call trace:
	[    9.276271]  __memcpy+0x5c/0x230
	[    9.278531]  snprintf+0x58/0x80
	[    9.282002]  qcom_cpufreq_msm8939_name_version+0xb4/0x190
	[    9.284869]  qcom_cpufreq_probe+0xc8/0x39c
	..snip..&lt;/p&gt;
&lt;p&gt;The following line defines a pointer that point to a char buffer stored
in read-only memory:&lt;/p&gt;
&lt;p&gt;char *pvs_name = &amp;#34;speedXX-pvsXX-vXX&amp;#34;;&lt;/p&gt;
&lt;p&gt;This pointer is meant to hold a template &amp;#34;speedXX-pvsXX-vXX&amp;#34; where the
XX values get overridden by the qcom_cpufreq_krait_name_version function. Since
the template is actually stored in read-only memory, when the function
executes the following call we get an oops:&lt;/p&gt;
&lt;p&gt;snprintf(*pvs_name, sizeof(&amp;#34;speedXX-pvsXX-vXX&amp;#34;), &amp;#34;speed%d-pvs%d-v%d&amp;#34;,
		 speed, pvs, pvs_ver);&lt;/p&gt;
&lt;p&gt;To fix this issue, we instead store the template name onto the stack by
using the following syntax:&lt;/p&gt;
&lt;p&gt;char pvs_name_buffer[] = &amp;#34;speedXX-pvsXX-vXX&amp;#34;;&lt;/p&gt;
&lt;p&gt;Because the `pvs_name` needs to be able to be assigned to NULL, the
template buffer is stored in the pvs_name_buffer and not under the
pvs_name variable.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2022-50239</guid>
    </item>
  </channel>
</rss>
