CVE-2026-139268

Source
https://cve.org/CVERecord?id=CVE-2026-139268
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139268.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139268
Downstream
Published
2026-11-30T13:33:10Z
Modified
2026-11-30T15:00:19Z
Summary
net/sched: act_api: reject duplicate actions in a batch
Details

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

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139268.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
16af6067392c40e454e49eec834843ab03643d96
Fixed
d4229acd7c22f6af52db2a32f8e3f47b4376f68c
Fixed
ecdf29d27ba4748dcae391c4db4f78cde4c8e341
Fixed
2e60fc3160988f22a91284d0c06c2a98034d50bf
Fixed
713558512bd62c262c8bfb410e9f7232b2e7efc3
Fixed
4ba345f48749f1994a66a4e74a5f6e27a261c928
Fixed
729549dcf46800fd8a1810fb0021bdc46e3e7554
Fixed
d6c2174294977869c8e8534a21d5667befd59cd8
Fixed
f67b3ed1308d7a282e2d6202d61af052ab0da39e

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139268.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.19.0
Fixed
5.10.275
Type
ECOSYSTEM
Events
Introduced
5.11.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139268.json"