{"schema":"threatline.record/2","record":{"id":"CVE-2026-98629","aliases":[],"summary":"net/sched: cls_u32: fix manual hash table handle IDR aliasing","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: cls_u32: fix manual hash table handle IDR aliasing\n\nA u32 hash table created with an explicit handle ('tc filter add ...\nhandle 801: u32 divisor N') keys its IDR entry on the raw handle, while\nthe destroy paths free it under handle2id(handle). The two key domains\ndisagree for handles in the 0x800..0xFFF htid range:\nhandle2id() folds them back into the auto-allocated id space (1..0x7FF).\n\nA manual table therefore leaves its raw-keyed IDR entry unreachable on\ndelete (a permanent leak), and its delete can drop the idr entry of an\nunrelated live auto table. A later auto allocation can then hand out a\nhandle that aliases the live manual table; u32_lookup_ht() first-match\nroutes lookups and TCA_U32_LINK for that htid to the wrong table.\n\nKey the divisor-path alloc on handle2id(handle) so allocation and\nremoval share one key domain. A manual handle that maps onto an id\nalready in use is rejected with -ENOSPC, and auto allocation skips ids\nheld by live manual tables.\n\nConditions to recreate:\n  ip link add test0 type dummy\n  tc qdisc add dev test0 clsact\n  tc filter add dev test0 ingress protocol ip pref 1 \\\n          handle 801: u32 divisor 16\n  tc filter add dev test0 ingress protocol ip pref 2 u32 divisor 16\n  tc -d filter show dev test0 ingress | grep 'fh 801:'\n  # unpatched: two live tables with handle 0x80100000 (the pref 2 root\n  # hnode is auto-allocated id 1); patched: the auto hnode takes id 2.\n\nAlso tested with a poc with a live u32 table on the block, add/delete a manual\ntable 'handle 901: u32 divisor 1' twice; unpatched, the re-add fails with\n-ENOSPC because the raw key leaked on the first delete.","categories":["Operating systems"],"product":"Linux","vendor":"Linux","ecosystem":null,"affected_ranges":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98629","source_modified_at":"2026-10-19T09:22:57.219Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Linux","vendor":"Linux","versions":[{"version":"9b2c3184e126b941dfa716b8128ed6db92a64e2f","lessThan":"21fc07924e996e1e661268ca269c86b8d59d25b3","status":"affected","versionType":"git"},{"version":"789f9963bd031c3a185605665b744912df8e7eda","lessThan":"0fac292d93fdb313099e98cce928b3a524c92c94","status":"affected","versionType":"git"},{"version":"73af53d82076bbe184d9ece9e14b0dc8599e6055","lessThan":"54a454c5e41f5e2cb70c8163140ce095c5d5eefd","status":"affected","versionType":"git"},{"version":"73af53d82076bbe184d9ece9e14b0dc8599e6055","lessThan":"f6696481eedfd5752b4b56eed715d0b0fe48b9c5","status":"affected","versionType":"git"},{"version":"73af53d82076bbe184d9ece9e14b0dc8599e6055","lessThan":"2f898f9ec7c73c5697ee462681e7ea6984ee1f3d","status":"affected","versionType":"git"},{"version":"73af53d82076bbe184d9ece9e14b0dc8599e6055","lessThan":"0a5f5d9e94dead312d32c366b917c64e552b72f7","status":"affected","versionType":"git"},{"version":"4403f9293ce9ecc2a55c688d84ee37e3ba0fc1a8","status":"affected","versionType":"git"},{"version":"6.1.119","lessThan":"6.1.189","status":"affected","versionType":"semver"},{"version":"6.6.63","lessThan":"6.6.158","status":"affected","versionType":"semver"},{"version":"6.11.10","lessThan":"6.12","status":"affected","versionType":"semver"}],"defaultStatus":"unaffected"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98629","source_modified_at":"2026-10-19T09:22:57.219Z","fetched_at":"2026-10-23T18:45:31.882637Z","product":"Linux","vendor":"Linux","versions":[{"version":"6.12","status":"affected"},{"version":"0","lessThan":"6.12","status":"unaffected","versionType":"semver"},{"version":"6.1.189","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.158","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.112","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.55","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.2.9","lessThanOrEqual":"7.2.*","status":"unaffected","versionType":"semver"},{"version":"7.3","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"defaultStatus":"affected"}],"fixed_versions":[{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98629","source_modified_at":"2026-10-19T09:22:57.219Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"21fc07924e996e1e661268ca269c86b8d59d25b3","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98629","source_modified_at":"2026-10-19T09:22:57.219Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"0fac292d93fdb313099e98cce928b3a524c92c94","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98629","source_modified_at":"2026-10-19T09:22:57.219Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"54a454c5e41f5e2cb70c8163140ce095c5d5eefd","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98629","source_modified_at":"2026-10-19T09:22:57.219Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"2f898f9ec7c73c5697ee462681e7ea6984ee1f3d","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98629","source_modified_at":"2026-10-19T09:22:57.219Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"0a5f5d9e94dead312d32c366b917c64e552b72f7","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98629","source_modified_at":"2026-10-19T09:22:57.219Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"6.1.189","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98629","source_modified_at":"2026-10-19T09:22:57.219Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"6.6.158","basis":"first unaffected version stated in the CVE record"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2026-98629","source_modified_at":"2026-10-19T09:22:57.219Z","fetched_at":"2026-10-23T18:45:31.882637Z","package":{"name":"Linux","ecosystem":null},"version":"6.12","basis":"first unaffected version stated in the CVE record"}],"cvss":null,"severity":null,"kev":{"listed":false},"epss":{"probability":0.00205,"percentile":0.10028,"score_date":"2026-10-23"},"published_at":"2026-10-18T15:19:50.589Z","modified_at":"2026-10-19T09:22:57.219Z","provenance":[{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-98629","fetched_at":"2026-10-23T18:45:31.882637Z","source_modified_at":"2026-10-19T09:22:57.219Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-98629","fetched_at":"2026-10-23T18:42:43.628194Z","source_modified_at":"2026-10-23"}],"sources":["CVE List","EPSS"],"references":[{"source":"CVE List","url":"https://git.kernel.org/stable/c/21fc07924e996e1e661268ca269c86b8d59d25b3"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/0fac292d93fdb313099e98cce928b3a524c92c94"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/54a454c5e41f5e2cb70c8163140ce095c5d5eefd"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/f6696481eedfd5752b4b56eed715d0b0fe48b9c5"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/2f898f9ec7c73c5697ee462681e7ea6984ee1f3d"},{"source":"CVE List","url":"https://git.kernel.org/stable/c/0a5f5d9e94dead312d32c366b917c64e552b72f7"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"product","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-19T09:22:57.219Z","content_hash":"8389357aba04add7ae98a333ef3216fef815efd4a8445f7c36c2c533577a973a"}}
