{"id":"CVE-2026-90248","aliases":["CVE-2026-90248"],"related":[],"kind":"vulnerability","state":"published","title":"net/sched: cls_api: fix teardown of an adopted proto on insert-race loss","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: cls_api: fix teardown of an adopted proto on insert-race loss\n\nIn tc_new_tfilter() the create branch sets tp_created = 1 before calling\ntcf_chain_tp_insert_unique(). When the caller loses the race (another\nrequest inserted a proto at the same chain/prio first), insert_unique()\ndestroys the caller's own tp_new and returns the winner's proto with an\nextra reference. tp_created was never cleared, so the loser's errout\npath treated the winner's live proto as its own and called\ntcf_chain_tp_delete_empty() on it, silently unlinking an active\nclassifier that the winning request already advertised via\nRTM_NEWTFILTER.\n\nTrack the outcome of the insert step in a single tri-state variable so\neach errout path reacts correctly:\n\n- TP_NOT_CREATED: no proto created; pursue the old path.\n- TP_CREATED: proto inserted successfully; same code path as before.\n- TP_NOT_OWNED: New - lost the insert race; tp is another request's proto\n  (chain ref already released by tp_new's destroy)\n\nBoth errout reactions are single expressions derived from the state.\n\nThis fix is motivated by the Sashiko's automated review of Patch\n(net/sched: cls_api: Always acquire rtnl_lock when destroying locked\nclassifiers) [1][2]. The review identified the silent-unlink behaviour of\nan adopted proto's teardown when a request loses the\ntcf_chain_tp_insert_unique() race.\n\n[1] https://sashiko.dev/#/patchset/20260801125632.360365-1-jhs%40mojatatu.com\n[2] https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260801125632.360365-1-jhs%40mojatatu.com","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: cls_api: fix teardown of an adopted proto on insert-race loss\n\nIn tc_new_tfilter() the create branch sets tp_created = 1 before calling\ntcf_chain_tp_insert_unique(). When the caller loses the race (another\nrequest inserted a proto at the same chain/prio first), insert_unique()\ndestroys the caller's own tp_new and returns the winner's proto with an\nextra reference. tp_created was never cleared, so the loser's errout\npath treated the winner's live proto as its own and called\ntcf_chain_tp_delete_empty() on it, silently unlinking an active\nclassifier that the winning request already advertised via\nRTM_NEWTFILTER.\n\nTrack the outcome of the insert step in a single tri-state variable so\neach errout path reacts correctly:\n\n- TP_NOT_CREATED: no proto created; pursue the old path.\n- TP_CREATED: proto inserted successfully; same code path as before.\n- TP_NOT_OWNED: New - lost the insert race; tp is another request's proto\n  (chain ref already released by tp_new's destroy)\n\nBoth errout reactions are single expressions derived from the state.\n\nThis fix is motivated by the Sashiko's automated review of Patch\n(net/sched: cls_api: Always acquire rtnl_lock when destroying locked\nclassifiers) [1][2]. The review identified the silent-unlink behaviour of\nan adopted proto's teardown when a request loses the\ntcf_chain_tp_insert_unique() race.\n\n[1] https://sashiko.dev/#/patchset/20260801125632.360365-1-jhs%40mojatatu.com\n[2] https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260801125632.360365-1-jhs%40mojatatu.com","source":"cvelist"}],"published":"2026-09-17T16:07:50.104Z","modified":"2026-10-19T09:19:15.323Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8b64678e0af8f4d62a40149baedebe78503a5255","fixed":"a68e664ddf16ecae6d769d6a2eb356f8abab75c9","status":"affected"},{"type":"git","introduced":"8b64678e0af8f4d62a40149baedebe78503a5255","fixed":"df02b6dc136af45e92ee4c86f4aa6c9a60790b1e","status":"affected"},{"type":"git","introduced":"8b64678e0af8f4d62a40149baedebe78503a5255","fixed":"bee2208276c8e0e40a249ffdcf6e5434a79a847c","status":"affected"},{"type":"git","introduced":"8b64678e0af8f4d62a40149baedebe78503a5255","fixed":"219c87aeefdcc8c1caf28cc99e9b361ce7393d3a","status":"affected"},{"type":"git","introduced":"8b64678e0af8f4d62a40149baedebe78503a5255","fixed":"bbe2fd6d77df630356185406a97317f6aa6a92cf","status":"affected"},{"type":"git","introduced":"8b64678e0af8f4d62a40149baedebe78503a5255","fixed":"dc8b33b819cb02a75936940c120aa669ad89942d","status":"affected"},{"type":"git","introduced":"8b64678e0af8f4d62a40149baedebe78503a5255","fixed":"d4e359b3608a0e184bbe8d61a5c3b50d0831c44a","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.1","status":"unaffected"},{"type":"semver","introduced":"5.15.221","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.188","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.110","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/a68e664ddf16ecae6d769d6a2eb356f8abab75c9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/df02b6dc136af45e92ee4c86f4aa6c9a60790b1e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bee2208276c8e0e40a249ffdcf6e5434a79a847c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/219c87aeefdcc8c1caf28cc99e9b361ce7393d3a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bbe2fd6d77df630356185406a97317f6aa6a92cf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dc8b33b819cb02a75936940c120aa669ad89942d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d4e359b3608a0e184bbe8d61a5c3b50d0831c44a","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90248","url":"https://www.cve.org/CVERecord?id=CVE-2026-90248","licence":"CVE Terms of Use","modified":"2026-10-19T09:00:24.022Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90248","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90248","licence":"Public domain","modified":"2026-10-19T09:19:15.323Z"}],"updatedAt":"2026-11-25T22:59:39.356Z","epss":{"score":0.00215,"percentile":0.06781,"date":"2026-11-30T12:00:22.000Z"}}