CVE-2023-52504
x86/alternatives: Disable KASAN in apply_alternatives()
Reported by linux · Published March 2, 2024
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 ]
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.5.8, 6.1.59, 5.15.136, 5.10.199, 5.4.270, 4.19.297 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 6657fca06e3ffab8d0b3f9d8b397f5ee498952d7, 6657fca06e3ffab8d0b3f9d8b397f5ee498952d7, 6657fca06e3ffab8d0b3f9d8b397f5ee498952d7 |
| Linux | Linux | 4.17, 0, 4.19.297 |
| Linux | Linux | 6657fca06e3ffab8d0b3f9d8b397f5ee498952d7, 4.19.297, 5.10.199 |
| linux | linux_kernel | 4.17, 4.17, 4.17 |
Timeline
- Mar 2, 2024 CVE Published
- Mar 3, 2024 EPSS Score (30 in total, the first dated here)
- Oct 5, 2024 Coalition ESS Score (9 in total, the first dated here)
- Jan 25, 2026 Security Advisory
- Jan 25, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-52504
vulnetix vdb fixes CVE-2023-52504
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-52504/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart