{"id":"CVE-2026-97603","title":"In the Linux kernel, the following vulnerability has been resolved:\n\nidpf: disable DIM work before freeing q_vectors\n\nidpf never drains the Tx/Rx DIM works before freeing the memory they\nlive in","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nidpf: disable DIM work before freeing q_vectors\n\nidpf never drains the Tx/Rx DIM works before freeing the memory they\nlive in.  tx_dim and rx_dim are embedded in struct…","severity":"medium","vendor":"Linux","product":"Linux","affected":["Linux >= c2d548cad1508d334517bcbd7cd5c915cc831fc0 < 7d64d4c6bb6bb63b6cdb7de133c3ec48333b27b5","Linux >= c2d548cad1508d334517bcbd7cd5c915cc831fc0 < 7e4312953788244d47074987d40d76702cf929f1","Linux >= c2d548cad1508d334517bcbd7cd5c915cc831fc0 < cd7a1598645b6917a8676b7e2efe8d97ce68a952","Linux >= c2d548cad1508d334517bcbd7cd5c915cc831fc0 < 7dd4c829bac2916be98a3e34b41daaba7f42b4c4","Linux 6.7"],"published":"2026-09-25","updated":"2026-10-03","sourceUpdated":"2026-10-03T11:18:06.860","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-97603","references":[{"url":"https://git.kernel.org/stable/c/7d64d4c6bb6bb63b6cdb7de133c3ec48333b27b5","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/7dd4c829bac2916be98a3e34b41daaba7f42b4c4","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/7e4312953788244d47074987d40d76702cf929f1","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/cd7a1598645b6917a8676b7e2efe8d97ce68a952","label":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-97603.json"},{"url":"https://access.redhat.com/security/cve/CVE-2026-97603"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2541228"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-97603"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-97603"},{"url":"https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-97603.mbox"}],"tags":["nvd","cve.org","csaf","vex","red-hat"],"epss":0.00206,"epssPercentile":0.10487,"ingestedAt":"2026-09-25T11:06:38.902Z","cvss":5.5,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","cvssSource":"vendor","cwe":["CWE-825"],"slug":"CVE-2026-97603","body":"## Overview\n\nIn the Linux kernel, the following vulnerability has been resolved:\n\nidpf: disable DIM work before freeing q_vectors\n\nidpf never drains the Tx/Rx DIM works before freeing the memory they\nlive in.  tx_dim and rx_dim are embedded in struct idpf_q_vector, they\nare queued from the NAPI poll via net_dim(), and idpf_vport_intr_rel()\nends with kfree(rsrc->q_vectors).  Nothing in the driver cancels them.\n\nidpf_tx_dim_work() and idpf_rx_dim_work() then run on freed memory:\nidpf_vport_intr_write_itr() writes the ITR register through\nq_vector->intr_reg.tx_itr / rx_itr, void __iomem pointers loaded out of\nthe freed q_vector.  No configuration is needed to get there --\nIDPF_ITR_IS_DYNAMIC() is defined as (itr_mode) and idpf_vport_alloc()\ninitialises both modes to IDPF_ITR_DYNAMIC.\n\nDraining after idpf_vport_intr_napi_dis_all() is not enough on its own.\nidpf_net_dim() is called from inside the\n\"if (napi_complete_done(napi, work_done))\" branch of the poll, and\nnapi_complete_done() has already cleared NAPIF_STATE_SCHED by then.\nnapi_disable_locked() waits only while (val & (NAPIF_STATE_SCHED |\nNAPIF_STATE_NPSVC)), so napi_disable() can return while the poll tail is\nstill queueing the work, and a plain cancel_work_sync() would be\nre-armed behind the drain.\n\nUse disable_work_sync(): schedule_work() on a work with a non-zero\ndisable count is dropped by clear_pending_if_disabled() before\n__queue_work() is reached.\n\nMove idpf_init_dim() to idpf_vport_intr_alloc() so the works are\ninitialised on every path that can reach the drain -- the three\n\"goto intr_deinit\" sites between idpf_vport_intr_init() and\nidpf_vport_intr_ena() get there without the enable side having run.\nNothing re-enables them: rsrc->q_vectors is freed on every exit from\nidpf_vport_open() and on every idpf_vport_stop(), so the count dies with\nthe object.\n\nIt is a race, not a deterministic failure -- net_dim() only schedules\nonce DIM_NEVENTS events have accumulated and the profile index changes.\nA KASAN ifup/ifdown loop under load is the way to see it.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.\n\n## Vendor advisories\n\n- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · no fix planned: Red Hat Enterprise Linux 10, Red Hat Enterprise Linux 8, Red Hat Enterprise Linux 9, Red Hat OpenShift Container Platform 4 · updated 2026-10-17 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-97603.json)","depth":"sunlit","depthScore":30,"depthScoreParts":{"impact":30.3,"likelihood":0,"exploitation":0,"ransomware":0},"changes":[{"seq":224266,"id":"CVE-2026-97603","ts":1792325053193,"field":"cvss","old":null,"new":"5.5"},{"seq":224265,"id":"CVE-2026-97603","ts":1792325053193,"field":"severity","old":"none","new":"medium"}]}