Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: ARM: 9475/1: entry: use byte load for KASAN VMAP stack shadow Commit 44e9a3bb76e5 ("ARM: 9430/1: entry: Do a dummy read from VMAP shadow") added a dummy read from the KASAN VMAP stack shadow in __switch_to(). The read uses ldr, but the KASAN shadow address is byte-granular and is not guaranteed to be word aligned. ARMv5 faults unaligned word loads. With CONFIG_KASAN_VMALLOC and CONFIG_VMAP_STACK enabled, ARM926/VersatilePB crashes in __switch_to() with an alignment exception before reaching init. Use ldrb for the dummy shadow access. The code only needs to fault in the shadow mapping if the stack shadow is missing, so a byte load is sufficient and matches the granularity of KASAN shadow memory.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 8fe148d39c127de3fb78dfa6da95a3608dfda454 before c0b8c148a7754826156993ed6442d31536ec86b4; affected ef21187c0672a2b2cbec44f33bab9ec47d5c277c before c2e3aadc8fef7da068490597fc5582f8f362aeb2; affected c86d26b4b089ca294b3b7d915a7da61edb77935f before c74990828d3c486ee44aaa68240eb3abff289d1c; affected 44e9a3bb76e5f2eecd374c8176b2c5163c8bb2e2 before 517720913bd3c17a52cd55a740064f68455ab88e; affected 44e9a3bb76e5f2eecd374c8176b2c5163c8bb2e2 before 2a4dc9a0ac3326e79fb58fdaae724b92127709a9; affected 44e9a3bb76e5f2eecd374c8176b2c5163c8bb2e2 before 77a1f6883dc6e837bb2cb30b9b02e2f94338e2c6; affected 6.1.120 before 6.1.176; affected 6.6.64 before 6.6.143; affected 6.12.4 before 6.12.94 |
| Linux / Linux | affected 6.13; unaffected 0 before 6.13; unaffected 6.1.176 through 6.1.*; unaffected 6.6.143 through 6.6.*; unaffected 6.12.94 through 6.12.*; unaffected 6.18.36 through 6.18.*; unaffected 7.0.13 through 7.0.*; unaffected 7.1 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/c0b8c148a7754826156993ed6442d31536ec86b4
- https://git.kernel.org/stable/c/c2e3aadc8fef7da068490597fc5582f8f362aeb2
- https://git.kernel.org/stable/c/c74990828d3c486ee44aaa68240eb3abff289d1c
- https://git.kernel.org/stable/c/517720913bd3c17a52cd55a740064f68455ab88e
- https://git.kernel.org/stable/c/2a4dc9a0ac3326e79fb58fdaae724b92127709a9
- https://git.kernel.org/stable/c/77a1f6883dc6e837bb2cb30b9b02e2f94338e2c6