CVE-2026-139268

net/sched: act_api: reject duplicate actions in a batch

Published Nov 30, 2026 CVSS 3.1 · 5.5 Medium EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

net/sched: act_api: reject duplicate actions in a batch

tca_action_gd() builds actions[] with one tcf_action_get_1() per nested
TCA_ACT_TAB entry. Each successful lookup takes its own reference to the
resolved action, so repeated TCA_ACT_INDEX entries in one request yield
the same pointer in multiple slots.

For RTM_DELACTION, tcf_action_delete() then consumes two references per
slot: one in tcf_action_put() and one in tcf_idr_delete_index(). A
duplicate therefore drives the refcount to zero mid-walk -- the delete
frees the action and removes its IDR slot -- and the next slot calls
tcf_action_put() on the freed action:

refcount_t: underflow; use-after-free.
WARNING: lib/refcount.c:87 at refcount_dec_not_one
refcount_dec_and_mutex_lock
__tcf_action_put
tca_action_gd

Three duplicate entries are enough. Reject a repeated action while a
delete batch is built, dropping the reference the extra lookup took, and
return -EINVAL. RTM_GETACTION balances its own references and keeps
accepting duplicate entries.

Conditions to recreate the bug:
tc actions add action gact index 100
tc actions delete action gact index 100 action gact index 100 \
action gact index 100

Analysis

AI-generated

Technical impact

The Linux kernel’s traffic‑control action API can accept duplicate action entries in a single delete batch, causing the reference count of the action object to underflow and a use‑after‑free. This frees the action and then another slot attempts to increment the reference count on the freed object, leading to memory corruption in kernel space and a kernel crash. Based on the description, it is inferred that such a memory corruption could be exploited to execute arbitrary code with kernel privilege, but that specific capability is not explicitly stated in the CVE data.

Affected Systems

All Linux kernels that include the act_api code before the commit that rejects duplicate actions are impacted. The advisory does not specify exact version ranges, so administrators should verify that their kernel contains the duplicate‑rejection change and consider whether a past kernel release might still contain the flaw.

Risk and Exploitability

The CVSS score is not provided in the advisory, and the EPSS score is unavailable. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector involves an attacker with administrative privileges or root access, as the tc utility that manipulates the net/sched interfaces requires CAP_NET_ADMIN. This requirement is inferred from the fact that tc typically runs with elevated privileges. No widespread exploitation has been reported, but the use‑after‑free could lead to a kernel panic or, if exploited, elevate privileges.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the commit fixing duplicate action handling; distributors usually package this as a security update.
  • If an immediate update is not possible, backport the patch to the running kernel source, rebuild the kernel, and reinstall it.
  • Restrict access to the tc utility and related net/sched interfaces to trusted administrators only; consider disabling or removing unnecessary traffic‑control features.

Generated by OpenCVE AI on December 1, 2026 at 08:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-825
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net/sched: act_api: reject duplicate actions in a batch tca_action_gd() builds actions[] with one tcf_action_get_1() per nested TCA_ACT_TAB entry. Each successful lookup takes its own reference to the resolved action, so repeated TCA_ACT_INDEX entries in one request yield the same pointer in multiple slots. For RTM_DELACTION, tcf_action_delete() then consumes two references per slot: one in tcf_action_put() and one in tcf_idr_delete_index(). A duplicate therefore drives the refcount to zero mid-walk -- the delete frees the action and removes its IDR slot -- and the next slot calls tcf_action_put() on the freed action: refcount_t: underflow; use-after-free. WARNING: lib/refcount.c:87 at refcount_dec_not_one refcount_dec_and_mutex_lock __tcf_action_put tca_action_gd Three duplicate entries are enough. Reject a repeated action while a delete batch is built, dropping the reference the extra lookup took, and return -EINVAL. RTM_GETACTION balances its own references and keeps accepting duplicate entries. Conditions to recreate the bug: tc actions add action gact index 100 tc actions delete action gact index 100 action gact index 100 \ action gact index 100
Title net/sched: act_api: reject duplicate actions in a batch
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:33 PM