wireguard: allowedips: avoid unaligned 64-bit memory accesses
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e7096c131e5161fa3b8e52a650d7719d2857adfd · < 948f991c62a4018fb81d85804eeab3029c6209f8| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
wireguard: allowedips: avoid unaligned 64-bit memory accesses
On the parisc platform, the kernel issues kernel warnings because swap_endian() tries to load a 128-bit IPv6 address from an unaligned memory location:
Kernel: unaligned access to 0x55f4688c in wg_allowedips_insert_v6+0x2c/0x80 [wireguard] (iir 0xf3010df) Kernel: unaligned access to 0x55f46884 in wg_allowedips_insert_v6+0x38/0x80 [wireguard] (iir 0xf2010dc)
Avoid such unaligned memory accesses by instead using the get_unaligned_be64() helper macro.
[Jason: replace src[8] in original patch with src+8]
From the CVE record · Linux
On the parisc platform, WireGuard’s allowedips code can make unaligned memory accesses while processing an IPv6 address, causing kernel warnings. The input does not specify an attacker action, access requirements, or user interaction.
Engineers running the Linux kernel with WireGuard on parisc should check their kernel version; affected versions are not specified.