CVE-2025-22118: ice: validate queue quanta parameters to prevent OOB access
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ice: validate queue quanta parameters to prevent OOB access
Add queue wraparound prevention in quanta configuration. Ensure end_qid does not overflow by validating start_qid and num_queues.
The Linux kernel CVE team has assigned CVE-2025-22118 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.13 with commit 015307754a19832dd665295f6c123289b0f37ba6 and fixed in 6.14.2 with commit 4161cf3f4c11006507f4e02bedc048a215a4b81a Issue introduced in 6.13 with commit 015307754a19832dd665295f6c123289b0f37ba6 and fixed in 6.15-rc1 with commit e2f7d3f7331b92cb820da23e8c45133305da1e63
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-22118
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/ethernet/intel/ice/ice_virtchnl.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/4161cf3f4c11006507f4e02bedc048a215a4b81a https://git.kernel.org/stable/c/e2f7d3f7331b92cb820da23e8c45133305da1e63