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

Summary

CVECVE-2026-139268
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:18:49 UTC
Updated2026-11-30 14:18:49 UTC
DescriptionIn 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

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 16af6067392c40e454e49eec834843ab03643d96 d4229acd7c22f6af52db2a32f8e3f47b4376f68c git Not specified
CNA Linux Linux affected 16af6067392c40e454e49eec834843ab03643d96 ecdf29d27ba4748dcae391c4db4f78cde4c8e341 git Not specified
CNA Linux Linux affected 16af6067392c40e454e49eec834843ab03643d96 2e60fc3160988f22a91284d0c06c2a98034d50bf git Not specified
CNA Linux Linux affected 16af6067392c40e454e49eec834843ab03643d96 713558512bd62c262c8bfb410e9f7232b2e7efc3 git Not specified
CNA Linux Linux affected 16af6067392c40e454e49eec834843ab03643d96 4ba345f48749f1994a66a4e74a5f6e27a261c928 git Not specified
CNA Linux Linux affected 16af6067392c40e454e49eec834843ab03643d96 729549dcf46800fd8a1810fb0021bdc46e3e7554 git Not specified
CNA Linux Linux affected 16af6067392c40e454e49eec834843ab03643d96 d6c2174294977869c8e8534a21d5667befd59cd8 git Not specified
CNA Linux Linux affected 16af6067392c40e454e49eec834843ab03643d96 f67b3ed1308d7a282e2d6202d61af052ab0da39e git Not specified
CNA Linux Linux affected 4.19 Not specified
CNA Linux Linux unaffected 4.19 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.119 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/ecdf29d27ba4748dcae391c4db4f78cde4c8e341 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/713558512bd62c262c8bfb410e9f7232b2e7efc3 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f67b3ed1308d7a282e2d6202d61af052ab0da39e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d6c2174294977869c8e8534a21d5667befd59cd8 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/2e60fc3160988f22a91284d0c06c2a98034d50bf 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/729549dcf46800fd8a1810fb0021bdc46e3e7554 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/4ba345f48749f1994a66a4e74a5f6e27a261c928 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d4229acd7c22f6af52db2a32f8e3f47b4376f68c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report