{"id":"CVE-2025-22118","state":"PUBLISHED","title":"ice: validate queue quanta parameters to prevent OOB access","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nice: validate queue quanta parameters to prevent OOB access\n\nAdd queue wraparound prevention in quanta configuration.\nEnsure end_qid does not overflow by validating start_qid and num_queues.","publishedAt":"2025-04-16T14:13:04.013Z","updatedAt":"2026-08-05T11:56:55.429Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"015307754a19832dd665295f6c123289b0f37ba6","status":"affected","lessThan":"4161cf3f4c11006507f4e02bedc048a215a4b81a","versionType":"git"},{"version":"015307754a19832dd665295f6c123289b0f37ba6","status":"affected","lessThan":"e2f7d3f7331b92cb820da23e8c45133305da1e63","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/intel/ice/ice_virtchnl.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.13","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.c"]}],"references":["https://git.kernel.org/stable/c/4161cf3f4c11006507f4e02bedc048a215a4b81a","https://git.kernel.org/stable/c/e2f7d3f7331b92cb820da23e8c45133305da1e63"],"weaknesses":[],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/22xxx/CVE-2025-22118.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-22118","state":"PUBLISHED","datePublished":"2025-04-16T14:13:04.013Z","dateUpdated":"2026-08-05T11:56:55.429Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-12-29T08:45:45.823Z"},"containers":{"cna":{"title":"ice: validate queue quanta parameters to prevent OOB access","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nice: validate queue quanta parameters to prevent OOB access\n\nAdd queue wraparound prevention in quanta configuration.\nEnsure end_qid does not overflow by validating start_qid and num_queues."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"015307754a19832dd665295f6c123289b0f37ba6","status":"affected","lessThan":"4161cf3f4c11006507f4e02bedc048a215a4b81a","versionType":"git"},{"version":"015307754a19832dd665295f6c123289b0f37ba6","status":"affected","lessThan":"e2f7d3f7331b92cb820da23e8c45133305da1e63","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/intel/ice/ice_virtchnl.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.13","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.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4161cf3f4c11006507f4e02bedc048a215a4b81a"},{"url":"https://git.kernel.org/stable/c/e2f7d3f7331b92cb820da23e8c45133305da1e63"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The malicious input is a virtchnl `VIRTCHNL_OP_CONFIG_QUANTA` message delivered over the SR-IOV PF/VF mailbox on the PCIe bus, not over any network protocol; the attacker must be executing code in a guest VM (or container) that owns an assigned ice VF.\nAC:L - Both `start_queue_id` and `num_queues` are attacker-supplied `u16` fields with no timing, race, or memory-layout dependency, and the required `VIRTCHNL_VF_OFFLOAD_QOS` capability is granted by the PF solely on the VF's own request, so the condition is triggered deterministically on the first message.\nPR:L - The attacker needs no privileges on the host at all — only the ability to drive an already-assigned VF's mailbox from inside its own security domain (guest kernel/VF driver), which is the baseline privilege level of any SR-IOV tenant.\nUI:N - The PF processes VF mailbox messages asynchronously from the service task with no host administrator or user action required.\nS:C - SR-IOV is a security boundary: the vulnerable PF driver enforces isolation of untrusted VF tenants, and a VF corrupting host kernel memory impacts the host OS, a separate security authority from the guest — the same pattern as a guest-to-host escape.\nC:H - The vendor-characterized out-of-bounds access reads a ring pointer from beyond the `tx_rings[]` array, and such heap corruption in the host kernel can be leveraged to disclose arbitrary host memory across the guest/host boundary.\nI:H - The claimed OOB access writes an attacker-influenced `quanta_prof_id` through a pointer sourced from past the end of `vsi->tx_rings[]`, giving a write primitive into host kernel memory usable for control-flow hijack.\nA:H - Dereferencing an out-of-bounds ring pointer in host kernel context oopses or panics the hypervisor host, and the message can be replayed repeatedly by the VF."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:56:55.429Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.14.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.15"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}