# CVE-2024-26669: net/sched: flower: Fix chain template offload

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-04-02T06:43:30.378Z
- **Modified:** 2026-11-23T08:17:10.773Z

## Who should check

- Anyone running Linux \>= bbf73830cd48cff1599811d4f69c7cfd49c7b869, \< 118823d722a2983da8c821af80fb39cce3e71adb; \>= bbf73830cd48cff1599811d4f69c7cfd49c7b869, \< 85a8b5f3b5e5f2c15a7b6a86976d41e540127ce9; \>= bbf73830cd48cff1599811d4f69c7cfd49c7b869, \< a400208567c3927d8ff2b93f397526795e92d684; \>= bbf73830cd48cff1599811d4f69c7cfd49c7b869, \< 9ed46144cff3598a5cf79955630e795ff9af5b97; \>= bbf73830cd48cff1599811d4f69c7cfd49c7b869, \< c04709b2cc99ae31c346f79f0211752d7b74df01; \>= bbf73830cd48cff1599811d4f69c7cfd49c7b869, \< 32f2a0afa95fae0d1ceec2ff06e0e816939964b8
- Anyone running Linux 5.1

## Description

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

net/sched: flower: Fix chain template offload

When a qdisc is deleted from a net device the stack instructs the
underlying driver to remove its flow offload callback from the
associated filter block using the 'FLOW\_BLOCK\_UNBIND' command. The stack
then continues to replay the removal of the filters in the block for
this driver by iterating over the chains in the block and invoking the
'reoffload' operation of the classifier being used. In turn, the
classifier in its 'reoffload' operation prepares and emits a
'FLOW\_CLS\_DESTROY' command for each filter.

However, the stack does not do the same for chain templates and the
underlying driver never receives a 'FLOW\_CLS\_TMPLT\_DESTROY' command when
a qdisc is deleted. This results in a memory leak \[1\] which can be
reproduced using \[2\].

Fix by introducing a 'tmplt\_reoffload' operation and have the stack
invoke it with the appropriate arguments as part of the replay.
Implement the operation in the sole classifier that supports chain
templates (flower) by emitting the 'FLOW\_CLS\_TMPLT\_{CREATE,DESTROY}'
command based on whether a flow offload callback is being bound to a
filter block or being unbound from one.

As far as I can tell, the issue happens since cited commit which
reordered tcf\_block\_offload\_unbind() before tcf\_block\_flush\_all\_chains()
in \_\_tcf\_block\_put(). The order cannot be reversed as the filter block
is expected to be freed after flushing all the chains.

\[1\]
unreferenced object 0xffff888107e28800 (size 2048):
  comm "tc", pid 1079, jiffies 4294958525 (age 3074.287s)
  hex dump (first 32 bytes):
    b1 a6 7c 11 81 88 ff ff e0 5b b3 10 81 88 ff ff  ..\|......\[......
    01 00 00 00 00 00 00 00 e0 aa b0 84 ff ff ff ff  ................
  backtrace:
    \[\<ffffffff81c06a68\>\] \_\_kmem\_cache\_alloc\_node+0x1e8/0x320
    \[\<ffffffff81ab374e\>\] \_\_kmalloc+0x4e/0x90
    \[\<ffffffff832aec6d\>\] mlxsw\_sp\_acl\_ruleset\_get+0x34d/0x7a0
    \[\<ffffffff832bc195\>\] mlxsw\_sp\_flower\_tmplt\_create+0x145/0x180
    \[\<ffffffff832b2e1a\>\] mlxsw\_sp\_flow\_block\_cb+0x1ea/0x280
    \[\<ffffffff83a10613\>\] tc\_setup\_cb\_call+0x183/0x340
    \[\<ffffffff83a9f85a\>\] fl\_tmplt\_create+0x3da/0x4c0
    \[\<ffffffff83a22435\>\] tc\_ctl\_chain+0xa15/0x1170
    \[\<ffffffff838a863c\>\] rtnetlink\_rcv\_msg+0x3cc/0xed0
    \[\<ffffffff83ac87f0\>\] netlink\_rcv\_skb+0x170/0x440
    \[\<ffffffff83ac6270\>\] netlink\_unicast+0x540/0x820
    \[\<ffffffff83ac6e28\>\] netlink\_sendmsg+0x8d8/0xda0
    \[\<ffffffff83793def\>\] \_\_\_\_sys\_sendmsg+0x30f/0xa80
    \[\<ffffffff8379d29a\>\] \_\_\_sys\_sendmsg+0x13a/0x1e0
    \[\<ffffffff8379d50c\>\] \_\_sys\_sendmsg+0x11c/0x1f0
    \[\<ffffffff843b9ce0\>\] do\_syscall\_64+0x40/0xe0
unreferenced object 0xffff88816d2c0400 (size 1024):
  comm "tc", pid 1079, jiffies 4294958525 (age 3074.287s)
  hex dump (first 32 bytes):
    40 00 00 00 00 00 00 00 57 f6 38 be 00 00 00 00  @.......W.8.....
    10 04 2c 6d 81 88 ff ff 10 04 2c 6d 81 88 ff ff  ..,m......,m....
  backtrace:
    \[\<ffffffff81c06a68\>\] \_\_kmem\_cache\_alloc\_node+0x1e8/0x320
    \[\<ffffffff81ab36c1\>\] \_\_kmalloc\_node+0x51/0x90
    \[\<ffffffff81a8ed96\>\] kvmalloc\_node+0xa6/0x1f0
    \[\<ffffffff82827d03\>\] bucket\_table\_alloc.isra.0+0x83/0x460
    \[\<ffffffff82828d2b\>\] rhashtable\_init+0x43b/0x7c0
    \[\<ffffffff832aed48\>\] mlxsw\_sp\_acl\_ruleset\_get+0x428/0x7a0
    \[\<ffffffff832bc195\>\] mlxsw\_sp\_flower\_tmplt\_create+0x145/0x180
    \[\<ffffffff832b2e1a\>\] mlxsw\_sp\_flow\_block\_cb+0x1ea/0x280
    \[\<ffffffff83a10613\>\] tc\_setup\_cb\_call+0x183/0x340
    \[\<ffffffff83a9f85a\>\] fl\_tmplt\_create+0x3da/0x4c0
    \[\<ffffffff83a22435\>\] tc\_ctl\_chain+0xa15/0x1170
    \[\<ffffffff838a863c\>\] rtnetlink\_rcv\_msg+0x3cc/0xed0
    \[\<ffffffff83ac87f0\>\] netlink\_rcv\_skb+0x170/0x440
    \[\<ffffffff83ac6270\>\] netlink\_unicast+0x540/0x820
    \[\<ffffffff83ac6e28\>\] netlink\_sendmsg+0x8d8/0xda0
    \[\<ffffffff83793def\>\] \_\_\_\_sys\_sendmsg+0x30f/0xa80

\[2\]
 \# tc qdisc add dev swp1 clsact
 \# tc chain add dev swp1 ingress proto ip chain 1 flower dst\_ip 0.0.0.0/32
 \# tc qdisc del dev
---truncated---

## Affected and fixed versions

- Linux: \>= bbf73830cd48cff1599811d4f69c7cfd49c7b869, \< 118823d722a2983da8c821af80fb39cce3e71adb; \>= bbf73830cd48cff1599811d4f69c7cfd49c7b869, \< 85a8b5f3b5e5f2c15a7b6a86976d41e540127ce9; \>= bbf73830cd48cff1599811d4f69c7cfd49c7b869, \< a400208567c3927d8ff2b93f397526795e92d684; \>= bbf73830cd48cff1599811d4f69c7cfd49c7b869, \< 9ed46144cff3598a5cf79955630e795ff9af5b97; \>= bbf73830cd48cff1599811d4f69c7cfd49c7b869, \< c04709b2cc99ae31c346f79f0211752d7b74df01; \>= bbf73830cd48cff1599811d4f69c7cfd49c7b869, \< 32f2a0afa95fae0d1ceec2ff06e0e816939964b8 (cvelist)
- Linux: 5.1 (cvelist)

## Mitigation

- Upgrade Linux to 32f2a0afa95fae0d1ceec2ff06e0e816939964b8 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-26669. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26669.md
Affected: Linux >= bbf73830cd48cff1599811d4f69c7cfd49c7b869, < 118823d722a2983da8c821af80fb39cce3e71adb; >= bbf73830cd48cff1599811d4f69c7cfd49c7b869, < 85a8b5f3b5e5f2c15a7b6a86976d41e540127ce9; >= bbf73830cd48cff1599811d4f69c7cfd49c7b869, < a400208567c3927d8ff2b93f397526795e92d684; >= bbf73830cd48cff1599811d…
Fixed in: Linux 118823d722a2983da8c821af80fb39cce3e71adb, Linux 85a8b5f3b5e5f2c15a7b6a86976d41e540127ce9, Linux 9ed46144cff3598a5cf79955630e795ff9af5b97, Linux 32f2a0afa95fae0d1ceec2ff06e0e816939964b8

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-26669 being exploited?

There is no confirmed exploitation: CVE-2024-26669 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-26669?

High: CVSS 7.1 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-26669?

Linux \>= bbf73830cd48cff1599811d4f69c7cfd49c7b869, \< 118823d722a2983da8c821af80fb39cce3e71adb; \>= bbf73830cd48cff1599811d4f69c7cfd49c7b869, \< 85a8b5f3b5e5f2c15a7b6a86976d41e540127ce9; \>= bbf73830cd48cff1599811d4f69c7cfd49c7b869, \< a400208567c3927d8ff2b93f397526795e92d684; \>= bbf73830cd48cff1599811d4f69c7cfd49c7b869, \< 9ed46144cff3598a5cf79955630e795ff9af5b97; \>= bbf73830cd48cff1599811d4f69c7cfd49c7b869, \< c04709b2cc99ae31c346f79f0211752d7b74df01; \>= bbf73830cd48cff1599811d4f69c7cfd49c7b869, \< 32f2a0afa95fae0d1ceec2ff06e0e816939964b8; Linux 5.1.

### Is there a fix for CVE-2024-26669?

Yes. Fixed in Linux 118823d722a2983da8c821af80fb39cce3e71adb, Linux 85a8b5f3b5e5f2c15a7b6a86976d41e540127ce9, Linux 9ed46144cff3598a5cf79955630e795ff9af5b97, Linux 32f2a0afa95fae0d1ceec2ff06e0e816939964b8. Upgrade Linux to 32f2a0afa95fae0d1ceec2ff06e0e816939964b8 or later.

### How do I check if I'm affected by CVE-2024-26669?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/9ed46144cff3598a5cf79955630e795ff9af5b97>
- patch: <https://git.kernel.org/stable/c/c04709b2cc99ae31c346f79f0211752d7b74df01>
- patch: <https://git.kernel.org/stable/c/32f2a0afa95fae0d1ceec2ff06e0e816939964b8>
- other: <https://git.kernel.org/stable/c/118823d722a2983da8c821af80fb39cce3e71adb>
- other: <https://git.kernel.org/stable/c/85a8b5f3b5e5f2c15a7b6a86976d41e540127ce9>
- other: <https://git.kernel.org/stable/c/a400208567c3927d8ff2b93f397526795e92d684>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26669>

HTML: <https://flawdb.com/CVE-2024-26669> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26669>
