CVE-2024-42247
wireguard: allowedips: avoid unaligned 64-bit memory accesses
Check your servers for CVE-2024-42247
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-42247 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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]
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.73%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 55.4% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 10 Sep 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from e7096c131e5161fa3b8e52a650d7719d2857adfd, before ae630de24efb123d7199a43256396d7758f4cb75 affected from e7096c131e5161fa3b8e52a650d7719d2857adfd, before b4764f0ad3d68de8a0b847c05f427afb86dd54e6 affected from e7096c131e5161fa3b8e52a650d7719d2857adfd, before 217978a29c6ceca76d3c640bf94bdf50c268d801 affected from e7096c131e5161fa3b8e52a650d7719d2857adfd, before 6638a203abad35fa636d59ac47bdbc4bc100fd74 affected from e7096c131e5161fa3b8e52a650d7719d2857adfd, before 2fb34bf76431e831f9863cd59adc0bd1f67b0fbf affected from e7096c131e5161fa3b8e52a650d7719d2857adfd, before 948f991c62a4018fb81d85804eeab3029c6209f8
Other versions: unaffected
|
| Linux |
affected 5.6 unaffected before 5.6 unaffected from 5.10.222 up to and including 5.10.* unaffected from 5.15.163 up to and including 5.15.* unaffected from 6.1.100 up to and including 6.1.* unaffected from 6.6.41 up to and including 6.6.* unaffected from 6.9.10 up to and including 6.9.* unaffected 6.10 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-42247 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-42247
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-42247
trivy image --scanners vuln IMAGE | grep CVE-2024-42247
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/ae630de24efb123d7199a43256396d7758f4cb75 git.kernel.org
- https://git.kernel.org/stable/c/b4764f0ad3d68de8a0b847c05f427afb86dd54e6 git.kernel.org
- https://git.kernel.org/stable/c/217978a29c6ceca76d3c640bf94bdf50c268d801 git.kernel.org
- https://git.kernel.org/stable/c/6638a203abad35fa636d59ac47bdbc4bc100fd74 git.kernel.org
- https://git.kernel.org/stable/c/2fb34bf76431e831f9863cd59adc0bd1f67b0fbf git.kernel.org
- https://git.kernel.org/stable/c/948f991c62a4018fb81d85804eeab3029c6209f8 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html lists.debian.org
Source: the record CVE-2024-42247 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse