CVE-2023-52504

x86/alternatives: Disable KASAN in apply_alternatives()

HIGH
7.1
CVSS Score
Published: March 2, 2024 at 09:52 PM UTC
Updated: June 17, 2026 at 06:42 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: x86/alternatives: Disable KASAN in apply_alternatives() Fei has reported that KASAN triggers during apply_alternatives() on a 5-level paging machine: 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() ... 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(). 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. Fix it for real by disabling KASAN while the kernel is patching alternatives. [ mingo: updated the changelog ]

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

4.17 ≤ v < 4.19.2974.17 ≤ v < 5.10.1994.17 ≤ v < 5.15.1364.17 ≤ v < 5.4.2704.17 ≤ v < 6.1.594.17 ≤ v < 6.5.84.17 ≤ v < 6.64.20 ≤ v < 5.4.2705.11 ≤ v < 5.15.1365.16 ≤ v < 6.1.595.5 ≤ v < 5.10.1996.2 ≤ v < 6.5.86.6 rc16.6 rc26.6 rc36.6 rc46.6 rc56657fca06e3ffab8d0b3f9d8b397f5ee498952d7
Vendor states this is fixed in 3719d3c36aa853d5a2401af9f8d6b116c91ad5ae (fixed)
Vendor states this is fixed in 3770c38cd6a60494da29ac2da73ff8156440a2d1 (fixed)
Vendor states this is fixed in 5b784489c8158518bf7a466bb3cc045b0fb66b4b (fixed)
Vendor states this is fixed in 6788b10620ca6e98575d1e06e72a8974aad7657e (fixed)
Vendor states this is fixed in cd287cc208dfe6bd6da98e7f88e723209242c9b4 (fixed)
Vendor states this is fixed in d35652a5fc9944784f6f50a5c979518ff8dacf61 (fixed)
Vendor states this is fixed in ecba5afe86f30605eb9dfb7f265a8de0218d4cfc (fixed)
Vendor states this is fixed in 4.17 (unaffected)
Vendor states this is fixed in 4.19.297 (unaffected)
Vendor states this is fixed in 5.10.199 (unaffected)
Vendor states this is fixed in 5.15.136 (unaffected)
Vendor states this is fixed in 5.4.270 (unaffected)
Vendor states this is fixed in 6.1.59 (unaffected)
Vendor states this is fixed in 6.5.8 (unaffected)
Vendor states this is fixed in 6.6 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3719d3c36aa853d5a2401af9f8d6b116c91ad5ae
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3770c38cd6a60494da29ac2da73ff8156440a2d1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5b784489c8158518bf7a466bb3cc045b0fb66b4b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6788b10620ca6e98575d1e06e72a8974aad7657e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cd287cc208dfe6bd6da98e7f88e723209242c9b4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d35652a5fc9944784f6f50a5c979518ff8dacf61
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ecba5afe86f30605eb9dfb7f265a8de0218d4cfc

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-125

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card