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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Linux | Linux | 4.17 | 4.19.297 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | linux | 6.5.8-1 | — |
| Debian 13 | linux | 6.5.8-1 | — |
| Debian 12 | linux | 6.1.64-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Nvidia-BlueField 22.04 LTS | linux-bluefield | 5.15.0-1035.37 | — |
| Ubuntu 24.04 LTS | linux-raspi-realtime | No fix yet | — |
| Ubuntu 22.04 LTS | linux +1 | 5.15.0-94.104 | — |
| Ubuntu 22.04 LTS | linux-aws | 5.15.0-1053.58 | — |
| Ubuntu 22.04 LTS | linux-azure | 5.15.0-1056.64 | — |
| Ubuntu 22.04 LTS | linux-azure-fde | 5.15.0-1056.64.1 | — |
| Ubuntu 22.04 LTS | linux-gcp | 5.15.0-1051.59 | — |
| Ubuntu 22.04 LTS | linux-gke +1 | 5.15.0-1050.55 | — |
| Ubuntu 22.04 LTS | linux-gkeop | 5.15.0-1036.42 | — |
| Ubuntu 22.04 LTS | linux-ibm +1 | 5.15.0-1046.49 | — |
| Ubuntu 22.04 LTS | linux-intel-iotg | 5.15.0-1047.53 | — |
| Ubuntu 22.04 LTS | linux-nvidia | 5.15.0-1044.44 | — |
| Ubuntu 22.04 LTS | linux-nvidia-6.5 | 6.5.0-1014.14 | — |
| Ubuntu 22.04 LTS | linux-nvidia-tegra | 5.15.0-1022.22 | — |
| Ubuntu 22.04 LTS | linux-nvidia-tegra-igx | 5.15.0-1009.9 | — |
| Ubuntu 22.04 LTS | linux-oracle | 5.15.0-1051.57 | — |
| Ubuntu 22.04 LTS | linux-riscv +28 | No fix yet | — |
| Ubuntu 22.04 LTS | linux-xilinx-zynqmp | 5.15.0-1027.31 | — |
| Ubuntu 20.04 LTS | linux | 5.4.0-186.206 | USN-6831-1 |
| Ubuntu 20.04 LTS | linux-aws | 5.4.0-1126.136 | USN-6831-1 |
| Ubuntu 20.04 LTS | linux-aws-5.15 | 5.15.0-1053.58~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-azure | 5.4.0-1131.138 | USN-6831-1 |
| Ubuntu 20.04 LTS | linux-azure-5.15 | 5.15.0-1056.64~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-bluefield | 5.4.0-1086.93 | USN-6867-1 |
| Ubuntu 20.04 LTS | linux-gcp | 5.4.0-1130.139 | USN-6831-1 |
| Ubuntu 20.04 LTS | linux-gcp-5.15 | 5.15.0-1051.59~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-gke +26 | No fix yet | — |
| Ubuntu 20.04 LTS | linux-gkeop | 5.4.0-1093.97 | USN-6831-1 |
| Ubuntu 20.04 LTS | linux-gkeop-5.15 | 5.15.0-1036.42~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-hwe-5.15 +1 | 5.15.0-94.104~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-ibm | 5.4.0-1073.78 | USN-6831-1 |
| Ubuntu 20.04 LTS | linux-ibm-5.15 | 5.15.0-1046.49~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-intel-iotg-5.15 | 5.15.0-1048.54~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-iot | 5.4.0-1038.39 | USN-6867-1 |
| Ubuntu 20.04 LTS | linux-kvm | 5.4.0-1114.121 | USN-6831-1 |
| Ubuntu 20.04 LTS | linux-nvidia-tegra-5.15 | 5.15.0-1022.22~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-oracle | 5.4.0-1125.134 | USN-6831-1 |
| Ubuntu 20.04 LTS | linux-oracle-5.15 | 5.15.0-1051.57~20.04.1 | — |
| Ubuntu 20.04 LTS | linux-raspi | 5.4.0-1110.122 | USN-6831-1 |
| Ubuntu 20.04 LTS | linux-riscv-5.15 | 5.15.0-1049.53~20.04.2 | — |
| Ubuntu 20.04 LTS | linux-xilinx-zynqmp | 5.4.0-1045.49 | USN-6831-1 |
| Ubuntu 18.04 LTS | linux-gcp +14 | No fix yet | — |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | linux-hwe-edge | No fix yet | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-intel-iot-realtime | 5.15.0-1046.48 | — |
| Ubuntu Pro Realtime 22.04 LTS | linux-realtime | 5.15.0-1054.60 | — |
| Ubuntu Pro FIPS 20.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-aws-fips | 5.15.0-1053.58+fips1 | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-fips | 5.15.0-94.104+fips1 | — |
| Ubuntu Pro FIPS-updates 22.04 LTS | linux-gcp-fips | 5.15.0-1055.63+fips2 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-aws-fips | 5.4.0-1126.136+fips2 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-azure-fips | 5.4.0-1131.138+fips1 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-fips | 5.4.0-1100.110 | — |
| Ubuntu Pro FIPS-updates 20.04 LTS | linux-gcp-fips | 5.4.0-1130.139+fips1 | — |
| Ubuntu Pro FIPS-preview 22.04 LTS | linux-fips +3 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | linux-aws-5.4 | 5.4.0-1126.136~18.04.1 | USN-6831-1 |
| Ubuntu Pro 18.04 LTS | linux-azure-5.4 | 5.4.0-1131.138~18.04.1 | USN-6831-1 |
| Ubuntu Pro 18.04 LTS | linux-gcp-5.4 | 5.4.0-1130.139~18.04.1 | USN-6831-1 |
| Ubuntu Pro 18.04 LTS | linux-hwe-5.4 | 5.4.0-186.206~18.04.1 | USN-6831-1 |
| Ubuntu Pro 18.04 LTS | linux-ibm-5.4 | 5.4.0-1073.78~18.04.1 | USN-6831-1 |
| Ubuntu Pro 18.04 LTS | linux-oracle-5.4 | 5.4.0-1125.134~18.04.1 | USN-6831-1 |
| Ubuntu Pro 18.04 LTS | linux-raspi-5.4 | 5.4.0-1110.122~18.04.1 | USN-6831-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP5 | kernel-64kb +6 | 5.14.21-150500.55.59.1 | SUSE-SU-2024:1480-1 |
| SLES 15 SP5 | kernel-azure +2 | 5.14.21-150500.33.48.1 | SUSE-SU-2024:1490-1 |
| SLES 15 SP5 | kernel-default-base | 5.14.21-150500.55.59.1.150500.6.25.7 | SUSE-SU-2024:1480-1 |
| SLES 15 SP4 | kernel-64kb +6 | 5.14.21-150400.24.116.1 | SUSE-SU-2024:1321-1 |
| SLES 15 SP4 | kernel-default-base | 5.14.21-150400.24.116.1.150400.24.54.5 | SUSE-SU-2024:1321-1 |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP4 | kernel-default-base | 5.14.21-150400.24.116.1.150400.24.54.5 | SUSE-SU-2024:1321-1 |
| SLES for SAP 15 SP4 | kernel-docs +4 | 5.14.21-150400.24.116.1 | SUSE-SU-2024:1321-1 |
| SLE Micro 5.5 | kernel-default | 5.14.21-150500.55.59.1 | SUSE-SU-2024:1480-1 |
| SLE Micro 5.5 | kernel-default-base | 5.14.21-150500.55.59.1.150500.6.25.7 | SUSE-SU-2024:1480-1 |
| SLE Micro 5.5 | kernel-rt +1 | 5.14.21-150500.13.47.1 | SUSE-SU-2024:1466-1 |
| SLE Micro 5.4 | kernel-default | 5.14.21-150400.24.116.1 | SUSE-SU-2024:1321-1 |
| SLE Micro 5.4 | kernel-default-base | 5.14.21-150400.24.116.1.150400.24.54.5 | SUSE-SU-2024:1321-1 |
| SLE Micro 5.4 | kernel-rt +1 | 5.14.21-150400.15.76.1 | SUSE-SU-2024:1320-1 |
| SLE Micro 5.3 | kernel-default | 5.14.21-150400.24.116.1 | SUSE-SU-2024:1321-1 |
| SLE Micro 5.3 | kernel-default-base | 5.14.21-150400.24.116.1.150400.24.54.5 | SUSE-SU-2024:1321-1 |
| SLE Micro 5.3 | kernel-rt +1 | 5.14.21-150400.15.76.1 | SUSE-SU-2024:1320-1 |
| SLE Live Patching 15 SP5 | kernel-default | 5.14.21-150500.55.59.1 | SUSE-SU-2024:1480-1 |
| SLE Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5-RT_Update_13 | 1-150500.11.3.1 | SUSE-SU-2024:1466-1 |
| SLE Live Patching 15 SP5 | kernel-livepatch-SLE15-SP5_Update_12 | 1-150500.11.7.1 | SUSE-SU-2024:1480-1 |
| SLE Live Patching 15 SP4 | kernel-default | 5.14.21-150400.24.116.1 | SUSE-SU-2024:1321-1 |
| SLE Live Patching 15 SP4 | kernel-livepatch-SLE15-SP4_Update_25 | 1-150400.9.5.1 | SUSE-SU-2024:1321-1 |
| SLE HPC 15 SP4 | kernel-64kb +5 | 5.14.21-150400.24.116.1 | SUSE-SU-2024:1321-1 |
| SLE HPC 15 SP4 | kernel-default-base | 5.14.21-150400.24.116.1.150400.24.54.5 | SUSE-SU-2024:1321-1 |
| SUSE Real Time Module 15 SP5 | kernel-rt +3 | 5.14.21-150500.13.47.1 | SUSE-SU-2024:1466-1 |
| SUSE Manager Server 4.3 | kernel-default-base | 5.14.21-150400.24.116.1.150400.24.54.5 | SUSE-SU-2024:1321-1 |
| SUSE Manager Server 4.3 | kernel-syms +3 | 5.14.21-150400.24.116.1 | SUSE-SU-2024:1321-1 |
| SUSE Manager Proxy 4.3 | kernel-default-base | 5.14.21-150400.24.116.1.150400.24.54.5 | SUSE-SU-2024:1321-1 |
| SUSE Manager Proxy 4.3 | kernel-syms +2 | 5.14.21-150400.24.116.1 | SUSE-SU-2024:1321-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.5 | dtb-aarch64 +10 | 5.14.21-150500.55.59.1 | SUSE-SU-2024:1480-1 |
| openSUSE Leap 15.5 | kernel-azure +2 | 5.14.21-150500.33.48.1 | SUSE-SU-2024:1490-1 |
| openSUSE Leap 15.5 | kernel-default-base | 5.14.21-150500.55.59.1.150500.6.25.7 | SUSE-SU-2024:1480-1 |
| openSUSE Leap 15.5 | kernel-rt +3 | 5.14.21-150500.13.47.1 | SUSE-SU-2024:1466-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap Micro 5.4 | kernel-default | 5.14.21-150400.24.116.1 | SUSE-SU-2024:1321-1 |
| openSUSE Leap Micro 5.4 | kernel-default-base | 5.14.21-150400.24.116.1.150400.24.54.5 | SUSE-SU-2024:1321-1 |
| openSUSE Leap Micro 5.4 | kernel-rt | 5.14.21-150400.15.76.1 | SUSE-SU-2024:1320-1 |
| openSUSE Leap Micro 5.3 | kernel-default | 5.14.21-150400.24.116.1 | SUSE-SU-2024:1321-1 |
| openSUSE Leap Micro 5.3 | kernel-default-base | 5.14.21-150400.24.116.1.150400.24.54.5 | SUSE-SU-2024:1321-1 |
| openSUSE Leap Micro 5.3 | kernel-rt | 5.14.21-150400.15.76.1 | SUSE-SU-2024:1320-1 |
Advisories 9
- USN-6831-1 linux, linux-aws, linux-aws-5.4, linux-azure, linux-azure-5.4, linux-gcp, linux-gcp-5.4, linux-gkeop, linux-hwe-5.4, linux-ibm, linux-ibm-5.4, linux-kvm, linux-oracle, linux-oracle-5.4, linux-raspi, linux-raspi-5.4, linux-xilinx-zynqmp vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- USN-6867-1 linux-bluefield, linux-iot vulnerabilities Ubuntu Security Notices (USN) · Oct 27, 2026
- ICSA-25-226-15 Siemens SINEC OS CISA ICS & IT advisories · Feb 25, 2026
- SSA-613116 SSA-613116: Multiple Vulnerabilities in Third-Party Components in SINEC OS before V3.1 Siemens ProductCERT · Feb 24, 2026
- SUSE-SU-2024:1320-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:1480-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:1490-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:1466-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:1321-1 Security update for the Linux Kernel SUSE / openSUSE Security Updates · May 2, 2025
References
- https://git.kernel.org/stable/c/3719d3c36aa853d5a2401af9f8d6b116c91ad5ae
- https://git.kernel.org/stable/c/3770c38cd6a60494da29ac2da73ff8156440a2d1
- https://git.kernel.org/stable/c/6788b10620ca6e98575d1e06e72a8974aad7657e
- https://git.kernel.org/stable/c/ecba5afe86f30605eb9dfb7f265a8de0218d4cfc
- https://git.kernel.org/stable/c/5b784489c8158518bf7a466bb3cc045b0fb66b4b
- https://git.kernel.org/stable/c/cd287cc208dfe6bd6da98e7f88e723209242c9b4
- https://git.kernel.org/stable/c/d35652a5fc9944784f6f50a5c979518ff8dacf61