# CVE-2024-42247: wireguard: allowedips: avoid unaligned 64-bit memory accesses

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.98% (percentile 61, 2026-11-26)
- **CWE:** CWE-770
- **Published:** 2024-08-07T15:14:32.232Z
- **Modified:** 2026-08-05T11:36:02.565Z

## Who should check

- Anyone running Linux \>= e7096c131e5161fa3b8e52a650d7719d2857adfd, \< ae630de24efb123d7199a43256396d7758f4cb75; \>= e7096c131e5161fa3b8e52a650d7719d2857adfd, \< b4764f0ad3d68de8a0b847c05f427afb86dd54e6; \>= e7096c131e5161fa3b8e52a650d7719d2857adfd, \< 217978a29c6ceca76d3c640bf94bdf50c268d801; \>= e7096c131e5161fa3b8e52a650d7719d2857adfd, \< 6638a203abad35fa636d59ac47bdbc4bc100fd74; \>= e7096c131e5161fa3b8e52a650d7719d2857adfd, \< 2fb34bf76431e831f9863cd59adc0bd1f67b0fbf; \>= e7096c131e5161fa3b8e52a650d7719d2857adfd, \< 948f991c62a4018fb81d85804eeab3029c6209f8
- Anyone running Linux 5.6

## Description

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\]

## Affected and fixed versions

- Linux: \>= e7096c131e5161fa3b8e52a650d7719d2857adfd, \< ae630de24efb123d7199a43256396d7758f4cb75; \>= e7096c131e5161fa3b8e52a650d7719d2857adfd, \< b4764f0ad3d68de8a0b847c05f427afb86dd54e6; \>= e7096c131e5161fa3b8e52a650d7719d2857adfd, \< 217978a29c6ceca76d3c640bf94bdf50c268d801; \>= e7096c131e5161fa3b8e52a650d7719d2857adfd, \< 6638a203abad35fa636d59ac47bdbc4bc100fd74; \>= e7096c131e5161fa3b8e52a650d7719d2857adfd, \< 2fb34bf76431e831f9863cd59adc0bd1f67b0fbf; \>= e7096c131e5161fa3b8e52a650d7719d2857adfd, \< 948f991c62a4018fb81d85804eeab3029c6209f8 (cvelist)
- Linux: 5.6 (cvelist)

## Mitigation

- Upgrade Linux to 948f991c62a4018fb81d85804eeab3029c6209f8 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-42247. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-42247.md
Affected: Linux >= e7096c131e5161fa3b8e52a650d7719d2857adfd, < ae630de24efb123d7199a43256396d7758f4cb75; >= e7096c131e5161fa3b8e52a650d7719d2857adfd, < b4764f0ad3d68de8a0b847c05f427afb86dd54e6; >= e7096c131e5161fa3b8e52a650d7719d2857adfd, < 217978a29c6ceca76d3c640bf94bdf50c268d801; >= e7096c131e5161fa3b8e52a…
Fixed in: Linux 217978a29c6ceca76d3c640bf94bdf50c268d801, Linux 6638a203abad35fa636d59ac47bdbc4bc100fd74, Linux 2fb34bf76431e831f9863cd59adc0bd1f67b0fbf, Linux 948f991c62a4018fb81d85804eeab3029c6209f8

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-42247 being exploited?

There is no confirmed exploitation: CVE-2024-42247 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.98% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-42247?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2024-42247?

Linux \>= e7096c131e5161fa3b8e52a650d7719d2857adfd, \< ae630de24efb123d7199a43256396d7758f4cb75; \>= e7096c131e5161fa3b8e52a650d7719d2857adfd, \< b4764f0ad3d68de8a0b847c05f427afb86dd54e6; \>= e7096c131e5161fa3b8e52a650d7719d2857adfd, \< 217978a29c6ceca76d3c640bf94bdf50c268d801; \>= e7096c131e5161fa3b8e52a650d7719d2857adfd, \< 6638a203abad35fa636d59ac47bdbc4bc100fd74; \>= e7096c131e5161fa3b8e52a650d7719d2857adfd, \< 2fb34bf76431e831f9863cd59adc0bd1f67b0fbf; \>= e7096c131e5161fa3b8e52a650d7719d2857adfd, \< 948f991c62a4018fb81d85804eeab3029c6209f8; Linux 5.6.

### Is there a fix for CVE-2024-42247?

Yes. Fixed in Linux 217978a29c6ceca76d3c640bf94bdf50c268d801, Linux 6638a203abad35fa636d59ac47bdbc4bc100fd74, Linux 2fb34bf76431e831f9863cd59adc0bd1f67b0fbf, Linux 948f991c62a4018fb81d85804eeab3029c6209f8. Upgrade Linux to 948f991c62a4018fb81d85804eeab3029c6209f8 or later.

### How do I check if I'm affected by CVE-2024-42247?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/ae630de24efb123d7199a43256396d7758f4cb75>
- patch: <https://git.kernel.org/stable/c/b4764f0ad3d68de8a0b847c05f427afb86dd54e6>
- patch: <https://git.kernel.org/stable/c/217978a29c6ceca76d3c640bf94bdf50c268d801>
- patch: <https://git.kernel.org/stable/c/6638a203abad35fa636d59ac47bdbc4bc100fd74>
- patch: <https://git.kernel.org/stable/c/2fb34bf76431e831f9863cd59adc0bd1f67b0fbf>
- patch: <https://git.kernel.org/stable/c/948f991c62a4018fb81d85804eeab3029c6209f8>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-42247>

HTML: <https://flawdb.com/CVE-2024-42247> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-42247>
