{"api_version":"1","generated_at":"2026-11-30T18:22:09+00:00","cve":"CVE-2026-139565","urls":{"html":"https://cve.report/CVE-2026-139565","api":"https://cve.report/api/cve/CVE-2026-139565.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139565","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139565"},"summary":{"title":"ice: size ring stats arrays from the final queue count","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nice: size ring stats arrays from the final queue count\n\nThe ring stats arrays were sized in one place and indexed in another,\nwith nothing reconciling the two. ice_vsi_alloc_stat_arrays() gave up as\nsoon as a container existed:\n\n\tif (pf->vsi_stats[vsi->idx])\n\t/* realloc will happen in rebuild path */\n\t\treturn 0;\n\nwhile ice_vsi_alloc_ring_stats() walks the arrays with\nice_for_each_alloc_txq() / ice_for_each_alloc_rxq(), that is, up to\nvsi->alloc_txq / vsi->alloc_rxq. Whenever the arrays are shorter than\nthe count ice_vsi_set_num_qs() ends up computing, that loop reads and\nstores past the end of the kmalloc'ed pointer arrays.\n\nDeferring to \"the rebuild path\" does not hold. It cannot get the size\nright, and some paths never call it at all.\n\nice_devlink_reinit_down() is one of the latter. It calls ice_vsi_decfg()\ndirectly, which does not free pf->vsi_stats[], and nothing on the way\ndown releases the main VSI's entry either: ice_dealloc_vsis() runs only\nfrom ice_init()/ice_deinit(), and the single entry that ice_unload()\ndoes drop is the control VSI's, via ice_deinit_fdir(). The main VSI's\narrays therefore survive the reload, while ice_devlink_reinit_up() runs\nice_vsi_cfg() and recomputes the count from\nnetif_get_num_default_rss_queues(), which follows cpu_online_mask.\nSizing the arrays with most CPUs offline and then onlining them is\nenough, no VF involved:\n\n  for c in /sys/devices/system/cpu/cpu[0-9]*/online; do echo 0 > $c; done\n  echo 0000:18:00.0 > /sys/bus/pci/drivers/ice/unbind\n  echo 0000:18:00.0 > /sys/bus/pci/drivers/ice/bind\n  for c in /sys/devices/system/cpu/cpu[0-9]*/online; do echo 1 > $c; done\n  devlink dev reload pci/0000:18:00.0 action driver_reinit\n\nThe unbind/bind is what makes the arrays actually be allocated at the\nsmall size; a reload alone only reuses them.\n\nThe read then runs off the end of tx_ring_stats[] and picks up whatever\nfollows it in kmalloc-32. Here that was a string, 0x74756f5f6c697475\nspelling \"util_out\" in memory order. It is stored into ring->ring_stats\nand faults on the first dereference, in ice_setup_tx_ring(), call trace:\n\n RIP: 0010:ice_setup_tx_ring+0x8d/0xe0 [ice]\n  ice_vsi_setup_tx_rings+0x2a/0x80 [ice]\n  ice_vsi_open+0x28/0x170 [ice]\n  ice_open_internal+0xc9/0x160 [ice]\n  __dev_open+0x138/0x2b0\n  __dev_change_flags+0x1d5/0x250\n  netif_change_flags+0x21/0x60\n  do_setlink.constprop.0+0x336/0xcf0\n  rtnl_newlink+0x4a4/0x9b0\n\nEven where the rebuild path does run, it sizes the arrays before\nice_vsi_decfg() returns the queues to the PF pool, and for an\nICE_VSI_PF VSI with no explicit request it derives the count from that\nshared pool. Nothing serializes it against the recount in\nice_vsi_set_num_qs(), so a concurrent release, say\n\"echo 0 > sriov_numvfs\", leaves the final count larger than the arrays\nthat were already installed.\n\nice_vsi_alloc_stat_arrays() runs from ice_vsi_cfg_def(), right after\nice_vsi_alloc_def() called ice_vsi_set_num_qs(), so it is the first\nplace where the queue count is final. Make it the only authority: keep\nthe existing arrays when they are already long enough, and otherwise\ngrow them with ice_vsi_install_stat_arrays(), which carries the\nsurviving entries over. The check only forces a grow: while both arrays\nare long enough they are kept, an oversized one being merely wasteful.\nOnce either is too short the whole container is replaced, and then the\nother one follows the final count too, shrinking if that is what it\ntakes.\n\nMichal Schmidt hit the same corruption through the VF path, where a\nguest raises its queue count with VIRTCHNL_OP_REQUEST_QUEUES and the\nfollowing VF reset reconfigures the VSI with the larger count while the\nold, shorter arrays are still installed:\n\n BUG: KASAN: slab-out-of-bounds in ice_vsi_alloc_ring_stats+0x385/0x4a0 [ice]\n Workqueue: ice ice_service_task [ice]\n Call Trace:\n  kasan_report+0xd7/0x120\n  ice_vsi_alloc_ring_stats+0x385/0x4a0 [ice]\n  ice_vsi_cfg_def+0\n---truncated---","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:37","updated_at":"2026-11-30 14:19:37"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/f1c3b87896e656c1940a1dc3e2f286e000c62da8","name":"https://git.kernel.org/stable/c/f1c3b87896e656c1940a1dc3e2f286e000c62da8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3e010b031f15c6fd56eeea6d0800f02038e29fbd","name":"https://git.kernel.org/stable/c/3e010b031f15c6fd56eeea6d0800f02038e29fbd","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139565","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139565","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 288ecf491b1654845ae99c79b7fefad2d3ea47bd 3e010b031f15c6fd56eeea6d0800f02038e29fbd git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 288ecf491b1654845ae99c79b7fefad2d3ea47bd f1c3b87896e656c1940a1dc3e2f286e000c62da8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.2","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.2 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/net/ethernet/intel/ice/ice_lib.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"3e010b031f15c6fd56eeea6d0800f02038e29fbd","status":"affected","version":"288ecf491b1654845ae99c79b7fefad2d3ea47bd","versionType":"git"},{"lessThan":"f1c3b87896e656c1940a1dc3e2f286e000c62da8","status":"affected","version":"288ecf491b1654845ae99c79b7fefad2d3ea47bd","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/net/ethernet/intel/ice/ice_lib.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.2"},{"lessThan":"6.2","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.2","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.2","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nice: size ring stats arrays from the final queue count\n\nThe ring stats arrays were sized in one place and indexed in another,\nwith nothing reconciling the two. ice_vsi_alloc_stat_arrays() gave up as\nsoon as a container existed:\n\n\tif (pf->vsi_stats[vsi->idx])\n\t/* realloc will happen in rebuild path */\n\t\treturn 0;\n\nwhile ice_vsi_alloc_ring_stats() walks the arrays with\nice_for_each_alloc_txq() / ice_for_each_alloc_rxq(), that is, up to\nvsi->alloc_txq / vsi->alloc_rxq. Whenever the arrays are shorter than\nthe count ice_vsi_set_num_qs() ends up computing, that loop reads and\nstores past the end of the kmalloc'ed pointer arrays.\n\nDeferring to \"the rebuild path\" does not hold. It cannot get the size\nright, and some paths never call it at all.\n\nice_devlink_reinit_down() is one of the latter. It calls ice_vsi_decfg()\ndirectly, which does not free pf->vsi_stats[], and nothing on the way\ndown releases the main VSI's entry either: ice_dealloc_vsis() runs only\nfrom ice_init()/ice_deinit(), and the single entry that ice_unload()\ndoes drop is the control VSI's, via ice_deinit_fdir(). The main VSI's\narrays therefore survive the reload, while ice_devlink_reinit_up() runs\nice_vsi_cfg() and recomputes the count from\nnetif_get_num_default_rss_queues(), which follows cpu_online_mask.\nSizing the arrays with most CPUs offline and then onlining them is\nenough, no VF involved:\n\n  for c in /sys/devices/system/cpu/cpu[0-9]*/online; do echo 0 > $c; done\n  echo 0000:18:00.0 > /sys/bus/pci/drivers/ice/unbind\n  echo 0000:18:00.0 > /sys/bus/pci/drivers/ice/bind\n  for c in /sys/devices/system/cpu/cpu[0-9]*/online; do echo 1 > $c; done\n  devlink dev reload pci/0000:18:00.0 action driver_reinit\n\nThe unbind/bind is what makes the arrays actually be allocated at the\nsmall size; a reload alone only reuses them.\n\nThe read then runs off the end of tx_ring_stats[] and picks up whatever\nfollows it in kmalloc-32. Here that was a string, 0x74756f5f6c697475\nspelling \"util_out\" in memory order. It is stored into ring->ring_stats\nand faults on the first dereference, in ice_setup_tx_ring(), call trace:\n\n RIP: 0010:ice_setup_tx_ring+0x8d/0xe0 [ice]\n  ice_vsi_setup_tx_rings+0x2a/0x80 [ice]\n  ice_vsi_open+0x28/0x170 [ice]\n  ice_open_internal+0xc9/0x160 [ice]\n  __dev_open+0x138/0x2b0\n  __dev_change_flags+0x1d5/0x250\n  netif_change_flags+0x21/0x60\n  do_setlink.constprop.0+0x336/0xcf0\n  rtnl_newlink+0x4a4/0x9b0\n\nEven where the rebuild path does run, it sizes the arrays before\nice_vsi_decfg() returns the queues to the PF pool, and for an\nICE_VSI_PF VSI with no explicit request it derives the count from that\nshared pool. Nothing serializes it against the recount in\nice_vsi_set_num_qs(), so a concurrent release, say\n\"echo 0 > sriov_numvfs\", leaves the final count larger than the arrays\nthat were already installed.\n\nice_vsi_alloc_stat_arrays() runs from ice_vsi_cfg_def(), right after\nice_vsi_alloc_def() called ice_vsi_set_num_qs(), so it is the first\nplace where the queue count is final. Make it the only authority: keep\nthe existing arrays when they are already long enough, and otherwise\ngrow them with ice_vsi_install_stat_arrays(), which carries the\nsurviving entries over. The check only forces a grow: while both arrays\nare long enough they are kept, an oversized one being merely wasteful.\nOnce either is too short the whole container is replaced, and then the\nother one follows the final count too, shrinking if that is what it\ntakes.\n\nMichal Schmidt hit the same corruption through the VF path, where a\nguest raises its queue count with VIRTCHNL_OP_REQUEST_QUEUES and the\nfollowing VF reset reconfigures the VSI with the larger count while the\nold, shorter arrays are still installed:\n\n BUG: KASAN: slab-out-of-bounds in ice_vsi_alloc_ring_stats+0x385/0x4a0 [ice]\n Workqueue: ice ice_service_task [ice]\n Call Trace:\n  kasan_report+0xd7/0x120\n  ice_vsi_alloc_ring_stats+0x385/0x4a0 [ice]\n  ice_vsi_cfg_def+0\n---truncated---"}],"providerMetadata":{"dateUpdated":"2026-11-30T13:35:56.062Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/3e010b031f15c6fd56eeea6d0800f02038e29fbd"},{"url":"https://git.kernel.org/stable/c/f1c3b87896e656c1940a1dc3e2f286e000c62da8"}],"title":"ice: size ring stats arrays from the final queue count","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139565","datePublished":"2026-11-30T13:35:56.062Z","dateReserved":"2026-11-30T13:22:15.941Z","dateUpdated":"2026-11-30T13:35:56.062Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:37","lastModifiedDate":"2026-11-30 14:19:37","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139565","Ordinal":"1","Title":"ice: size ring stats arrays from the final queue count","CVE":"CVE-2026-139565","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139565","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nice: size ring stats arrays from the final queue count\n\nThe ring stats arrays were sized in one place and indexed in another,\nwith nothing reconciling the two. ice_vsi_alloc_stat_arrays() gave up as\nsoon as a container existed:\n\n\tif (pf->vsi_stats[vsi->idx])\n\t/* realloc will happen in rebuild path */\n\t\treturn 0;\n\nwhile ice_vsi_alloc_ring_stats() walks the arrays with\nice_for_each_alloc_txq() / ice_for_each_alloc_rxq(), that is, up to\nvsi->alloc_txq / vsi->alloc_rxq. Whenever the arrays are shorter than\nthe count ice_vsi_set_num_qs() ends up computing, that loop reads and\nstores past the end of the kmalloc'ed pointer arrays.\n\nDeferring to \"the rebuild path\" does not hold. It cannot get the size\nright, and some paths never call it at all.\n\nice_devlink_reinit_down() is one of the latter. It calls ice_vsi_decfg()\ndirectly, which does not free pf->vsi_stats[], and nothing on the way\ndown releases the main VSI's entry either: ice_dealloc_vsis() runs only\nfrom ice_init()/ice_deinit(), and the single entry that ice_unload()\ndoes drop is the control VSI's, via ice_deinit_fdir(). The main VSI's\narrays therefore survive the reload, while ice_devlink_reinit_up() runs\nice_vsi_cfg() and recomputes the count from\nnetif_get_num_default_rss_queues(), which follows cpu_online_mask.\nSizing the arrays with most CPUs offline and then onlining them is\nenough, no VF involved:\n\n  for c in /sys/devices/system/cpu/cpu[0-9]*/online; do echo 0 > $c; done\n  echo 0000:18:00.0 > /sys/bus/pci/drivers/ice/unbind\n  echo 0000:18:00.0 > /sys/bus/pci/drivers/ice/bind\n  for c in /sys/devices/system/cpu/cpu[0-9]*/online; do echo 1 > $c; done\n  devlink dev reload pci/0000:18:00.0 action driver_reinit\n\nThe unbind/bind is what makes the arrays actually be allocated at the\nsmall size; a reload alone only reuses them.\n\nThe read then runs off the end of tx_ring_stats[] and picks up whatever\nfollows it in kmalloc-32. Here that was a string, 0x74756f5f6c697475\nspelling \"util_out\" in memory order. It is stored into ring->ring_stats\nand faults on the first dereference, in ice_setup_tx_ring(), call trace:\n\n RIP: 0010:ice_setup_tx_ring+0x8d/0xe0 [ice]\n  ice_vsi_setup_tx_rings+0x2a/0x80 [ice]\n  ice_vsi_open+0x28/0x170 [ice]\n  ice_open_internal+0xc9/0x160 [ice]\n  __dev_open+0x138/0x2b0\n  __dev_change_flags+0x1d5/0x250\n  netif_change_flags+0x21/0x60\n  do_setlink.constprop.0+0x336/0xcf0\n  rtnl_newlink+0x4a4/0x9b0\n\nEven where the rebuild path does run, it sizes the arrays before\nice_vsi_decfg() returns the queues to the PF pool, and for an\nICE_VSI_PF VSI with no explicit request it derives the count from that\nshared pool. Nothing serializes it against the recount in\nice_vsi_set_num_qs(), so a concurrent release, say\n\"echo 0 > sriov_numvfs\", leaves the final count larger than the arrays\nthat were already installed.\n\nice_vsi_alloc_stat_arrays() runs from ice_vsi_cfg_def(), right after\nice_vsi_alloc_def() called ice_vsi_set_num_qs(), so it is the first\nplace where the queue count is final. Make it the only authority: keep\nthe existing arrays when they are already long enough, and otherwise\ngrow them with ice_vsi_install_stat_arrays(), which carries the\nsurviving entries over. The check only forces a grow: while both arrays\nare long enough they are kept, an oversized one being merely wasteful.\nOnce either is too short the whole container is replaced, and then the\nother one follows the final count too, shrinking if that is what it\ntakes.\n\nMichal Schmidt hit the same corruption through the VF path, where a\nguest raises its queue count with VIRTCHNL_OP_REQUEST_QUEUES and the\nfollowing VF reset reconfigures the VSI with the larger count while the\nold, shorter arrays are still installed:\n\n BUG: KASAN: slab-out-of-bounds in ice_vsi_alloc_ring_stats+0x385/0x4a0 [ice]\n Workqueue: ice ice_service_task [ice]\n Call Trace:\n  kasan_report+0xd7/0x120\n  ice_vsi_alloc_ring_stats+0x385/0x4a0 [ice]\n  ice_vsi_cfg_def+0\n---truncated---","Type":"Description","Title":"ice: size ring stats arrays from the final queue count"}]}}}