<?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>Sun, 04 Oct 2026 05:46:48 +0000</lastBuildDate>
    <item>
      <title>CVE-2023-52504 — x86/alternatives: Disable KASAN in apply_alternatives()</title>
      <link>https://vulnerability.circl.lu/vuln/cve-2023-52504</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;x86/alternatives: Disable KASAN in apply_alternatives()&lt;/p&gt;
&lt;p&gt;Fei has reported that KASAN triggers during apply_alternatives() on
a 5-level paging machine:&lt;/p&gt;
&lt;p&gt;BUG: KASAN: out-of-bounds in rcu_is_watching()
	Read of size 4 at addr ff110003ee6419a0 by task swapper/0/0
	...
	__asan_load4()
	rcu_is_watching()
	trace_hardirqs_on()
	text_poke_early()
	apply_alternatives()
	...&lt;/p&gt;
&lt;p&gt;On machines with 5-level paging, cpu_feature_enabled(X86_FEATURE_LA57)
gets patched. It includes KASAN code, where KASAN_SHADOW_START depends on
__VIRTUAL_MASK_SHIFT, which is defined with cpu_feature_enabled().&lt;/p&gt;
&lt;p&gt;KASAN gets confused when apply_alternatives() patches the
KASAN_SHADOW_START users. A test patch that makes KASAN_SHADOW_START
static, by replacing __VIRTUAL_MASK_SHIFT with 56, works around the issue.&lt;/p&gt;
&lt;p&gt;Fix it for real by disabling KASAN while the kernel is patching alternatives.&lt;/p&gt;
&lt;p&gt;[ mingo: updated the changelog ]&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;x86/alternatives: Disable KASAN in apply_alternatives()&lt;/p&gt;
&lt;p&gt;Fei has reported that KASAN triggers during apply_alternatives() on
a 5-level paging machine:&lt;/p&gt;
&lt;p&gt;BUG: KASAN: out-of-bounds in rcu_is_watching()
	Read of size 4 at addr ff110003ee6419a0 by task swapper/0/0
	...
	__asan_load4()
	rcu_is_watching()
	trace_hardirqs_on()
	text_poke_early()
	apply_alternatives()
	...&lt;/p&gt;
&lt;p&gt;On machines with 5-level paging, cpu_feature_enabled(X86_FEATURE_LA57)
gets patched. It includes KASAN code, where KASAN_SHADOW_START depends on
__VIRTUAL_MASK_SHIFT, which is defined with cpu_feature_enabled().&lt;/p&gt;
&lt;p&gt;KASAN gets confused when apply_alternatives() patches the
KASAN_SHADOW_START users. A test patch that makes KASAN_SHADOW_START
static, by replacing __VIRTUAL_MASK_SHIFT with 56, works around the issue.&lt;/p&gt;
&lt;p&gt;Fix it for real by disabling KASAN while the kernel is patching alternatives.&lt;/p&gt;
&lt;p&gt;[ mingo: updated the changelog ]&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://vulnerability.circl.lu/vuln/cve-2023-52504</guid>
    </item>
  </channel>
</rss>
