{"id":78921,"date":"2026-05-27T14:46:23","date_gmt":"2026-05-27T11:16:23","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-45845-net-sched-taprio-fix-null-pointer-dereference-in-class-dump\/"},"modified":"2026-05-27T14:46:23","modified_gmt":"2026-05-27T11:16:23","slug":"cve-2026-45845-net-sched-taprio-fix-null-pointer-dereference-in-class-dump","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-45845-net-sched-taprio-fix-null-pointer-dereference-in-class-dump\/","title":{"rendered":"CVE-2026-45845 &#8211; net\/sched: taprio: fix NULL pointer dereference in class dump"},"content":{"rendered":"<p>CVE ID :CVE-2026-45845<\/p>\n<p>  Published : May 27, 2026, 11:16 a.m. | 1\u00a0hour, 15\u00a0minutes ago<\/p>\n<p>  Description :In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>net\/sched: taprio: fix NULL pointer dereference in class dump<\/p>\n<p>When a TAPRIO child qdisc is deleted via RTM_DELQDISC, taprio_graft()<br \/>\nis called with new == NULL and stores NULL into q-&gt;qdiscs[cl &#8211; 1].<br \/>\nSubsequent RTM_GETTCLASS dump operations walk all classes via<br \/>\ntaprio_walk() and call taprio_dump_class(), which calls taprio_leaf()<br \/>\nreturning the NULL pointer, then dereferences it to read child-&gt;handle,<br \/>\ncausing a kernel NULL pointer dereference.<\/p>\n<p>The bug is reachable with namespace-scoped CAP_NET_ADMIN on any kernel<br \/>\nwith CONFIG_NET_SCH_TAPRIO enabled. On systems with unprivileged user<br \/>\nnamespaces enabled, an unprivileged local user can trigger a kernel<br \/>\npanic by creating a taprio qdisc inside a new network namespace,<br \/>\ngrafting an explicit child qdisc, deleting it, and requesting a class<br \/>\ndump. The RTM_GETTCLASS dump itself requires no capability.<\/p>\n<p> Oops: general protection fault, probably for non-canonical address 0xdffffc0000000007: 0000 [#1] SMP KASAN NOPTI<br \/>\n KASAN: null-ptr-deref in range [0x0000000000000038-0x000000000000003f]\n RIP: 0010:taprio_dump_class (net\/sched\/sch_taprio.c:2478)<br \/>\n Call Trace:<\/p>\n<p>  tc_fill_tclass (net\/sched\/sch_api.c:1966)<br \/>\n  qdisc_class_dump (net\/sched\/sch_api.c:2326)<br \/>\n  taprio_walk (net\/sched\/sch_taprio.c:2514)<br \/>\n  tc_dump_tclass_qdisc (net\/sched\/sch_api.c:2352)<br \/>\n  tc_dump_tclass_root (net\/sched\/sch_api.c:2370)<br \/>\n  tc_dump_tclass (net\/sched\/sch_api.c:2431)<br \/>\n  rtnl_dumpit (net\/core\/rtnetlink.c:6864)<br \/>\n  netlink_dump (net\/netlink\/af_netlink.c:2325)<br \/>\n  rtnetlink_rcv_msg (net\/core\/rtnetlink.c:6959)<br \/>\n  netlink_rcv_skb (net\/netlink\/af_netlink.c:2550)<\/p>\n<p>Fix this by substituting &amp;noop_qdisc when new is NULL in<br \/>\ntaprio_graft(), a common pattern used by other qdiscs (e.g.,<br \/>\nmultiq_graft()) to ensure the q-&gt;qdiscs[] slots are never NULL.<br \/>\nThis makes control-plane dump paths safe without requiring individual<br \/>\nNULL checks.<\/p>\n<p>Since the data-plane paths (taprio_enqueue and taprio_dequeue_from_txq)<br \/>\npreviously had explicit NULL guards that would drop\/skip the packet<br \/>\ncleanly, update those checks to test for &amp;noop_qdisc instead. Without<br \/>\nthis, packets would reach taprio_enqueue_one() which increments the root<br \/>\nqdisc&#8217;s qlen and backlog before calling the child&#8217;s enqueue; noop_qdisc<br \/>\ndrops the packet but those counters are never rolled back, permanently<br \/>\ninflating the root qdisc&#8217;s statistics.<\/p>\n<p>After this change *old can be a valid qdisc, NULL, or &amp;noop_qdisc.<br \/>\nOnly call qdisc_put(*old) in the first case to avoid decreasing<br \/>\nnoop_qdisc&#8217;s refcount, which was never increased.<\/p>\n<p>  Severity: 0.0 | NA<\/p>\n<p>  Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID :CVE-2026-45845 Published : May 27, 2026, 11:16 a.m. | 1\u00a0hour, 15\u00a0minutes ago Description :In the Linux kernel, the following vulnerability has been resolved: net\/sched: taprio: fix NULL pointer dereference in class dump When a TAPRIO child qdisc is deleted via RTM_DELQDISC, taprio_graft() is called with new == NULL and stores NULL into q-&gt;qdiscs[cl &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-78921","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/78921","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=78921"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/78921\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=78921"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=78921"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=78921"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}