{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "71d0ed7079dffbc5cd0941d77d9b84e04109c9bb"
            },
            {
              "fixed": "0d8532a5e972a5351cf4ee4a435e0d65cbba8f23"
            },
            {
              "fixed": "27488e1a7f19757e6146edca9458ed4ffc545557"
            },
            {
              "fixed": "6f9b23eb92a894ae1118893996943990ee0b860e"
            },
            {
              "fixed": "8e49cd891bda447c68122d672510a604a8bb6b24"
            },
            {
              "fixed": "8b519cbcabe836a441369fbec1a8a6518a709251"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.11.0"
            },
            {
              "fixed": "6.6.145"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.97"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.40"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.1.5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72338.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: act_pedit: fix TOCTOU heap OOB write in tc offload\n\nThere is a TOCTOU race condition in flower lockless approach between sizing\na flow_rule buffer and filling it.\nzdi-disclosures@trendmicro.com reports:\nThe cls_flower classifier operates with TCF_PROTO_OPS_DOIT_UNLOCKED\n(fl_change runs without RTNL), while RTM_NEWACTION holds RTNL, so the\nindependent locking domains make the race reachable in practice.  KASAN\nconfirms:\n  BUG: KASAN: slab-out-of-bounds in tcf_pedit_offload_act_setup+0x81b/0x930\n  Write of size 4 at addr ffff888001f27520 by task poc-toctou/312\n  The buggy address is located 0 bytes to the right of\n   allocated 288-byte region [ffff888001f27400, ffff888001f27520)\n   (cache kmalloc-512)\n\nNote: The result is a heap OOB write attacker-controlled content into the\nadjacent slab object (requires CAP_NET_ADMIN).\n\nThe fix introduces reading tcfp_nkeys under act-\u003etcfa_lock in all places\nusing a new tcf_pedit_nkeys_locked() which replaces the old tcf_pedit_nkeys().\nAdditionally we close the remaining TOCTOU window between the sizing read and\nthe fill reads by more careful accounting.\nRather than silently truncating the key count, which leads to incorrect\naction semantics offloaded to hardware and secondary OOB writes if\nthe remaining capacity is zero or consumed by prior actions, we enforce\nremaining capacity checks and return -ENOSPC if the required space exceeds\nthe remaining capacity.",
  "id": "CVE-2026-72338",
  "modified": "2026-08-16T03:31:20.251710569Z",
  "published": "2026-08-15T05:55:45.823Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0d8532a5e972a5351cf4ee4a435e0d65cbba8f23"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/27488e1a7f19757e6146edca9458ed4ffc545557"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6f9b23eb92a894ae1118893996943990ee0b860e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8b519cbcabe836a441369fbec1a8a6518a709251"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8e49cd891bda447c68122d672510a604a8bb6b24"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/72xxx/CVE-2026-72338.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-72338"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "net/sched: act_pedit: fix TOCTOU heap OOB write in tc offload"
}