{"id":"CVE-2026-99282","aliases":["CVE-2026-99282"],"related":[],"kind":"vulnerability","state":"published","title":"net/sched: sch_teql: fix use-after-free on lower qdisc drop","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: sch_teql: fix use-after-free on lower qdisc drop\n\nThe issue: teql_master_xmit() tests the slave's ndo_start_xmit() return\nvalue against NETDEV_TX_OK alone. A slave that consumes the skb but\nreturns an error code (rc < NET_XMIT_MASK, e.g. NET_XMIT_DROP) is treated\nas if the skb were still owned, so the loop restores skb->dev and calls\n__skb_pull() on it. A VLAN slave returns the result of dev_queue_xmit()\nfrom its ndo_start_xmit() (propagated since cbbef5e18307), and when the\nlower qdisc drops the packet that value is NET_XMIT_DROP after the skb\nhas been freed, giving a use-after-free in teql_master_xmit().\n\nThe Fix: test for consumption with dev_xmit_complete(), which accepts\nNETDEV_TX_OK and every rc < NET_XMIT_MASK, matching other callers that\nneed to distinguish consumed results from busy. Only NETDEV_TX_OK keeps\nthe packet counted in tx_packets/tx_bytes and advances the slave; a\nconsumed result that is neither a success nor NET_XMIT_CN ends the\nattempt and is charged to tx_dropped, so lower-qdisc drops are no longer\nreported as good transmits. NET_XMIT_CN is counted like success because\nit can accompany acceptance of the current packet: pfifo_head_drop drops\nthe old head, enqueues the current skb and returns NET_XMIT_CN.\n\nConditions to recreate the bug:\nWith CONFIG_NET_SCH_TEQL,\nCONFIG_VLAN_8021Q and CONFIG_DUMMY enabled, add lkrdummy0 (dummy) and\nlkrvlan0 (VLAN id 37 on lkrdummy0); set a pfifo limit 0 root on lkrdummy0\nand a teql0 root on lkrvlan0; bring teql0 up with an address and send one\nUDP packet to it. The VLAN xmit returns NET_XMIT_DROP from the lower\nqdisc while holding a freed skb.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: sch_teql: fix use-after-free on lower qdisc drop\n\nThe issue: teql_master_xmit() tests the slave's ndo_start_xmit() return\nvalue against NETDEV_TX_OK alone. A slave that consumes the skb but\nreturns an error code (rc < NET_XMIT_MASK, e.g. NET_XMIT_DROP) is treated\nas if the skb were still owned, so the loop restores skb->dev and calls\n__skb_pull() on it. A VLAN slave returns the result of dev_queue_xmit()\nfrom its ndo_start_xmit() (propagated since cbbef5e18307), and when the\nlower qdisc drops the packet that value is NET_XMIT_DROP after the skb\nhas been freed, giving a use-after-free in teql_master_xmit().\n\nThe Fix: test for consumption with dev_xmit_complete(), which accepts\nNETDEV_TX_OK and every rc < NET_XMIT_MASK, matching other callers that\nneed to distinguish consumed results from busy. Only NETDEV_TX_OK keeps\nthe packet counted in tx_packets/tx_bytes and advances the slave; a\nconsumed result that is neither a success nor NET_XMIT_CN ends the\nattempt and is charged to tx_dropped, so lower-qdisc drops are no longer\nreported as good transmits. NET_XMIT_CN is counted like success because\nit can accompany acceptance of the current packet: pfifo_head_drop drops\nthe old head, enqueues the current skb and returns NET_XMIT_CN.\n\nConditions to recreate the bug:\nWith CONFIG_NET_SCH_TEQL,\nCONFIG_VLAN_8021Q and CONFIG_DUMMY enabled, add lkrdummy0 (dummy) and\nlkrvlan0 (VLAN id 37 on lkrdummy0); set a pfifo limit 0 root on lkrdummy0\nand a teql0 root on lkrvlan0; bring teql0 up with an address and send one\nUDP packet to it. The VLAN xmit returns NET_XMIT_DROP from the lower\nqdisc while holding a freed skb.","source":"cvelist"}],"published":"2026-11-07T14:08:47.978Z","modified":"2026-11-23T08:17:32.757Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"572a9d7b6fc7f20f573664063324c086be310c42","fixed":"b847e54010c49aa0ba458296ea13b3ef0e9f0b9d","status":"affected"},{"type":"git","introduced":"572a9d7b6fc7f20f573664063324c086be310c42","fixed":"5ca419582e7681060c6e3ae10849e6524b1d9768","status":"affected"},{"type":"git","introduced":"572a9d7b6fc7f20f573664063324c086be310c42","fixed":"77abedc14f38755ef5dcfaf660807043ab99d058","status":"affected"},{"type":"git","introduced":"572a9d7b6fc7f20f573664063324c086be310c42","fixed":"b8e2df3e238be6b47394d03d4b05af6b15846682","status":"affected"},{"type":"git","introduced":"572a9d7b6fc7f20f573664063324c086be310c42","fixed":"8d5f768780e26cb82c389219ae7fdb1cd7255421","status":"affected"},{"type":"git","introduced":"572a9d7b6fc7f20f573664063324c086be310c42","fixed":"fc55d92ae6a4b2e7d062cad6d4c67f6b061d9cde","status":"affected"},{"type":"git","introduced":"572a9d7b6fc7f20f573664063324c086be310c42","fixed":"2702ae318630787c640ec0d0403ffd9d95c43e9e","status":"affected"},{"type":"git","introduced":"572a9d7b6fc7f20f573664063324c086be310c42","fixed":"782d6bb8f9b8e9d8591181662222bf74cd3ecf79","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.33","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.33","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.117","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.61","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.2","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/b847e54010c49aa0ba458296ea13b3ef0e9f0b9d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5ca419582e7681060c6e3ae10849e6524b1d9768","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/77abedc14f38755ef5dcfaf660807043ab99d058","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b8e2df3e238be6b47394d03d4b05af6b15846682","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8d5f768780e26cb82c389219ae7fdb1cd7255421","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fc55d92ae6a4b2e7d062cad6d4c67f6b061d9cde","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2702ae318630787c640ec0d0403ffd9d95c43e9e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/782d6bb8f9b8e9d8591181662222bf74cd3ecf79","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-99282","url":"https://www.cve.org/CVERecord?id=CVE-2026-99282","licence":"CVE Terms of Use","modified":"2026-11-23T08:00:51.396Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-99282","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99282","licence":"Public domain","modified":"2026-11-23T08:17:32.757Z"}],"updatedAt":"2026-11-25T22:59:49.453Z","epss":{"score":0.00208,"percentile":0.11605,"date":"2026-12-02T12:00:21.000Z"}}