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 42523386C2A for ; Fri, 3 Apr 2026 15:25:12 +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=1775229912; cv=none; b=NwGdwU1QXinZrClKHzIl+lm1fOoJ9Dl2MEUkBCW5qCEno9k8Zq+XTNKePq1vmBJJQnqu8LzRZploAUG6i29yritaON6GRF5iTEh3eA0dcr//Q0KJLz86fyx0uveiqG+U8c450GxHO7CmLMkVC6OzPlkcx1my3CtulAFpyjwtvns= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1775229912; c=relaxed/simple; bh=8UKjx80grAdPmcJm1KH+NFVN+Gb79m7lx7tkHHnGR9s=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=fqxf2Pwgg5TCu16AXQVc86bU/WQMFJ57RwkO8OQ7nQDqOmWmpzBzYwvZDdW+UYLxn5wkt1m6RM31HqEkc3EGZkAbbLK0avX3JM+nFMd721l6Pa8pU0ls88PCFav+nrtQm8E/uqyydCZsP98fzh6Ju9lQ/II4+6o0RtdRWzSIh1Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=FkLYdUTj; 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="FkLYdUTj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 594B5C4CEF7; Fri, 3 Apr 2026 15:25:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1775229912; bh=8UKjx80grAdPmcJm1KH+NFVN+Gb79m7lx7tkHHnGR9s=; h=From:To:Cc:Subject:Date:Reply-To:From; b=FkLYdUTjdPVB+Z7HAj/YggWK0eWU1yFoAF0dO5dpukf6zfscOi5KaHsGk+C6gNsmF 2Usi+fEph+ps7IOn1vRHBm2AfAXIRILfem9IUEMyeRzWidB2Qx+/fUv+LAfOUL5YYP UcdhuijYQ1Ab0/C7tsgRMRkMuLzhWkTEKiFgtAdI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23449: net/sched: teql: Fix double-free in teql_master_xmit Date: Fri, 3 Apr 2026 17:18:30 +0200 Message-ID: <2026040316-CVE-2026-23449-1717@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=8180; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WoxiCfSqI3BkMceFI0XBfq5HLSAfZA6NmyxNjzvRFAI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnnb1lMvXhbe23Vk2XJvttNTVrOpSwzfxtgNeexaUN75 9wa+/7IjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjISUOGeVY2/9advLg8ZfuS G1EK/g3qW6JOVDIs6F1gMs/o3507/F7lAZzbzTsW7F2uCwA= 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: teql: Fix double-free in teql_master_xmit Whenever a TEQL devices has a lockless Qdisc as root, qdisc_reset should be called using the seq_lock to avoid racing with the datapath. Failure to do so may cause crashes like the following: [ 238.028993][ T318] BUG: KASAN: double-free in skb_release_data (net/core/skbuff.c:1139) [ 238.029328][ T318] Free of addr ffff88810c67ec00 by task poc_teql_uaf_ke/318 [ 238.029749][ T318] [ 238.029900][ T318] CPU: 3 UID: 0 PID: 318 Comm: poc_teql_ke Not tainted 7.0.0-rc3-00149-ge5b31d988a41 #704 PREEMPT(full) [ 238.029906][ T318] Hardware name: Bochs Bochs, BIOS Bochs 01/01/2011 [ 238.029910][ T318] Call Trace: [ 238.029913][ T318] [ 238.029916][ T318] dump_stack_lvl (lib/dump_stack.c:122) [ 238.029928][ T318] print_report (mm/kasan/report.c:379 mm/kasan/report.c:482) [ 238.029940][ T318] ? skb_release_data (net/core/skbuff.c:1139) [ 238.029944][ T318] ? srso_alias_return_thunk (arch/x86/lib/retpoline.S:221) ... [ 238.029957][ T318] ? skb_release_data (net/core/skbuff.c:1139) [ 238.029969][ T318] kasan_report_invalid_free (mm/kasan/report.c:221 mm/kasan/report.c:563) [ 238.029979][ T318] ? skb_release_data (net/core/skbuff.c:1139) [ 238.029989][ T318] check_slab_allocation (mm/kasan/common.c:231) [ 238.029995][ T318] kmem_cache_free (mm/slub.c:2637 (discriminator 1) mm/slub.c:6168 (discriminator 1) mm/slub.c:6298 (discriminator 1)) [ 238.030004][ T318] skb_release_data (net/core/skbuff.c:1139) ... [ 238.030025][ T318] sk_skb_reason_drop (net/core/skbuff.c:1256) [ 238.030032][ T318] pfifo_fast_reset (./include/linux/ptr_ring.h:171 ./include/linux/ptr_ring.h:309 ./include/linux/skb_array.h:98 net/sched/sch_generic.c:827) [ 238.030039][ T318] ? srso_alias_return_thunk (arch/x86/lib/retpoline.S:221) ... [ 238.030054][ T318] qdisc_reset (net/sched/sch_generic.c:1034) [ 238.030062][ T318] teql_destroy (./include/linux/spinlock.h:395 net/sched/sch_teql.c:157) [ 238.030071][ T318] __qdisc_destroy (./include/net/pkt_sched.h:328 net/sched/sch_generic.c:1077) [ 238.030077][ T318] qdisc_graft (net/sched/sch_api.c:1062 net/sched/sch_api.c:1053 net/sched/sch_api.c:1159) [ 238.030089][ T318] ? __pfx_qdisc_graft (net/sched/sch_api.c:1091) [ 238.030095][ T318] ? srso_alias_return_thunk (arch/x86/lib/retpoline.S:221) [ 238.030102][ T318] ? srso_alias_return_thunk (arch/x86/lib/retpoline.S:221) [ 238.030106][ T318] ? srso_alias_return_thunk (arch/x86/lib/retpoline.S:221) [ 238.030114][ T318] tc_get_qdisc (net/sched/sch_api.c:1529 net/sched/sch_api.c:1556) ... [ 238.072958][ T318] Allocated by task 303 on cpu 5 at 238.026275s: [ 238.073392][ T318] kasan_save_stack (mm/kasan/common.c:58) [ 238.073884][ T318] kasan_save_track (mm/kasan/common.c:64 (discriminator 5) mm/kasan/common.c:79 (discriminator 5)) [ 238.074230][ T318] __kasan_slab_alloc (mm/kasan/common.c:369) [ 238.074578][ T318] kmem_cache_alloc_node_noprof (./include/linux/kasan.h:253 mm/slub.c:4542 mm/slub.c:4869 mm/slub.c:4921) [ 238.076091][ T318] kmalloc_reserve (net/core/skbuff.c:616 (discriminator 107)) [ 238.076450][ T318] __alloc_skb (net/core/skbuff.c:713) [ 238.076834][ T318] alloc_skb_with_frags (./include/linux/skbuff.h:1383 net/core/skbuff.c:6763) [ 238.077178][ T318] sock_alloc_send_pskb (net/core/sock.c:2997) [ 238.077520][ T318] packet_sendmsg (net/packet/af_packet.c:2926 net/packet/af_packet.c:3019 net/packet/af_packet.c:3108) [ 238.081469][ T318] [ 238.081870][ T318] Freed by task 299 on cpu 1 at 238.028496s: [ 238.082761][ T318] kasan_save_stack (mm/kasan/common.c:58) [ 238.083481][ T318] kasan_save_track (mm/kasan/common.c:64 (discriminator 5) mm/kasan/common.c:79 (discriminator 5)) [ 238.085348][ T318] kasan_save_free_info (mm/kasan/generic.c:587 (discriminator 1)) [ 238.085900][ T318] __kasan_slab_free (mm/kasan/common.c:287) [ 238.086439][ T318] kmem_cache_free (mm/slub.c:6168 (discriminator 3) mm/slub.c:6298 (discriminator 3)) [ 238.087007][ T318] skb_release_data (net/core/skbuff.c:1139) [ 238.087491][ T318] consume_skb (net/core/skbuff.c:1451) [ 238.087757][ T318] teql_master_xmit (net/sched/sch_teql.c:358) [ 238.088116][ T318] dev_hard_start_xmit (./include/linux/netdevice.h:5324 ./include/linux/netdevice.h:5333 net/core/dev.c:3871 net/core/dev.c:3887) [ 238.088468][ T318] sch_direct_xmit (net/sched/sch_generic.c:347) [ 238.088820][ T318] __qdisc_run (net/sched/sch_generic.c:420 (discriminator 1)) [ 238.089166][ T318] __dev_queue_xmit (./include/net/sch_generic.h:229 ./include/net/pkt_sched.h:121 ./include/net/pkt_sched.h:117 net/core/dev.c:4196 net/core/dev.c:4802) Workflow to reproduce: 1. Initialize a TEQL topology (dummy0 and ifb0 as slaves, teql0 up). 2. Start multiple sender workers continuously transmitting packets through teql0 to drive teql_master_xmit(). 3. In parallel, repeatedly delete and re-add the root qdisc on dummy0 and ifb0 via RTNETLINK, forcing frequent teardown and reset activity (teql_destroy() / qdisc_reset()). 4. After running both workloads concurrently for several iterations, KASAN reports slab-use-after-free or double-free in the skb free path. Fix this by moving dev_reset_queue to sch_generic.h and calling it, instead of qdisc_reset, in teql_destroy since it handles both the lock and lockless cases correctly for root qdiscs. The Linux kernel CVE team has assigned CVE-2026-23449 to this issue. Affected and fixed versions =========================== Issue introduced in 4.18 with commit 96009c7d500efdd5534e83b2e3eb2c58d4b137ae and fixed in 6.1.167 with commit 4e8ebc4c18ea8213d28e6cb867d18fcc67daca21 Issue introduced in 4.18 with commit 96009c7d500efdd5534e83b2e3eb2c58d4b137ae and fixed in 6.6.130 with commit 21c89a0a8de7eadad8d385645a95b3233f23130e Issue introduced in 4.18 with commit 96009c7d500efdd5534e83b2e3eb2c58d4b137ae and fixed in 6.12.78 with commit afbc79a7770b230a9f24bd39271209d6b3682c5f Issue introduced in 4.18 with commit 96009c7d500efdd5534e83b2e3eb2c58d4b137ae and fixed in 6.18.20 with commit e9c66d3e7d8557b3308e55c613aa07254fe97611 Issue introduced in 4.18 with commit 96009c7d500efdd5534e83b2e3eb2c58d4b137ae and fixed in 6.19.10 with commit 4a233447b941db451ea5f5a0942cffd0f7f7eaae Issue introduced in 4.18 with commit 96009c7d500efdd5534e83b2e3eb2c58d4b137ae and fixed in 7.0-rc5 with commit 66360460cab63c248ca5b1070a01c0c29133b960 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-23449 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: include/net/sch_generic.h net/sched/sch_generic.c net/sched/sch_teql.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/4e8ebc4c18ea8213d28e6cb867d18fcc67daca21 https://git.kernel.org/stable/c/21c89a0a8de7eadad8d385645a95b3233f23130e https://git.kernel.org/stable/c/afbc79a7770b230a9f24bd39271209d6b3682c5f https://git.kernel.org/stable/c/e9c66d3e7d8557b3308e55c613aa07254fe97611 https://git.kernel.org/stable/c/4a233447b941db451ea5f5a0942cffd0f7f7eaae https://git.kernel.org/stable/c/66360460cab63c248ca5b1070a01c0c29133b960