{
  "id": "CVE-2025-38000",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38000",
  "published_at": "2025-06-06T13:03:35.405Z",
  "title": "sch_hfsc: Fix qlen accounting bug when using peek in hfsc_enqueue()",
  "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\nsch_hfsc: Fix qlen accounting bug when using peek in hfsc_enqueue()\n\nWhen enqueuing the first packet to an HFSC class, hfsc_enqueue() calls the\nchild qdisc's peek() operation before incrementing sch-\u003eq.qlen and\nsch-\u003eqstats.backlog. If the child qdisc uses qdisc_peek_dequeued(), this may\ntrigger an immediate dequeue and potential packet drop. In such cases,\nqdisc_tree_reduce_backlog() is called, but the HFSC qdisc's qlen and backlog\nhave not yet been updated, leading to inconsistent queue accounting. This\ncan leave an empty HFSC class in the active list, causing further\nconsequences like use-after-free.\n\nThis patch fixes the bug by moving the increment of sch-\u003eq.qlen and\nsch-\u003eqstats.backlog before the call to the child qdisc's peek() operation.\nThis ensures that queue length and backlog are always accurate when packet\ndrops or dequeues are triggered during the peek.",
  "cwe": "CWE-416",
  "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.15:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc7:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, \u003c 1034e3310752e8675e313f7271b348914008719a",
          "\u003e= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, \u003c f9f593e34d2fb67644372c8f7b033bdc622ad228",
          "\u003e= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, \u003c 89c301e929a0db14ebd94b4d97764ce1d6981653",
          "\u003e= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, \u003c f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4",
          "\u003e= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, \u003c 93c276942e75de0e5bc91576300d292e968f5a02",
          "\u003e= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, \u003c 49b21795b8e5654a7df3d910a12e1060da4c04cf",
          "\u003e= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, \u003c 3f3a22eebbc32b4fa8ce9c1d5f9db214b45b9335",
          "\u003e= 12d0ad3be9c3854e52ec74bb83bb6f43612827c7, \u003c 3f981138109f63232a5fb7165938d4c945cc1b9d"
        ],
        "fixed_in": [
          "1034e3310752e8675e313f7271b348914008719a",
          "f9f593e34d2fb67644372c8f7b033bdc622ad228",
          "89c301e929a0db14ebd94b4d97764ce1d6981653",
          "f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4",
          "93c276942e75de0e5bc91576300d292e968f5a02",
          "49b21795b8e5654a7df3d910a12e1060da4c04cf",
          "3f3a22eebbc32b4fa8ce9c1d5f9db214b45b9335",
          "3f981138109f63232a5fb7165938d4c945cc1b9d"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "4.8"
        ],
        "fixed_in": [
          "0",
          "5.4.294",
          "5.10.238",
          "5.15.185",
          "6.1.141",
          "6.6.93",
          "6.12.31",
          "6.14.9",
          "6.15"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 1034e3310752e8675e313f7271b348914008719a or f9f593e34d2fb67644372c8f7b033bdc622ad228 or 89c301e929a0db14ebd94b4d97764ce1d6981653 or f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4 or 93c276942e75de0e5bc91576300d292e968f5a02 or 49b21795b8e5654a7df3d910a12e1060da4c04cf or 3f3a22eebbc32b4fa8ce9c1d5f9db214b45b9335 or 3f981138109f63232a5fb7165938d4c945cc1b9d or later.",
      "Upgrade Linux to 0 or 5.4.294 or 5.10.238 or 5.15.185 or 6.1.141 or 6.6.93 or 6.12.31 or 6.14.9 or 6.15 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
