Skip to contentSkip to conversation

CVE-2026-68128: ice: reject out-of-range ptype in ice_parser_profile_init

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 10

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

ice: reject out-of-range ptype in ice_parser_profile_init

set_bit(rslt->ptype, prof->ptypes) operates on a DECLARE_BITMAP of ICE_FLOW_PTYPE_MAX (1024) bits. Nothing prevents a malicious VF from providing ptype >= 1024 through VIRTCHNL, resulting in a write past the end of the bitmap and a kernel page fault.

Reproduced with a custom kernel module injecting a crafted VIRTCHNL_OP_ADD_RSS_CFG on E810-C QSFP (8086:1592), FW 4.91 0x800214af 1.3909.0, ICE COMMS DDP 1.3.53.0, kernel 7.1.0-rc1.

crash_parser: ice_parser_profile_init @ ffffffffc0d61b60
crash_parser: setting ptype=0xffff (max valid=1023)
crash_parser: calling ice_parser_profile_init -- expect OOB crash!

BUG: kernel NULL pointer dereference, address: 0000000000000000
Oops: Oops: 0002 [#1] SMP NOPTI
CPU: 56 UID: 0 PID: 165011 Comm: insmod Kdump: loaded Tainted: G S U OE 7.1.0-rc1 #1
Hardware name: Intel Corporation S2600BPB/S2600BPB
RIP: 0010:ice_parser_profile_init+0x2d/0x1d0 [ice]
Call Trace:
 <TASK>
 ? __pfx_ice_parser_profile_init+0x10/0x10 [ice]
 crash_init+0x127/0xff0 [crash_parser]
 do_one_initcall+0x45/0x310
 do_init_module+0x64/0x270
 init_module_from_file+0xcc/0xf0
 idempotent_init_module+0x17b/0x280
 __x64_sys_finit_module+0x6e/0xe0

Bail out early with -EINVAL when ptype is out of range.

The Linux kernel CVE team has assigned CVE-2026-68128 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.12 with commit e312b3a1e2092f612914dbc4fa5d96b4d8ff94ef and fixed in 6.12.101 with commit fe2f8d5a77adea38e889fe3d6cde1b76d4a635bf
	Issue introduced in 6.12 with commit e312b3a1e2092f612914dbc4fa5d96b4d8ff94ef and fixed in 6.18.42 with commit 5e496f2b615cec4b45537cfb5b54f36a51dc8753
	Issue introduced in 6.12 with commit e312b3a1e2092f612914dbc4fa5d96b4d8ff94ef and fixed in 7.1.6 with commit 33cc15aaf2491166dddc018b24b3b7db53ec01b2
	Issue introduced in 6.12 with commit e312b3a1e2092f612914dbc4fa5d96b4d8ff94ef and fixed in 7.2-rc5 with commit 59abb87159c53605c063f6e2ceb215b5eba43ee6

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-2026-68128

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_parser.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/fe2f8d5a77adea38e889fe3d6cde1b76d4a635bf
	https://git.kernel.org/stable/c/5e496f2b615cec4b45537cfb5b54f36a51dc8753
	https://git.kernel.org/stable/c/33cc15aaf2491166dddc018b24b3b7db53ec01b2
	https://git.kernel.org/stable/c/59abb87159c53605c063f6e2ceb215b5eba43ee6