{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "16af6067392c40e454e49eec834843ab03643d96"
            },
            {
              "fixed": "d4229acd7c22f6af52db2a32f8e3f47b4376f68c"
            },
            {
              "fixed": "ecdf29d27ba4748dcae391c4db4f78cde4c8e341"
            },
            {
              "fixed": "2e60fc3160988f22a91284d0c06c2a98034d50bf"
            },
            {
              "fixed": "713558512bd62c262c8bfb410e9f7232b2e7efc3"
            },
            {
              "fixed": "4ba345f48749f1994a66a4e74a5f6e27a261c928"
            },
            {
              "fixed": "729549dcf46800fd8a1810fb0021bdc46e3e7554"
            },
            {
              "fixed": "d6c2174294977869c8e8534a21d5667befd59cd8"
            },
            {
              "fixed": "f67b3ed1308d7a282e2d6202d61af052ab0da39e"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "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"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139268.json"
  },
  "details": "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",
  "id": "CVE-2026-139268",
  "modified": "2026-12-01T20:45:49.109562667Z",
  "published": "2026-11-30T13:33:10.545Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2e60fc3160988f22a91284d0c06c2a98034d50bf"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4ba345f48749f1994a66a4e74a5f6e27a261c928"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/713558512bd62c262c8bfb410e9f7232b2e7efc3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/729549dcf46800fd8a1810fb0021bdc46e3e7554"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d4229acd7c22f6af52db2a32f8e3f47b4376f68c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d6c2174294977869c8e8534a21d5667befd59cd8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ecdf29d27ba4748dcae391c4db4f78cde4c8e341"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f67b3ed1308d7a282e2d6202d61af052ab0da39e"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139268.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139268"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "net/sched: act_api: reject duplicate actions in a batch"
}