arm64: RSI: fix field-spanning write warning in attestation token init
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 221049874b6a78c7d87bc826581b0695cd338e2b, Kernel d29a8ee271da17b5e32d7a76a9c78d43f66447ca and Kernel e505092cb200d430d5b8d8d3e926d45f29474ba3.
In the Linux kernel, the following vulnerability has been resolved: arm64: RSI: fix field-spanning write warning in attestation token init The challenge is passed in registers a1 through a8. However, copying to ®s.a1 makes FORTIFY treat the destination as the single a1 field, resulting in a field-spanning write warning. [1] Overlay the SMCCC register structure with an RSI-specific argument layout and copy the challenge into an explicit 64-byte array. This keeps the existing a1-a8 argument encoding while giving the copy a correctly sized destination object. [1] memcpy: detected field-spanning write (size 64) of single field "®s.a1" at ./arch/arm64/include/asm/rsi_cmds.h:119 (size 8) WARNING: ./arch/arm64/include/asm/rsi_cmds.h:119 at rsi_attestation_token_init+0xdc/0xf8 [arm_cca_guest], CPU#0: cat/3314
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.13, >=b880a80011f56880f32bde47fc6af313359f926b <221049874b6a78c7d87bc826581b0695cd338e2b, >=b880a80011f56880f32bde47fc6af313359f926b <d29a8ee271da17b5e32d7a76a9c78d43f66447ca, >=b880a80011f56880f32bde47fc6af313359f926b <e505092cb200d430d5b8d8d3e926d45f29474ba3 | 221049874b6a78c7d87bc826581b0695cd338e2b, d29a8ee271da17b5e32d7a76a9c78d43f66447ca, e505092cb200d430d5b8d8d3e926d45f29474ba3 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket