{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2025-37797","published":"2025-05-02T15:15:48.557000Z","last_modified":"2026-07-30T06:22:20.557000Z","status":"Modified","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-416"],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"4.14.1","version_end_excluding":"5.4.293"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.5","version_end_excluding":"5.10.237"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.11","version_end_excluding":"5.15.181"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.16","version_end_excluding":"6.1.136"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.2","version_end_excluding":"6.6.89"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.7","version_end_excluding":"6.12.26"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.13","version_end_excluding":"6.14.5"},{"criteria":"cpe:2.3:o:linux:linux_kernel:4.14:-:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"4.14"},{"criteria":"cpe:2.3:o:linux:linux_kernel:4.14:rc2:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"4.14"},{"criteria":"cpe:2.3:o:linux:linux_kernel:4.14:rc3:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"4.14"},{"criteria":"cpe:2.3:o:linux:linux_kernel:4.14:rc4:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"4.14"},{"criteria":"cpe:2.3:o:linux:linux_kernel:4.14:rc5:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"4.14"},{"criteria":"cpe:2.3:o:linux:linux_kernel:4.14:rc6:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"4.14"},{"criteria":"cpe:2.3:o:linux:linux_kernel:4.14:rc7:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"4.14"},{"criteria":"cpe:2.3:o:linux:linux_kernel:4.14:rc8:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"4.14"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.15:rc1:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.15"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.15"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.15:rc3:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.15"},{"criteria":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"11.0"}],"cpes_truncated":false,"vendors":["linux","debian"],"products":["linux/linux_kernel","debian/debian_linux"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2025-37797/","html_en":"/en/cve/CVE-2025-37797/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-37797","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-37797"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"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.","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/20d584a33e480ae80d105f43e0e7b56784da41b9","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/28b09a067831f7317c3841812276022d6c940677","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/39b9095dd3b55d9b2743df038c32138efa34a9de","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/3aa852e3605000d5c47035c3fc3a986d14ccfa9f","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/3df275ef0a6ae181e8428a6589ef5d5231e58b5c","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/86cd4641c713455a4f1c8e54c370c598c2b1cee0","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/bb583c88d23b72d8d16453d24856c99bd93dadf5","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/fcc8ede663569c704fb00a702973bd6c00373283","tags":["Patch"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html","tags":["Mailing List","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html","tags":["Mailing List","Third Party Advisory"]}]},"bulletins":[{"source":"redhat","id":"RHSA-2025:22752","url":"https://access.redhat.com/errata/RHSA-2025:22752","published":"2025-12-05T10:08:24+00:00","severity":"medium","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: kernel security update"}}]}