{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2025-22117",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-12-29T08:45:45.823Z",
        "datePublished": "2025-04-16T14:13:03.099Z",
        "dateUpdated": "2026-08-05T11:56:54.360Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T11:56:54.360Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nice: fix using untrusted value of pkt_len in ice_vc_fdir_parse_raw()\n\nFix using the untrusted value of proto->raw.pkt_len in function\nice_vc_fdir_parse_raw() by verifying if it does not exceed the\nVIRTCHNL_MAX_SIZE_RAW_PACKET value."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:H",
                        "baseScore": 8.7,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The attacker reaches the code by writing a crafted VIRTCHNL_OP_ADD_FDIR_FILTER message to the SR-IOV VF-to-PF mailbox, which requires local control of a VF PCI function (typically a passed-through VF inside a tenant guest VM), not network access. No remote or adjacent-network protocol can reach `ice_vc_fdir_parse_raw()`.\nAC:L - A single deterministic message with `tunnel_level=0`, `count=0`, and `raw.pkt_len=0xFFFF` triggers the 61 KB out-of-bounds read every time; there is no race, no memory-layout dependency, and the only prerequisites (FD enabled, VIRTCHNL_VF_OFFLOAD_FDIR_PF) are defaults or self-negotiated by the attacking VF.\nPR:L - The attacker needs control of the VF mailbox — i.e. root inside the guest VM or container that the host administrator deliberately handed the VF to — which is a low-privileged principal from the host kernel's security authority, with no host-side credential or capability check anywhere on the path.\nUI:N - The PF driver processes VF mailbox messages autonomously in the ice service task; no host administrator or user action is required beyond the pre-existing SR-IOV configuration.\nS:C - The ice PF driver is the isolation enforcement point between a VF and the host, so a guest-owned VF causing host kernel heap disclosure and mis-programming of the shared FDIR pipeline crosses the guest-to-host boundary and impacts the PF and all other VFs — resources outside the attacking VF's security authority.\nC:H - Up to ~61 KB of adjacent host kernel heap is read out of bounds past the 4096-byte mailbox buffer — far beyond a \"strictly bounded few bytes\" — and the leaked bytes are copied into `prof->fv[].spec/msk` and the FDIR training packet programmed into hardware, giving the VF a matching-behaviour oracle to recover them.\nI:L - There is no out-of-bounds write — every downstream copy is bounded (`ICE_PARSER_MAX_PKT_LEN` clamp, `ICE_PARSER_FV_MAX` cap, `u8` `conf->pkt_len`) — but the attacker does cause unintended kernel heap contents to be programmed as FDIR profiles and training packets into the shared NIC pipeline, a limited modification of host and device state affecting flow steering.\nA:H - Reading ~61 KB past a kmalloc-4096 object can walk into an unmapped direct-map page, a KFENCE guard page, or a DEBUG_PAGEALLOC/rodata_full hole and oops the host in the mailbox work context, and on KASAN builds it is a guaranteed slab-out-of-bounds splat — a crash of the host kernel and its networking."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c"
                    ],
                    "versions": [
                        {
                            "version": "99f419df8a5c5e1a58822203989f77712d01d410",
                            "lessThan": "363377af2c9e874fbba3a199408f8ec7b37906f7",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "99f419df8a5c5e1a58822203989f77712d01d410",
                            "lessThan": "362f704ba73a359db9cded567e891d9a8f081875",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "99f419df8a5c5e1a58822203989f77712d01d410",
                            "lessThan": "1388dd564183a5a18ec4a966748037736b5653c5",
                            "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/ethernet/intel/ice/ice_virtchnl_fdir.c"
                    ],
                    "versions": [
                        {
                            "version": "6.12",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.12",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.80",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.14.2",
                            "lessThanOrEqual": "6.14.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.15",
                            "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": "6.12",
                                    "versionEndExcluding": "6.12.80"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.12",
                                    "versionEndExcluding": "6.14.2"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.12",
                                    "versionEndExcluding": "6.15"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/363377af2c9e874fbba3a199408f8ec7b37906f7"
                },
                {
                    "url": "https://git.kernel.org/stable/c/362f704ba73a359db9cded567e891d9a8f081875"
                },
                {
                    "url": "https://git.kernel.org/stable/c/1388dd564183a5a18ec4a966748037736b5653c5"
                }
            ],
            "title": "ice: fix using untrusted value of pkt_len in ice_vc_fdir_parse_raw()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}