{
  "id": "CVE-2025-38107",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38107",
  "published_at": "2025-07-03T08:35:17.487Z",
  "title": "net_sched: ets: fix a race in ets_qdisc_change()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet_sched: ets: fix a race in ets_qdisc_change()\n\nGerrard Tai reported a race condition in ETS, whenever SFQ perturb timer\nfires at the wrong time.\n\nThe race is as follows:\n\nCPU 0                                 CPU 1\n[1]: lock root\n[2]: qdisc_tree_flush_backlog()\n[3]: unlock root\n |\n |                                    [5]: lock root\n |                                    [6]: rehash\n |                                    [7]: qdisc_tree_reduce_backlog()\n |\n[4]: qdisc_put()\n\nThis can be abused to underflow a parent's qlen.\n\nCalling qdisc_purge_queue() instead of qdisc_tree_flush_backlog()\nshould fix the race, because all packets will be purged from the qdisc\nbefore releasing the lock.",
  "cwe": "CWE-362",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.0:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.0:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.0:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.0:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.0:rc7:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 699d82e9a6db29d509a71f1f2f4316231e6232e6, \u003c eb7b74e9754e1ba2088f914ad1f57a778b11894b",
          "\u003e= ce881ddbdc028fb1988b66e40e45ca0529c23b46, \u003c 0b479d0aa488cb478eb2e1d8868be946ac8afb4f",
          "\u003e= b05972f01e7d30419987a1f221b5593668fd6448, \u003c 347867cb424edae5fec1622712c8dd0a2c42918f",
          "\u003e= b05972f01e7d30419987a1f221b5593668fd6448, \u003c 0383b25488a545be168744336847549d4a2d3d6c",
          "\u003e= b05972f01e7d30419987a1f221b5593668fd6448, \u003c 073f64c03516bcfaf790f8edc772e0cfb8a84ec3",
          "\u003e= b05972f01e7d30419987a1f221b5593668fd6448, \u003c fed94bd51d62d2e0e006aa61480e94e5cd0582b0",
          "\u003e= b05972f01e7d30419987a1f221b5593668fd6448, \u003c d92adacdd8c2960be856e0b82acc5b7c5395fddb",
          "fffa19b5e58c34004a0d6f642d9c24b11d213994",
          "fb155f6597cd7bc3aeed668c3bb15fc3b7cb257d",
          "\u003e= 5.10.142, \u003c 5.10.239",
          "\u003e= 5.15.66, \u003c 5.15.186",
          "\u003e= 5.4.213, \u003c 5.5",
          "\u003e= 5.19.8, \u003c 5.20"
        ],
        "fixed_in": [
          "eb7b74e9754e1ba2088f914ad1f57a778b11894b",
          "0b479d0aa488cb478eb2e1d8868be946ac8afb4f",
          "347867cb424edae5fec1622712c8dd0a2c42918f",
          "0383b25488a545be168744336847549d4a2d3d6c",
          "073f64c03516bcfaf790f8edc772e0cfb8a84ec3",
          "fed94bd51d62d2e0e006aa61480e94e5cd0582b0",
          "d92adacdd8c2960be856e0b82acc5b7c5395fddb",
          "5.10.239",
          "5.15.186",
          "5.5",
          "5.20"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.0"
        ],
        "fixed_in": [
          "0",
          "5.10.239",
          "5.15.186",
          "6.1.142",
          "6.6.94",
          "6.12.34",
          "6.15.3",
          "6.16"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to eb7b74e9754e1ba2088f914ad1f57a778b11894b or 0b479d0aa488cb478eb2e1d8868be946ac8afb4f or 347867cb424edae5fec1622712c8dd0a2c42918f or 0383b25488a545be168744336847549d4a2d3d6c or 073f64c03516bcfaf790f8edc772e0cfb8a84ec3 or fed94bd51d62d2e0e006aa61480e94e5cd0582b0 or d92adacdd8c2960be856e0b82acc5b7c5395fddb or 5.10.239 or 5.15.186 or 5.5 or 5.20 or later.",
      "Upgrade Linux to 0 or 5.10.239 or 5.15.186 or 6.1.142 or 6.6.94 or 6.12.34 or 6.15.3 or 6.16 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
