PT-2026-167054

CVE-2026-143196

·

Published

2026-12-03

·

Updated

2026-12-03

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
net/mlx5: HWS, fix flow meter release on FTE update
HWS has no duplicate match. When a flower filter is replaced in place, its new rule waits as the pending duplicate of the old FTE. Once the old rule goes, switch to pending act dests() copies the pending actions over the FTE before update fte() releases the actions of the old rule. An HWS rule reads the base id of its meter action through a pointer to the exe aso of the FTE. That release takes the meter action of the new rule instead.
When the two meters sit in different ASO objects, the old meter action leaks. It keeps its ASO object referenced. The firmware then fails to destroy that object and to free the PD of the meters, and its STC is still in the pool when the context closes. The new meter action is destroyed one release early, while a rule still points to it, and the last release underflows its refcount:
mlx5 core 0000:b1:00.1: mlx5 cmd out err:822:(pid 2641): DESTROY GENERAL OBJECT(0xa03) op mod(0x24) failed, status bad resource(0x5), syndrome (0xeeda5c), err(-22) refcount t: underflow; use-after-free. WARNING: lib/refcount.c:96 at refcount dec not one+0x3f/0x60, CPU#43: tc/2641 Call Trace: mlx5 fs put hws action.part.0+0x1a/0xa0 [mlx5 core] mlx5 fs destroy fs actions+0xa8/0x110 [mlx5 core] mlx5 cmd hws delete fte+0x49/0x90 [mlx5 core] del hw fte+0x209/0x320 [mlx5 core] mlx5 del flow rules+0x10b/0x260 [mlx5 core] mlx5 eswitch del rule+0x5c/0x1b0 [mlx5 core] mlx5 eswitch del offloaded rule+0x10/0x20 [mlx5 core] mlx5e tc rule unoffload+0x4b/0x100 [mlx5 core] mlx5e tc unoffload fdb rules+0x35/0x80 [mlx5 core] mlx5e tc del fdb flow+0x2ca/0x310 [mlx5 core] mlx5e tc del flow+0x5d/0x2d0 [mlx5 core] mlx5e flow put+0x3a/0x80 [mlx5 core] mlx5e delete flower+0x291/0x460 [mlx5 core] mlx5e setup tc block cb+0xc4/0x110 [mlx5 core] tc setup cb destroy+0xcc/0x1b0 fl hw destroy filter+0xa1/0xe0 [cls flower] fl delete+0x2d0/0x3d0 [cls flower] fl destroy+0xbd/0x160 [cls flower] tcf proto destroy+0x3b/0x110 tcf proto put+0x3d/0x70 tc del tfilter+0x362/0x8f0 rtnetlink rcv msg+0x384/0x460 netlink rcv skb+0x61/0x120 rtnetlink rcv+0x15/0x30 netlink unicast+0x2a1/0x3d0 netlink sendmsg+0x237/0x490 sys sendmsg+0x33b/0x360 sys sendmsg+0x99/0xf0 sys sendmsg+0x93/0x100 x64 sys sendmsg+0x1d/0x30 x64 sys call+0x821/0x23d0 do syscall 64+0xba/0x550 entry SYSCALL 64 after hwframe+0x76/0x7e mlx5 core 0000:b1:00.1: mlx5 cmd out err:822:(pid 2642): DEALLOC PD(0x801) op mod(0x0) failed, status bad resource state(0x9), syndrome (0xef0c8a), err(-22) mlx5 core 0000:b1:00.1: mlx5hws pool destroy:386:(pid 2642): Attempting to destroy non-empty pool
Keep the base id in the rule action, as the sampler id is.
Discovered while stress testing a 5G UPF kernel code. Without this fix, the reproduction below gives the trace above on a ConnectX-7 with firmware 28.48.1000. It only uses tc and devlink, with no kernel change. 129 meters cannot fit in one ASO object. DEV is the uplink representor and PCI its devlink handle:
r() { echo "filter $1 dev $DEV ingress prio 1 handle $2 protocol ip flower skip sw dst ip 10.0.0.$2 action police index $3 rate 1mbit burst 32k conform-exceed drop/pipe action drop"; } devlink dev param set $PCI name flow steering mode value hmfs cmode runtime devlink dev eswitch set $PCI mode switchdev tc qdisc add dev $DEV ingress for i in $(seq 129); do r add $i $i; done | tc -b - r replace 1 1000 | tc -b - tc filter del dev $DEV ingress prio 1 devlink dev eswitch set $PCI mode legacy
With this fix, the reproduction runs clean on the same ConnectX-7. It was not tested against kernel selftests.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾