{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99546","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.421Z","datePublished":"2026-11-19T14:45:05.285Z","dateUpdated":"2026-11-22T11:08:53.286Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-11-22T11:08:53.286Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: cls_flower: avoid stale mask references after delete\n\nFlower releases a mask reference when a filter is removed from the\nclassifier. The filter object can remain alive while dump, walk, or\nhardware reoffload paths hold a reference to it. Those paths can then\ndereference f->mask after the mask has already been released.\n\nKeep the mask reference until the filter reference count reaches zero.\nRelease the mask synchronously from the final __fl_put() while the caller\nstill holds the tcf_proto reference, and leave the existing RCU work to\nfree the mask. This keeps the mask available to every reader that still\nholds the filter.\n\nThe filter is still removed from the classifier indexes immediately.\nTherefore, a deleted filter can temporarily retain an otherwise empty\nmask; fl_delete() uses the handle IDR, rather than the mask list, to\ndetermine whether the classifier has become empty.\n\nFailed mask assignment can leave fnew->mask as an error or borrowed\npointer without an owned mask reference. Clear it before the common\nfailure path so the final put cannot release an unowned reference.\n\nThis fix does not add fields, snapshots, or per-filter memory."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H","baseScore":7.1,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The stale f->mask comes from a local rtnetlink delete: tc_del_tfilter calls fl_delete/__fl_delete, and fl_mask_put frees the mask while tc_get_tfilter's fl_get still holds the filter for fl_dump. fl_classify walks head->masks via list_for_each_entry_rcu, and fl_mask_put list_del_rcu's the mask before queue_rcu_work kfree's it, so classification uses that RCU list rather than the deleted filter's f->mask.\nAC:L - cls_fl_ops is TCF_PROTO_OPS_DOIT_UNLOCKED and clsact_class_ops is QDISC_CLASS_OPS_DOIT_UNLOCKED, so tc_get_tfilter and tc_del_tfilter do not take RTNL. The attacker installs one flower filter whose fl_create_new_mask refcnt is 1, pins it with fl_get across tfilter_notify's alloc_skb, and deletes it on another thread so fl_mask_put drops that last reference.\nPR:L - RTM_NEWTFILTER and RTM_DELTFILTER are allowed by rtnetlink_rcv_msg only after netlink_net_capable(skb, CAP_NET_ADMIN) against sock_net(skb->sk)->user_ns. An unprivileged process gets that capability by unsharing CLONE_NEWUSER and CLONE_NEWNET, then attaches clsact and a flower filter to lo in that netns.\nUI:N - The attacker alone sends RTM_NEWTFILTER, RTM_GETTFILTER, and RTM_DELTFILTER for a flower filter they created on their own clsact qdisc.\nS:U - The kfreed fl_flow_mask that fl_dump reads, and the skb rtnl_unicast returns, are both memory of the same kernel that holds the clsact flower filter.\nC:H - fl_dump sets mask = &f->mask->key after fl_mask_free_work can already have kfreed that mask, and fl_dump_key copies those fields, including fl_dump_key_geneve_opt walking enc_opts->len, into the skb that tc_get_tfilter returns via rtnl_unicast. The attacker therefore reads the reallocated slab object, which is far more than a few bytes.\nI:N - After the free, fl_dump and fl_dump_key only load f->mask->key and copy those bytes into the caller's skb, and fl_reoffload only records &f->mask->dissector and &f->mask->key in a local flow_cls_offload. __fl_delete's rhashtable_remove_fast uses f->mask before fl_mask_put, and fl_set_key writes mask fields only while the mask is being built, so the dangling pointer is never stored through.\nA:H - fl_mask_put on the last mask reference queues fl_mask_free_work, whose fl_mask_free kfree's the fl_flow_mask, while fl_get keeps the filter alive so fl_dump still loads f->mask->key. That slab use-after-free in fl_dump oopses the kernel."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/cls_flower.c"],"versions":[{"version":"92149190067dc1ba656ce63a328c4b88b34e3f09","lessThan":"47ae95cdcb9b1d6770c624ae778828b1d698801a","status":"affected","versionType":"git"},{"version":"92149190067dc1ba656ce63a328c4b88b34e3f09","lessThan":"cdffcb89d84455158d057a6baa87a67225a7f062","status":"affected","versionType":"git"},{"version":"92149190067dc1ba656ce63a328c4b88b34e3f09","lessThan":"0cc691a899a43e8ecbddfe657198b3f6935122f0","status":"affected","versionType":"git"},{"version":"92149190067dc1ba656ce63a328c4b88b34e3f09","lessThan":"58f7989da6e715ce834ac861b7ba6ae9f9bdb098","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/cls_flower.c"],"versions":[{"version":"5.2","status":"affected"},{"version":"0","lessThan":"5.2","status":"unaffected","versionType":"semver"},{"version":"6.12.117","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.61","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.2","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.2","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/47ae95cdcb9b1d6770c624ae778828b1d698801a"},{"url":"https://git.kernel.org/stable/c/cdffcb89d84455158d057a6baa87a67225a7f062"},{"url":"https://git.kernel.org/stable/c/0cc691a899a43e8ecbddfe657198b3f6935122f0"},{"url":"https://git.kernel.org/stable/c/58f7989da6e715ce834ac861b7ba6ae9f9bdb098"}],"title":"net/sched: cls_flower: avoid stale mask references after delete","x_generator":{"engine":"bippy-1.2.0"}}}}