GHSA-C9MW-8XPP-J3XC
Vulnerability from github – Published: 2026-12-03 12:31 – Updated: 2026-12-04 06:31In 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.
{
"affected": [],
"aliases": [
"CVE-2026-143196"
],
"database_specific": {
"cwe_ids": [],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-12-03T10:17:56Z",
"severity": "HIGH"
},
"details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: HWS, fix flow meter release on FTE update\n\nHWS has no duplicate match. When a flower filter is replaced in place,\nits new rule waits as the pending duplicate of the old FTE. Once the\nold rule goes, switch_to_pending_act_dests() copies the pending actions\nover the FTE before update_fte() releases the actions of the old rule.\nAn HWS rule reads the base id of its meter action through a pointer to\nthe exe_aso of the FTE. That release takes the meter action of the new\nrule instead.\n\nWhen the two meters sit in different ASO objects, the old meter action\nleaks. It keeps its ASO object referenced. The firmware then fails to\ndestroy that object and to free the PD of the meters, and its STC is\nstill in the pool when the context closes. The new meter action is\ndestroyed one release early, while a rule still points to it, and the\nlast release underflows its refcount:\n\n 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)\n refcount_t: underflow; use-after-free.\n WARNING: lib/refcount.c:96 at refcount_dec_not_one+0x3f/0x60, CPU#43: tc/2641\n Call Trace:\n \u003cTASK\u003e\n mlx5_fs_put_hws_action.part.0+0x1a/0xa0 [mlx5_core]\n mlx5_fs_destroy_fs_actions+0xa8/0x110 [mlx5_core]\n mlx5_cmd_hws_delete_fte+0x49/0x90 [mlx5_core]\n del_hw_fte+0x209/0x320 [mlx5_core]\n mlx5_del_flow_rules+0x10b/0x260 [mlx5_core]\n __mlx5_eswitch_del_rule+0x5c/0x1b0 [mlx5_core]\n mlx5_eswitch_del_offloaded_rule+0x10/0x20 [mlx5_core]\n mlx5e_tc_rule_unoffload+0x4b/0x100 [mlx5_core]\n mlx5e_tc_unoffload_fdb_rules+0x35/0x80 [mlx5_core]\n mlx5e_tc_del_fdb_flow+0x2ca/0x310 [mlx5_core]\n mlx5e_tc_del_flow+0x5d/0x2d0 [mlx5_core]\n mlx5e_flow_put+0x3a/0x80 [mlx5_core]\n mlx5e_delete_flower+0x291/0x460 [mlx5_core]\n mlx5e_setup_tc_block_cb+0xc4/0x110 [mlx5_core]\n tc_setup_cb_destroy+0xcc/0x1b0\n fl_hw_destroy_filter+0xa1/0xe0 [cls_flower]\n __fl_delete+0x2d0/0x3d0 [cls_flower]\n fl_destroy+0xbd/0x160 [cls_flower]\n tcf_proto_destroy+0x3b/0x110\n tcf_proto_put+0x3d/0x70\n tc_del_tfilter+0x362/0x8f0\n rtnetlink_rcv_msg+0x384/0x460\n netlink_rcv_skb+0x61/0x120\n rtnetlink_rcv+0x15/0x30\n netlink_unicast+0x2a1/0x3d0\n netlink_sendmsg+0x237/0x490\n ____sys_sendmsg+0x33b/0x360\n ___sys_sendmsg+0x99/0xf0\n __sys_sendmsg+0x93/0x100\n __x64_sys_sendmsg+0x1d/0x30\n x64_sys_call+0x821/0x23d0\n do_syscall_64+0xba/0x550\n entry_SYSCALL_64_after_hwframe+0x76/0x7e\n \u003c/TASK\u003e\n 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)\n mlx5_core 0000:b1:00.1: mlx5hws_pool_destroy:386:(pid 2642): Attempting to destroy non-empty pool\n\nKeep the base id in the rule action, as the sampler id is.\n\nDiscovered while stress testing a 5G UPF kernel code. Without this fix,\nthe reproduction below gives the trace above on a ConnectX-7 with\nfirmware 28.48.1000. It only uses tc and devlink, with no kernel\nchange. 129 meters cannot fit in one ASO object. DEV is the uplink\nrepresentor and PCI its devlink handle:\n\n 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\"; }\n devlink dev param set $PCI name flow_steering_mode value hmfs cmode runtime\n devlink dev eswitch set $PCI mode switchdev\n tc qdisc add dev $DEV ingress\n for i in $(seq 129); do r add $i $i; done | tc -b -\n r replace 1 1000 | tc -b -\n tc filter del dev $DEV ingress prio 1\n devlink dev eswitch set $PCI mode legacy\n\nWith this fix, the reproduction runs clean on the same ConnectX-7.\nIt was not tested against kernel selftests.",
"id": "GHSA-c9mw-8xpp-j3xc",
"modified": "2026-12-04T06:31:08Z",
"published": "2026-12-03T12:31:08Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143196"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/087f9763557bad13d5de65e3dbf1a018ba6164c2"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/145480b28ca82e9fae789427cc4569e596515a32"
},
{
"type": "WEB",
"url": "https://git.kernel.org/stable/c/f534116da01c1dac9a5484df439b6ffabb02ae90"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.