{"id":"CVE-2025-22117","state":"PUBLISHED","title":"ice: fix using untrusted value of pkt_len in ice_vc_fdir_parse_raw()","description":"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.","publishedAt":"2025-04-16T14:13:03.099Z","updatedAt":"2026-10-15T21:51:57.841Z","severity":{"score":8.7,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"99f419df8a5c5e1a58822203989f77712d01d410","status":"affected","lessThan":"363377af2c9e874fbba3a199408f8ec7b37906f7","versionType":"git"},{"version":"99f419df8a5c5e1a58822203989f77712d01d410","status":"affected","lessThan":"362f704ba73a359db9cded567e891d9a8f081875","versionType":"git"},{"version":"99f419df8a5c5e1a58822203989f77712d01d410","status":"affected","lessThan":"1388dd564183a5a18ec4a966748037736b5653c5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.80","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.2","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c"]}],"references":["https://git.kernel.org/stable/c/363377af2c9e874fbba3a199408f8ec7b37906f7","https://git.kernel.org/stable/c/362f704ba73a359db9cded567e891d9a8f081875","https://git.kernel.org/stable/c/1388dd564183a5a18ec4a966748037736b5653c5"],"weaknesses":[],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/22xxx/CVE-2025-22117.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-22117","state":"PUBLISHED","datePublished":"2025-04-16T14:13:03.099Z","dateUpdated":"2026-10-15T21:51:57.841Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-12-29T08:45:45.823Z"},"containers":{"cna":{"title":"ice: fix using untrusted value of pkt_len in ice_vc_fdir_parse_raw()","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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"99f419df8a5c5e1a58822203989f77712d01d410","status":"affected","lessThan":"363377af2c9e874fbba3a199408f8ec7b37906f7","versionType":"git"},{"version":"99f419df8a5c5e1a58822203989f77712d01d410","status":"affected","lessThan":"362f704ba73a359db9cded567e891d9a8f081875","versionType":"git"},{"version":"99f419df8a5c5e1a58822203989f77712d01d410","status":"affected","lessThan":"1388dd564183a5a18ec4a966748037736b5653c5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.80","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.14.2","status":"unaffected","lessThanOrEqual":"6.14.*","versionType":"semver"},{"version":"6.15","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/intel/ice/ice_virtchnl_fdir.c"]}],"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"}],"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."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:56:54.360Z"},"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"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2025-22117","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-10-15T21:44:29.069196Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T21:51:57.841Z"}}]}}}