CVE-2026-74739 PUBLISHED

net/sched: cls_u32: skip hash tables in u32_bind_class()

Assigner: Linux
Reserved: 15.08.2026 Published: 26.08.2026 Updated: 26.08.2026

In the Linux kernel, the following vulnerability has been resolved:

net/sched: cls_u32: skip hash tables in u32_bind_class()

u32_walk() enumerates both struct tc_u_hnode and struct tc_u_knode through the walker callback. u32_bind_class() unconditionally casts the passed fh to tc_u_knode and accesses &n->res, so when fh is actually a tc_u_hnode, which has no tcf_result member, this results in a slab-out-of-bounds read of res->classid in tc_cls_bind_class().

The issue can be reproduced with the following commands:

<pre>tc qdisc add dev lo root handle 1: hfsc tc class add dev lo parent 1: classid 1:1 hfsc sc rate 1000kbit tc filter add dev lo parent 1:1 protocol ip prio 1 u32 match u32 0 0 flowid 1:1 tc class add dev lo parent 1: classid 1:2 hfsc sc rate 2000kbit </pre>

Fix this by skipping hash tables via the TC_U32_KEY(handle) check.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 07d79fc7d94e3f884b8b1c95aa615b202bb5e4c1 to ec5f3005586a785689fd568361b0c5925cb1548b (excl.)
  • affected from 07d79fc7d94e3f884b8b1c95aa615b202bb5e4c1 to 19d114b93c94bdef70496f26685c2a6b242f41b3 (excl.)
  • affected from 07d79fc7d94e3f884b8b1c95aa615b202bb5e4c1 to 594a064d603202b9ee21e07679d854e5c1750cc4 (excl.)
  • affected from 07d79fc7d94e3f884b8b1c95aa615b202bb5e4c1 to 31f26a95eeee926946809ac456c61a3217936a62 (excl.)
  • affected from 07d79fc7d94e3f884b8b1c95aa615b202bb5e4c1 to e71f8e9ed6f311410b14741f6012afe01869c0fa (excl.)
  • affected from 07d79fc7d94e3f884b8b1c95aa615b202bb5e4c1 to 6d3724e616faf952c3adcf8414fc21a828ef3709 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 4.14 is affected
  • unaffected from 0 to 4.14 (excl.)
  • unaffected from 6.1.184 to 6.1.* (incl.)
  • unaffected from 6.6.153 to 6.6.* (incl.)
  • unaffected from 6.12.105 to 6.12.* (incl.)
  • unaffected from 6.18.46 to 6.18.* (incl.)
  • unaffected from 7.1.10 to 7.1.* (incl.)
  • unaffected from 7.2 to * (incl.)

References