CVE-2026-99546
published high CVSS 3.1 · 7.1net/sched: cls_flower: avoid stale mask references after delete
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux92149190067dc1ba656ce63a328c4b88b34e3f09 to < 282807a0ecb8fe5beba8e4983e4330e03311e55a · 92149190067dc1ba656ce63a328c4b88b34e3f09 to < a2b1492931d41202e03ea55fb0a855f8d19b618e · 92149190067dc1ba656ce63a328c4b88b34e3f09 to < 5f001b9ffe36361d0f07e776b05827c3139c884b · 92149190067dc1ba656ce63a328c4b88b34e3f09 to < 7def39be0ecaec241699ed001c9d669bf742465e · 92149190067dc1ba656ce63a328c4b88b34e3f09 to < 47ae95cdcb9b1d6770c624ae778828b1d698801a · 92149190067dc1ba656ce63a328c4b88b34e3f09 to < cdffcb89d84455158d057a6baa87a67225a7f062 · 92149190067dc1ba656ce63a328c4b88b34e3f09 to < 0cc691a899a43e8ecbddfe657198b3f6935122f0 · 92149190067dc1ba656ce63a328c4b88b34e3f09 to < 58f7989da6e715ce834ac861b7ba6ae9f9bdb098 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.2 (affected) · 0 to < 5.2 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.61 through 6.18.* (unaffected · semver) · 7.3.2 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-3538 | Fixed | Not stated | Amazon Linux assessment |
| Debian | bookworm | linux-6.12 | Advisory build | 6.12.117-1~deb12u1 | DLA-4927-1 |
| Amazon Linux | AL2023 | kernel6.18aarch64 | Listed in advisory | Not stated | ALAS2023-2026-3538 |
| Amazon Linux | AL2023 | kernel6.18src | Listed in advisory | Not stated | ALAS2023-2026-3538 |
Show 1 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Amazon Linux | AL2023 | kernel6.18x86_64 | Listed in advisory | Not stated | ALAS2023-2026-3538 |
Description
In the Linux kernel, the following vulnerability has been resolved: net/sched: cls_flower: avoid stale mask references after delete Flower releases a mask reference when a filter is removed from the classifier. The filter object can remain alive while dump, walk, or hardware reoffload paths hold a reference to it. Those paths can then dereference f->mask after the mask has already been released. Keep the mask reference until the filter reference count reaches zero. Release the mask synchronously from the final __fl_put() while the caller still holds the tcf_proto reference, and leave the existing RCU work to free the mask. This keeps the mask available to every reader that still holds the filter. The filter is still removed from the classifier indexes immediately. Therefore, a deleted filter can temporarily retain an otherwise empty mask; fl_delete() uses the handle IDR, rather than the mask list, to determine whether the classifier has become empty. Failed mask assignment can leave fnew->mask as an error or borrowed pointer without an owned mask reference. Clear it before the common failure path so the final put cannot release an unowned reference. This fix does not add fields, snapshots, or per-filter memory.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Scenarios
- en: 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. AC: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. PR: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. UI:N - The attacker alone sends RTM_NEWTFILTER, RTM_GETTFILTER, and RTM_DELTFILTER for a flower filter they created on their own clsact qdisc. S: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. C: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. I: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. A: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.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 92149190067dc1ba656ce63a328c4b88b34e3f09 to < 282807a0ecb8fe5beba8e4983e4330e03311e55a (affected · git)92149190067dc1ba656ce63a328c4b88b34e3f09 to < a2b1492931d41202e03ea55fb0a855f8d19b618e (affected · git)92149190067dc1ba656ce63a328c4b88b34e3f09 to < 5f001b9ffe36361d0f07e776b05827c3139c884b (affected · git)92149190067dc1ba656ce63a328c4b88b34e3f09 to < 7def39be0ecaec241699ed001c9d669bf742465e (affected · git)92149190067dc1ba656ce63a328c4b88b34e3f09 to < 47ae95cdcb9b1d6770c624ae778828b1d698801a (affected · git)92149190067dc1ba656ce63a328c4b88b34e3f09 to < cdffcb89d84455158d057a6baa87a67225a7f062 (affected · git)92149190067dc1ba656ce63a328c4b88b34e3f09 to < 0cc691a899a43e8ecbddfe657198b3f6935122f0 (affected · git)92149190067dc1ba656ce63a328c4b88b34e3f09 to < 58f7989da6e715ce834ac861b7ba6ae9f9bdb098 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.2 (affected)0 to < 5.2 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.61 through 6.18.* (unaffected · semver)7.3.2 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/0cc691a899a43e8ecbddfe657198b3f6935122f0
- https://git.kernel.org/stable/c/282807a0ecb8fe5beba8e4983e4330e03311e55a
- https://git.kernel.org/stable/c/47ae95cdcb9b1d6770c624ae778828b1d698801a
- https://git.kernel.org/stable/c/58f7989da6e715ce834ac861b7ba6ae9f9bdb098
- https://git.kernel.org/stable/c/5f001b9ffe36361d0f07e776b05827c3139c884b
- https://git.kernel.org/stable/c/7def39be0ecaec241699ed001c9d669bf742465e
- https://git.kernel.org/stable/c/a2b1492931d41202e03ea55fb0a855f8d19b618e
- https://git.kernel.org/stable/c/cdffcb89d84455158d057a6baa87a67225a7f062
Provider assertions
1Linux · cna
net/sched: cls_flower: avoid stale mask references after delete
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- af448ef89ddb2728a332320896832fd6b25d8a566949c80297adf9092ec7be1f
- Ingested
- 23 Nov 2026, 14:35:29 UTC
- Source record
- Official CVE record