{"id":"CVE-2026-139268","state":"PUBLISHED","title":"net/sched: act_api: reject duplicate actions in a batch","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: act_api: reject duplicate actions in a batch\n\ntca_action_gd() builds actions[] with one tcf_action_get_1() per nested\nTCA_ACT_TAB entry.  Each successful lookup takes its own reference to the\nresolved action, so repeated TCA_ACT_INDEX entries in one request yield\nthe same pointer in multiple slots.\n\nFor RTM_DELACTION, tcf_action_delete() then consumes two references per\nslot: one in tcf_action_put() and one in tcf_idr_delete_index().  A\nduplicate therefore drives the refcount to zero mid-walk -- the delete\nfrees the action and removes its IDR slot -- and the next slot calls\ntcf_action_put() on the freed action:\n\n  refcount_t: underflow; use-after-free.\n  WARNING: lib/refcount.c:87 at refcount_dec_not_one\n   refcount_dec_and_mutex_lock\n   __tcf_action_put\n   tca_action_gd\n\nThree duplicate entries are enough.  Reject a repeated action while a\ndelete batch is built, dropping the reference the extra lookup took, and\nreturn -EINVAL.  RTM_GETACTION balances its own references and keeps\naccepting duplicate entries.\n\nConditions to recreate the bug:\n  tc actions add action gact index 100\n  tc actions delete action gact index 100 action gact index 100 \\\n                     action gact index 100","publishedAt":"2026-11-30T13:33:10.545Z","updatedAt":"2026-11-30T13:33:10.545Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"16af6067392c40e454e49eec834843ab03643d96","status":"affected","lessThan":"d4229acd7c22f6af52db2a32f8e3f47b4376f68c","versionType":"git"},{"version":"16af6067392c40e454e49eec834843ab03643d96","status":"affected","lessThan":"ecdf29d27ba4748dcae391c4db4f78cde4c8e341","versionType":"git"},{"version":"16af6067392c40e454e49eec834843ab03643d96","status":"affected","lessThan":"2e60fc3160988f22a91284d0c06c2a98034d50bf","versionType":"git"},{"version":"16af6067392c40e454e49eec834843ab03643d96","status":"affected","lessThan":"713558512bd62c262c8bfb410e9f7232b2e7efc3","versionType":"git"},{"version":"16af6067392c40e454e49eec834843ab03643d96","status":"affected","lessThan":"4ba345f48749f1994a66a4e74a5f6e27a261c928","versionType":"git"},{"version":"16af6067392c40e454e49eec834843ab03643d96","status":"affected","lessThan":"729549dcf46800fd8a1810fb0021bdc46e3e7554","versionType":"git"},{"version":"16af6067392c40e454e49eec834843ab03643d96","status":"affected","lessThan":"d6c2174294977869c8e8534a21d5667befd59cd8","versionType":"git"},{"version":"16af6067392c40e454e49eec834843ab03643d96","status":"affected","lessThan":"f67b3ed1308d7a282e2d6202d61af052ab0da39e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/act_api.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.19","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/act_api.c"]}],"references":["https://git.kernel.org/stable/c/d4229acd7c22f6af52db2a32f8e3f47b4376f68c","https://git.kernel.org/stable/c/ecdf29d27ba4748dcae391c4db4f78cde4c8e341","https://git.kernel.org/stable/c/2e60fc3160988f22a91284d0c06c2a98034d50bf","https://git.kernel.org/stable/c/713558512bd62c262c8bfb410e9f7232b2e7efc3","https://git.kernel.org/stable/c/4ba345f48749f1994a66a4e74a5f6e27a261c928","https://git.kernel.org/stable/c/729549dcf46800fd8a1810fb0021bdc46e3e7554","https://git.kernel.org/stable/c/d6c2174294977869c8e8534a21d5667befd59cd8","https://git.kernel.org/stable/c/f67b3ed1308d7a282e2d6202d61af052ab0da39e"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139268.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139268","state":"PUBLISHED","datePublished":"2026-11-30T13:33:10.545Z","dateUpdated":"2026-11-30T13:33:10.545Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.923Z"},"containers":{"cna":{"title":"net/sched: act_api: reject duplicate actions in a batch","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: act_api: reject duplicate actions in a batch\n\ntca_action_gd() builds actions[] with one tcf_action_get_1() per nested\nTCA_ACT_TAB entry.  Each successful lookup takes its own reference to the\nresolved action, so repeated TCA_ACT_INDEX entries in one request yield\nthe same pointer in multiple slots.\n\nFor RTM_DELACTION, tcf_action_delete() then consumes two references per\nslot: one in tcf_action_put() and one in tcf_idr_delete_index().  A\nduplicate therefore drives the refcount to zero mid-walk -- the delete\nfrees the action and removes its IDR slot -- and the next slot calls\ntcf_action_put() on the freed action:\n\n  refcount_t: underflow; use-after-free.\n  WARNING: lib/refcount.c:87 at refcount_dec_not_one\n   refcount_dec_and_mutex_lock\n   __tcf_action_put\n   tca_action_gd\n\nThree duplicate entries are enough.  Reject a repeated action while a\ndelete batch is built, dropping the reference the extra lookup took, and\nreturn -EINVAL.  RTM_GETACTION balances its own references and keeps\naccepting duplicate entries.\n\nConditions to recreate the bug:\n  tc actions add action gact index 100\n  tc actions delete action gact index 100 action gact index 100 \\\n                     action gact index 100"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"16af6067392c40e454e49eec834843ab03643d96","status":"affected","lessThan":"d4229acd7c22f6af52db2a32f8e3f47b4376f68c","versionType":"git"},{"version":"16af6067392c40e454e49eec834843ab03643d96","status":"affected","lessThan":"ecdf29d27ba4748dcae391c4db4f78cde4c8e341","versionType":"git"},{"version":"16af6067392c40e454e49eec834843ab03643d96","status":"affected","lessThan":"2e60fc3160988f22a91284d0c06c2a98034d50bf","versionType":"git"},{"version":"16af6067392c40e454e49eec834843ab03643d96","status":"affected","lessThan":"713558512bd62c262c8bfb410e9f7232b2e7efc3","versionType":"git"},{"version":"16af6067392c40e454e49eec834843ab03643d96","status":"affected","lessThan":"4ba345f48749f1994a66a4e74a5f6e27a261c928","versionType":"git"},{"version":"16af6067392c40e454e49eec834843ab03643d96","status":"affected","lessThan":"729549dcf46800fd8a1810fb0021bdc46e3e7554","versionType":"git"},{"version":"16af6067392c40e454e49eec834843ab03643d96","status":"affected","lessThan":"d6c2174294977869c8e8534a21d5667befd59cd8","versionType":"git"},{"version":"16af6067392c40e454e49eec834843ab03643d96","status":"affected","lessThan":"f67b3ed1308d7a282e2d6202d61af052ab0da39e","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/act_api.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.19","versionType":"semver"},{"version":"5.10.275","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/sched/act_api.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/d4229acd7c22f6af52db2a32f8e3f47b4376f68c"},{"url":"https://git.kernel.org/stable/c/ecdf29d27ba4748dcae391c4db4f78cde4c8e341"},{"url":"https://git.kernel.org/stable/c/2e60fc3160988f22a91284d0c06c2a98034d50bf"},{"url":"https://git.kernel.org/stable/c/713558512bd62c262c8bfb410e9f7232b2e7efc3"},{"url":"https://git.kernel.org/stable/c/4ba345f48749f1994a66a4e74a5f6e27a261c928"},{"url":"https://git.kernel.org/stable/c/729549dcf46800fd8a1810fb0021bdc46e3e7554"},{"url":"https://git.kernel.org/stable/c/d6c2174294977869c8e8534a21d5667befd59cd8"},{"url":"https://git.kernel.org/stable/c/f67b3ed1308d7a282e2d6202d61af052ab0da39e"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:33:10.545Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.19","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}