{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-37797","id":"CVE-2025-37797","title":"net_sched: hfsc: Fix a UAF vulnerability in class handling","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet_sched: hfsc: Fix a UAF vulnerability in class handling\n\nThis patch fixes a Use-After-Free vulnerability in the HFSC qdisc class\nhandling. The issue occurs due to a time-of-check/time-of-use condition\nin hfsc_change_class() when working with certain child qdiscs like netem\nor codel.\n\nThe vulnerability works as follows:\n1. hfsc","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet_sched: hfsc: Fix a UAF vulnerability in class handling\n\nThis patch fixes a Use-After-Free vulnerability in the HFSC qdisc class\nhandling. The issue occurs due to a time-of-check/time-of-use condition\nin hfsc_change_class() when working with certain child qdiscs like netem\nor codel.\n\nThe vulnerability works as follows:\n1. hfsc_change_class() checks if a class has packets (q.qlen != 0)\n2. It then calls qdisc_peek_len(), which for certain qdiscs (e.g.,\n   codel, netem) might drop packets and empty the queue\n3. The code continues assuming the queue is still non-empty, adding\n   the class to vttree\n4. This breaks HFSC scheduler assumptions that only non-empty classes\n   are in vttree\n5. Later, when the class is destroyed, this can lead to a Use-After-Free\n\nThe fix adds a second queue length check after qdisc_peek_len() to verify\nthe queue wasn't emptied.","published":"2025-05-02T14:16:01.905Z","updated":"2026-10-28T02:30:35.073831532Z","reserved":"2025-04-16T04:51:23.941Z","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":"21f4d5cc25ec0e6e8eb8420dd2c399e6d2fc7d14","lessThan":"28b09a067831f7317c3841812276022d6c940677","status":"affected","versionType":"git"},{"version":"21f4d5cc25ec0e6e8eb8420dd2c399e6d2fc7d14","lessThan":"39b9095dd3b55d9b2743df038c32138efa34a9de","status":"affected","versionType":"git"},{"version":"21f4d5cc25ec0e6e8eb8420dd2c399e6d2fc7d14","lessThan":"fcc8ede663569c704fb00a702973bd6c00373283","status":"affected","versionType":"git"},{"version":"21f4d5cc25ec0e6e8eb8420dd2c399e6d2fc7d14","lessThan":"20d584a33e480ae80d105f43e0e7b56784da41b9","status":"affected","versionType":"git"},{"version":"21f4d5cc25ec0e6e8eb8420dd2c399e6d2fc7d14","lessThan":"3aa852e3605000d5c47035c3fc3a986d14ccfa9f","status":"affected","versionType":"git"},{"version":"21f4d5cc25ec0e6e8eb8420dd2c399e6d2fc7d14","lessThan":"86cd4641c713455a4f1c8e54c370c598c2b1cee0","status":"affected","versionType":"git"},{"version":"21f4d5cc25ec0e6e8eb8420dd2c399e6d2fc7d14","lessThan":"bb583c88d23b72d8d16453d24856c99bd93dadf5","status":"affected","versionType":"git"},{"version":"21f4d5cc25ec0e6e8eb8420dd2c399e6d2fc7d14","lessThan":"3df275ef0a6ae181e8428a6589ef5d5231e58b5c","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.14","status":"affected"},{"version":"0","lessThan":"4.14","status":"unaffected","versionType":"semver"},{"version":"5.4.293","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.237","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.181","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.136","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.89","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.26","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.14.5","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/28b09a067831f7317c3841812276022d6c940677","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/39b9095dd3b55d9b2743df038c32138efa34a9de","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/fcc8ede663569c704fb00a702973bd6c00373283","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/20d584a33e480ae80d105f43e0e7b56784da41b9","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/3aa852e3605000d5c47035c3fc3a986d14ccfa9f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/86cd4641c713455a4f1c8e54c370c598c2b1cee0","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/bb583c88d23b72d8d16453d24856c99bd93dadf5","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/3df275ef0a6ae181e8428a6589ef5d5231e58b5c","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37797.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37797","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.00225,"epssPercentile":0.13275,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-37797","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37797","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-37797","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-37797","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}