Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 156E23C1991 for ; Fri, 25 Sep 2026 10:30:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332210; cv=none; b=oJuDRSpFYW6Cm7pFmz0dsU5fEd7AIWesbb0vkI4WlZzzN9zxtSCXcmfSy07E2VfGDBHu9k7clm5RazKL7h1eAp8FjRZf/BA8ZOlaeoU1PXcMxOxBC++h3BiOVPq4mSekvIgRLHUm9lnC81lHwQDpEU0+ONZWWX1Cab3sn6/AiRY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332210; c=relaxed/simple; bh=+9ZHE5SaOB6/NjCHlZXfgu7fb/tliotMs8tVcFvSNWg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kvfHI2yI1n69QjXsfamj/KeThlNHX4MxRhpQcV+5SWcS0kOtx7enoFoCmtWA4Yg05LNd9QsN27vbPjj6vHrBMB0dXcJ4unbtLsUaC8hijLdg2wYjwytCDSV9zV2PyedrN6UQc3eKQaU6f3coRYeDECrZxREAWifjP3MHoZELps4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ULu+QPpd; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="ULu+QPpd" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 728551F000FF; Fri, 25 Sep 2026 10:30:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332209; bh=RYVDxUPAe5/2Bf2SzekpLfVYGU4lPhD3OeNX3kHkYmc=; h=From:To:Cc:Subject:Date:Reply-To; b=ULu+QPpdZKJ/H+hEF++4p4npND/q+eTx7qWotF/5u4B5QPa6z6EdlS7jMTThDVzXy TnnY3lGXYfKcG5uPlEt3KhT+dWu5735vphLwX9ZGBoeaKPA/42wwA29X41vhCnnshz BWFAyduhZ74f4gPb8672A/XjXUGdo73lZlw3pKv0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97958: net/sched: cls_api: Don't replay RTM_GETCHAIN in tc_ctl_chain(). Date: Fri, 25 Sep 2026 12:24:21 +0200 Message-ID: <2026092515-CVE-2026-97958-76d3@gregkh> X-Mailer: git-send-email 2.55.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=4515; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SgFYCIjHeTukrxtW6ik87E7fIamIVpDY7pVfvTS/KkM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvMPtvn9ljlW5vvJVE/eHwLw9Ln2qIvc0ehdz7122N 595zZlNHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCREmaGuaK9h478/6Hj91S6 cdmsi2f9NKo/lzAs6PDw3lPOYztj5y8d2WUNRxbUu5dsBgA= 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: net/sched: cls_api: Don't replay RTM_GETCHAIN in tc_ctl_chain(). If a netlink socket sends RTM_GETCHAIN requests repeatedly without recv()ing the responses, tc_ctl_chain() hogs CPU and triggers Hung Task splat. [0] As caught in the stack trace, netlink_attachskb() could confuse tc_ctl_chain() by returning -EAGAIN when the userspace netlink socket's receive buffer is full. The replay: label exists since commit 32a4f5ecd738 ("net: sched: introduce chain object to uapi") but was not used initially. Since commit 9f407f1768d3 ("net: sched: introduce chain templates"), the label is needed for RTM_NEWCHAIN because tcf_proto_lookup_ops() may release RTNL to call request_module(). However, the replay logic is unnecessary for RTM_GETCHAIN. Let's apply the replay logic only for RTM_NEWCHAIN. [0]: INFO: task repro:1018 is blocked on a mutex likely owned by task repro:1022. task:repro state:R running task stack:14096 pid:1022 tgid:1014 ppid:961 task_flags:0x400040 flags:0x00080000 Call Trace: ? clockevents_program_event (kernel/time/clockevents.c:372) ? pskb_expand_head (net/core/skbuff.c:615) ? skb_release_data (net/core/skbuff.c:1122) ? netlink_attachskb (./include/linux/skbuff.h:1323 ./include/linux/skbuff.h:1332 net/netlink/af_netlink.c:1232) ? __netlink_lookup (./include/linux/rcupdate.h:882 ./include/linux/rhashtable.h:711 net/netlink/af_netlink.c:499) ? tc_chain_notify (net/sched/cls_api.c:3045) ? tc_chain_notify (./include/linux/skbuff.h:1384 net/sched/cls_api.c:3041) ? netlink_unicast (net/netlink/af_netlink.c:1335) ? rtnl_unicast (./include/net/netlink.h:1198 net/core/rtnetlink.c:985) ? tc_ctl_chain (net/sched/cls_api.c:3242) ? rtnetlink_rcv_msg (net/core/rtnetlink.c:7146) ? netlink_unicast (net/netlink/af_netlink.c:1354) ? __pfx_rtnetlink_rcv_msg (net/core/rtnetlink.c:7177) ? netlink_rcv_skb (net/netlink/af_netlink.c:2556) ? netlink_unicast (net/netlink/af_netlink.c:1319) ? netlink_sendmsg (net/netlink/af_netlink.c:1900) ? __sock_sendmsg (net/socket.c:800) ? __sys_sendto (net/socket.c:2281) ? __x64_sys_sendto (net/socket.c:2288 net/socket.c:2284 net/socket.c:2284) ? do_syscall_64 (arch/x86/entry/syscall_64.c:61 arch/x86/entry/syscall_64.c:84) ? entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121) The Linux kernel CVE team has assigned CVE-2026-97958 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit 2ed9db3074fcd8d12709fe40ff0e691d74229818 and fixed in 6.12.111 with commit a1c2840d95af1fa3d83ba71e23fa0c674a4c6796 Issue introduced in 4.19 with commit 2ed9db3074fcd8d12709fe40ff0e691d74229818 and fixed in 6.18.53 with commit 503ba58481e3ba69d28127d35a39cec529f9670c Issue introduced in 4.19 with commit 2ed9db3074fcd8d12709fe40ff0e691d74229818 and fixed in 7.2.7 with commit e9ac395bb56122a057d0aa91a6b55d9e3fa37c26 Issue introduced in 4.19 with commit 2ed9db3074fcd8d12709fe40ff0e691d74229818 and fixed in 7.3-rc3 with commit dff39930ad5e53d202bfdfb14687d1d2fd753b4d 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-97958 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: net/sched/cls_api.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/a1c2840d95af1fa3d83ba71e23fa0c674a4c6796 https://git.kernel.org/stable/c/503ba58481e3ba69d28127d35a39cec529f9670c https://git.kernel.org/stable/c/e9ac395bb56122a057d0aa91a6b55d9e3fa37c26 https://git.kernel.org/stable/c/dff39930ad5e53d202bfdfb14687d1d2fd753b4d