Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC62523C8AE for ; Fri, 24 Apr 2026 14:47:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777042069; cv=none; b=XmcC6CX+mvF+td0uggwzlv5QcbGHmCB94ZqE//De1difzC+3XBUXZey42lfUPnzpLORjkm62LeeqjsGf+LEWGQpnEXNyiV0NadqOHlCdCdECBcBa3DRO8k2KH7FVjizi17FmDxuebTmJdAb2PvnTvME0bpDkNlKYrjH85VcU/yA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777042069; c=relaxed/simple; bh=I/BnCJS8l5bq6evdn9RmB4h7TCGqjqUggyZl21TPuRQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ef1JTRtMgq4HdPtpSrli8CrXbfJfDp82QhHMFT/2gcCuar80wAmbpyrdKSsaYtKYvzAqHTHC8rYiH6WGRgi9j1UAOGfUFAU7eLmlk/sqUGe3YvpE3g5gfLFme9fbZY9LkTUO1cdUxGyVtcvpTYEzUDTppFaSAjJRE69MAZFdGG8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QSh5el6O; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="QSh5el6O" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42EBAC19425; Fri, 24 Apr 2026 14:47:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777042069; bh=I/BnCJS8l5bq6evdn9RmB4h7TCGqjqUggyZl21TPuRQ=; h=From:To:Cc:Subject:Date:Reply-To:From; b=QSh5el6ONkMFdu54WETy/Uurxsk6bPHJwUuGPhDUb+KBcxGYSx9haHWarQCC+pgKZ yl9q1DV2e84f3vG/6a+fWpKkySINN1ep8xf/DDDCf+Wd0U4eWfVZDaae7SBqDNkIaT L8BV/LfuwX+k1q8Tt8MGxBQw4sUrLhdhNLIddCvY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31647: idpf: fix PREEMPT_RT raw/bh spinlock nesting for async VC handling Date: Fri, 24 Apr 2026 16:46:09 +0200 Message-ID: <2026042459-CVE-2026-31647-3188@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=4593; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nbwFs+cAgoyt8cAi93aOnpAjkVM8N/fbDC4FZhXVTkg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvm9QfqjLzaBhIqb+ade2ZYN/7lIykgEj1zDcJL3JrO yUepbV3xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQ28DPMrzXQf9e4J7v15So3 W64PV88b3uvSYpgfVKvaF8k970lnpsdlC0Eld4Yb97kA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: idpf: fix PREEMPT_RT raw/bh spinlock nesting for async VC handling Switch from using the completion's raw spinlock to a local lock in the idpf_vc_xn struct. The conversion is safe because complete/_all() are called outside the lock and there is no reason to share the completion lock in the current logic. This avoids invalid wait context reported by the kernel due to the async handler taking BH spinlock: [ 805.726977] ============================= [ 805.726991] [ BUG: Invalid wait context ] [ 805.727006] 7.0.0-rc2-net-devq-031026+ #28 Tainted: G S OE [ 805.727026] ----------------------------- [ 805.727038] kworker/u261:0/572 is trying to lock: [ 805.727051] ff190da6a8dbb6a0 (&vport_config->mac_filter_list_lock){+...}-{3:3}, at: idpf_mac_filter_async_handler+0xe9/0x260 [idpf] [ 805.727099] other info that might help us debug this: [ 805.727111] context-{5:5} [ 805.727119] 3 locks held by kworker/u261:0/572: [ 805.727132] #0: ff190da6db3e6148 ((wq_completion)idpf-0000:83:00.0-mbx){+.+.}-{0:0}, at: process_one_work+0x4b5/0x730 [ 805.727163] #1: ff3c6f0a6131fe50 ((work_completion)(&(&adapter->mbx_task)->work)){+.+.}-{0:0}, at: process_one_work+0x1e5/0x730 [ 805.727191] #2: ff190da765190020 (&x->wait#34){+.+.}-{2:2}, at: idpf_recv_mb_msg+0xc8/0x710 [idpf] [ 805.727218] stack backtrace: ... [ 805.727238] Workqueue: idpf-0000:83:00.0-mbx idpf_mbx_task [idpf] [ 805.727247] Call Trace: [ 805.727249] [ 805.727251] dump_stack_lvl+0x77/0xb0 [ 805.727259] __lock_acquire+0xb3b/0x2290 [ 805.727268] ? __irq_work_queue_local+0x59/0x130 [ 805.727275] lock_acquire+0xc6/0x2f0 [ 805.727277] ? idpf_mac_filter_async_handler+0xe9/0x260 [idpf] [ 805.727284] ? _printk+0x5b/0x80 [ 805.727290] _raw_spin_lock_bh+0x38/0x50 [ 805.727298] ? idpf_mac_filter_async_handler+0xe9/0x260 [idpf] [ 805.727303] idpf_mac_filter_async_handler+0xe9/0x260 [idpf] [ 805.727310] idpf_recv_mb_msg+0x1c8/0x710 [idpf] [ 805.727317] process_one_work+0x226/0x730 [ 805.727322] worker_thread+0x19e/0x340 [ 805.727325] ? __pfx_worker_thread+0x10/0x10 [ 805.727328] kthread+0xf4/0x130 [ 805.727333] ? __pfx_kthread+0x10/0x10 [ 805.727336] ret_from_fork+0x32c/0x410 [ 805.727345] ? __pfx_kthread+0x10/0x10 [ 805.727347] ret_from_fork_asm+0x1a/0x30 [ 805.727354] The Linux kernel CVE team has assigned CVE-2026-31647 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 34c21fa894a1af6166f4284c81d1dc21efed8f38 and fixed in 6.12.83 with commit b448529f2f2921c6fe82fd4e985cc7c05cbf02a3 Issue introduced in 6.9 with commit 34c21fa894a1af6166f4284c81d1dc21efed8f38 and fixed in 6.18.23 with commit e02c974fc331f04b5ba2007d4bc6862df8a43148 Issue introduced in 6.9 with commit 34c21fa894a1af6166f4284c81d1dc21efed8f38 and fixed in 6.19.13 with commit 3bb632c6b6d8154e9019beda4a43a4b518ee3e8a Issue introduced in 6.9 with commit 34c21fa894a1af6166f4284c81d1dc21efed8f38 and fixed in 7.0 with commit 591478118293c1bd628de330a99eb1eb2ef8d76b 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-31647 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/idpf/idpf_virtchnl.c drivers/net/ethernet/intel/idpf/idpf_virtchnl.h 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/b448529f2f2921c6fe82fd4e985cc7c05cbf02a3 https://git.kernel.org/stable/c/e02c974fc331f04b5ba2007d4bc6862df8a43148 https://git.kernel.org/stable/c/3bb632c6b6d8154e9019beda4a43a4b518ee3e8a https://git.kernel.org/stable/c/591478118293c1bd628de330a99eb1eb2ef8d76b