{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38000","id":"CVE-2025-38000","title":"sch_hfsc: Fix qlen accounting bug when using peek in hfsc_enqueue()","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->q.qlen and\nsch->qstats.backlog. If the child qdisc uses qdisc_peek_dequeued(), this may\ntrigger an immediate dequeue and potential ","descriptionLong":"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->q.qlen and\nsch->qstats.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->q.qlen and\nsch->qstats.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.","published":"2025-06-06T13:03:35.405Z","updated":"2026-10-28T02:31:01.814109339Z","reserved":"2025-04-16T04:51:23.976Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"12d0ad3be9c3854e52ec74bb83bb6f43612827c7","lessThan":"1034e3310752e8675e313f7271b348914008719a","status":"affected","versionType":"git"},{"version":"12d0ad3be9c3854e52ec74bb83bb6f43612827c7","lessThan":"f9f593e34d2fb67644372c8f7b033bdc622ad228","status":"affected","versionType":"git"},{"version":"12d0ad3be9c3854e52ec74bb83bb6f43612827c7","lessThan":"89c301e929a0db14ebd94b4d97764ce1d6981653","status":"affected","versionType":"git"},{"version":"12d0ad3be9c3854e52ec74bb83bb6f43612827c7","lessThan":"f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4","status":"affected","versionType":"git"},{"version":"12d0ad3be9c3854e52ec74bb83bb6f43612827c7","lessThan":"93c276942e75de0e5bc91576300d292e968f5a02","status":"affected","versionType":"git"},{"version":"12d0ad3be9c3854e52ec74bb83bb6f43612827c7","lessThan":"49b21795b8e5654a7df3d910a12e1060da4c04cf","status":"affected","versionType":"git"},{"version":"12d0ad3be9c3854e52ec74bb83bb6f43612827c7","lessThan":"3f3a22eebbc32b4fa8ce9c1d5f9db214b45b9335","status":"affected","versionType":"git"},{"version":"12d0ad3be9c3854e52ec74bb83bb6f43612827c7","lessThan":"3f981138109f63232a5fb7165938d4c945cc1b9d","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.8","status":"affected"},{"version":"0","lessThan":"4.8","status":"unaffected","versionType":"semver"},{"version":"5.4.294","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.238","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.185","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.141","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.93","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.31","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.14.9","lessThanOrEqual":"6.14.*","status":"unaffected","versionType":"semver"},{"version":"6.15","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/1034e3310752e8675e313f7271b348914008719a","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f9f593e34d2fb67644372c8f7b033bdc622ad228","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/89c301e929a0db14ebd94b4d97764ce1d6981653","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f1dde3eb17dc1b8bd07aed00004b1e05fc87a3d4","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/93c276942e75de0e5bc91576300d292e968f5a02","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/49b21795b8e5654a7df3d910a12e1060da4c04cf","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/3f3a22eebbc32b4fa8ce9c1d5f9db214b45b9335","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/3f981138109f63232a5fb7165938d4c945cc1b9d","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38000.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38000","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00241,"epssPercentile":0.1546,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38000","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38000","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38000","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38000","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}