{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2024-42247",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-07-30T07:40:12.254Z",
        "datePublished": "2024-08-07T15:14:32.232Z",
        "dateUpdated": "2026-08-05T11:36:02.565Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T11:36:02.565Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nwireguard: allowedips: avoid unaligned 64-bit memory accesses\n\nOn the parisc platform, the kernel issues kernel warnings because\nswap_endian() tries to load a 128-bit IPv6 address from an unaligned\nmemory location:\n\n Kernel: unaligned access to 0x55f4688c in wg_allowedips_insert_v6+0x2c/0x80 [wireguard] (iir 0xf3010df)\n Kernel: unaligned access to 0x55f46884 in wg_allowedips_insert_v6+0x38/0x80 [wireguard] (iir 0xf2010dc)\n\nAvoid such unaligned memory accesses by instead using the\nget_unaligned_be64() helper macro.\n\n[Jason: replace src[8] in original patch with src+8]"
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
                        "baseScore": 7.5,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:N - The same `swap_endian()` 128-bit path is executed on remotely-supplied IPv6 header bytes via `wg_allowedips_lookup_src()` on every decrypted inbound packet (receive.c:404) and via `wg_allowedips_lookup_dst()` in `wg_xmit()` for traffic a WireGuard gateway forwards into a tunnel, so received network packets reach the defect without local access.\nAC:L - On an affected architecture the misalignment is a deterministic property of netlink attribute padding and skb header placement, so every insert or IPv6 lookup triggers it with no race, memory-layout grooming, or victim state required.\nPR:N - On a WireGuard routing gateway an unauthenticated off-path sender whose packets are forwarded into the tunnel drives `wg_allowedips_lookup_dst()` with no credentials at all; the alternative paths need only an authenticated peer or namespaced CAP_NET_ADMIN obtainable via `unshare -Urn`, so the higher of these is None.\nUI:N - The vulnerable code runs entirely in the kernel's packet transmit/receive and netlink configuration paths; no administrator or user action is needed beyond a WireGuard interface being configured.\nS:U - The fault and its consequences are confined to the kernel of the affected host, with no crossing of a VM, IOMMU, or sandbox authority boundary.\nC:N - The unaligned loads read only within a length-validated 16-byte `in6_addr`/netlink attribute or a bounds-checked IPv6 header, so no out-of-bounds data is read and nothing is disclosed to the attacker.\nI:N - There is no out-of-bounds or attacker-influenced write; on architectures with a fixup handler the emulated load yields the correct value, leaving the allowedips trie and all other kernel state intact.\nA:H - On architectures lacking hardware unaligned 64-bit access the load raises a kernel-mode alignment abort, and where no fixup handler exists (ARM without CONFIG_ALIGNMENT_TRAP, or parisc when emulation fails via `die_if_kernel`) this becomes an unrecoverable oops; even when emulated, a remote packet flow forces a trap per packet, degrading the system."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/net/wireguard/allowedips.c"
                    ],
                    "versions": [
                        {
                            "version": "e7096c131e5161fa3b8e52a650d7719d2857adfd",
                            "lessThan": "ae630de24efb123d7199a43256396d7758f4cb75",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e7096c131e5161fa3b8e52a650d7719d2857adfd",
                            "lessThan": "b4764f0ad3d68de8a0b847c05f427afb86dd54e6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e7096c131e5161fa3b8e52a650d7719d2857adfd",
                            "lessThan": "217978a29c6ceca76d3c640bf94bdf50c268d801",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e7096c131e5161fa3b8e52a650d7719d2857adfd",
                            "lessThan": "6638a203abad35fa636d59ac47bdbc4bc100fd74",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e7096c131e5161fa3b8e52a650d7719d2857adfd",
                            "lessThan": "2fb34bf76431e831f9863cd59adc0bd1f67b0fbf",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "e7096c131e5161fa3b8e52a650d7719d2857adfd",
                            "lessThan": "948f991c62a4018fb81d85804eeab3029c6209f8",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/net/wireguard/allowedips.c"
                    ],
                    "versions": [
                        {
                            "version": "5.6",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.6",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.222",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.163",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.100",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.41",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.9.10",
                            "lessThanOrEqual": "6.9.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.10",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.6",
                                    "versionEndExcluding": "5.10.222"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.6",
                                    "versionEndExcluding": "5.15.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.6",
                                    "versionEndExcluding": "6.1.100"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.6",
                                    "versionEndExcluding": "6.6.41"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.6",
                                    "versionEndExcluding": "6.9.10"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.6",
                                    "versionEndExcluding": "6.10"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/ae630de24efb123d7199a43256396d7758f4cb75"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b4764f0ad3d68de8a0b847c05f427afb86dd54e6"
                },
                {
                    "url": "https://git.kernel.org/stable/c/217978a29c6ceca76d3c640bf94bdf50c268d801"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6638a203abad35fa636d59ac47bdbc4bc100fd74"
                },
                {
                    "url": "https://git.kernel.org/stable/c/2fb34bf76431e831f9863cd59adc0bd1f67b0fbf"
                },
                {
                    "url": "https://git.kernel.org/stable/c/948f991c62a4018fb81d85804eeab3029c6209f8"
                }
            ],
            "title": "wireguard: allowedips: avoid unaligned 64-bit memory accesses",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2024-42247",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2024-09-10T16:13:28.429050Z"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-09-11T17:34:31.003Z"
                }
            },
            {
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"
                    }
                ],
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2025-11-03T22:02:49.575Z"
                }
            }
        ]
    }
}