CVE-2025-37797

Published May 2, 2025

Last updated 3 months ago

Overview

Description
In the Linux kernel, the following vulnerability has been resolved: net_sched: hfsc: Fix a UAF vulnerability in class handling This patch fixes a Use-After-Free vulnerability in the HFSC qdisc class handling. The issue occurs due to a time-of-check/time-of-use condition in hfsc_change_class() when working with certain child qdiscs like netem or codel. The vulnerability works as follows: 1. hfsc_change_class() checks if a class has packets (q.qlen != 0) 2. It then calls qdisc_peek_len(), which for certain qdiscs (e.g., codel, netem) might drop packets and empty the queue 3. The code continues assuming the queue is still non-empty, adding the class to vttree 4. This breaks HFSC scheduler assumptions that only non-empty classes are in vttree 5. Later, when the class is destroyed, this can lead to a Use-After-Free The fix adds a second queue length check after qdisc_peek_len() to verify the queue wasn't emptied.
Source
416baaa9-dc9f-4396-8d5f-8c081fb06d67
NVD status
Modified
Products
linux_kernel, debian_linux

Risk scores

CVSS 3.1

Type
Primary
Base score
7.8
Impact score
5.9
Exploitability score
1.8
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Severity
HIGH

Weaknesses

nvd@nist.gov
CWE-416

Social media

Hype score
Not currently trending
  1. 🚨 CRITICAL: #Ubuntu 16.04 LTS #OracleCloud kernel patches released (USN-7685-5). Multiple high-severity CVEs (inc. CVE-2025-37797, CVE-2024-56748) - risk system compromise. Read more: 👉https://t.co/37IQUckFib #Security https://t.co/6rtZp8YFok

    @Cezar_H_Linux

    13 Aug 2025

    46 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  2. 🔒 URGENT: #openSUSE kernel patches for 3 critical CVEs (CVE-2025-37797, CVE-2025-37752, CVE-2025-21702) are live! DoS risks threaten unpatched systems—especially networks using HFSC/SFQ scheduling. 👉 https://t.co/JkPnR7DScY https://t.co/dKVwjDqDG6

    @Cezar_H_Linux

    5 Aug 2025

    38 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  3. 🚨 Critical #LinuxKernel Patches! SUSE Live Patch 38 (SLE 15 SP4 / openSUSE Leap 15.4) fixes 4 HIGH-sev vulns: ✅ CVE-2025-37797 (HFSC UAF). ✅ CVE-2024-53125 (BPF flaw). ✅ CVE-2025-21702 (pfifo). ✅ CVE-2025-37752 (SFQ). Read more:👉 https://t.co/9xiz3h2QSu https://t.c

    @Cezar_H_Linux

    4 Aug 2025

    46 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  4. 🚨 CVE-2025-37797 (7.8 CVSS) in Linux HFSC scheduler allows UAF attacks! SUSE Live Patch 34 out NOW for SLE 15 SP4/Leap 15.4. ⏩ Patch: zypper in -t patch SUSE-2025-2610=1 Read more: 👉 https://t.co/wHC2XZDFPy https://t.co/lp47ForYWL

    @Cezar_H_Linux

    4 Aug 2025

    37 Impressions

    0 Retweets

    1 Like

    0 Bookmarks

    0 Replies

    0 Quotes

  5. 🚨 Breaking: #SUSE Live Patch 51 for SLE 15 SP3 patches 4 high-risk kernel vulns (CVE-2024-56664, CVE-2025-37797). ✅ Affects openSUSE Leap 15.3, SAP systems. ✅ Exploits: UAF, packet drops, privilege escalation. Read more: 👉https://t.co/jNyyYnCnf7 https://t.co/nwEhA5LdV

    @Cezar_H_Linux

    4 Aug 2025

    50 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  6. 🚨 Breaking: #Ubuntu 24.04/22.04 LTS kernel vulnerabilities (CVE-2025-38083, CVE-2025-37797) allow RCE via network subsystem. ⏱️ Low-latency environments at HIGH risk! Read more: 👉 https://t.co/eHy3mURBuh https://t.co/ahk9WPkIdp

    @Cezar_H_Linux

    1 Aug 2025

    32 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

Configurations

  1. In the Linux kernel, the following vulnerability has been resolved: cgroup: Avoid iteration of dying tasks with zero refcount The commit 260fbcb92bbea ("cgroup: Move dying_tasks cleanup from cgroup_task_release() to cgroup_task_free()") extended the lifetime of tasks on the dying_tasks list. The iterators have provision to go through dying_tasks because of dying threadgroup leaders or explicit CSS_TASK_ITER_WITH_DEAD, however, it was expected that such tasks can obtain a new reference (that is possible before cgroup_task_release()/put_task_struct_rcu_user()). The tasks after cgroup_task_release() and before cgroup_task_free() are subject to race when they may or may not have ->usage count > 0. The race window is between css_task_iter_next() invocations when css_set_lock is released and we may arrive at a new ->task_pos. The iterator should not attempt to resurrect tasks whose ->usage count dropped to zero. (When that happens, __put_task_struct_rcu_cb() is already imminent and the returned task_struct would could be used after free.) As for the fix, we cannot simply check the signal->live count of a task on the dying list because that won't distinguish regular zombies waiting to be reaped from RCU remnant tasks that are going to be free'd. Therefore add an extra check to rule out ->usage==0 tasks from any iteration. The repeat: loop in css_task_iter_advance() doesn't consider ->usage count, so add a new loop to css_task_iter_next() to skip de-used tasks on the dying_list. Rough illustration of the possible race R (reader of cgroup.procs) T (thread) L (group leader) --------------------------------- -------------------------------- -------------------------------- L exits, signal->live > 0 cgroup_task_dead(L) css_set_skip_task_iters() // skips only cset->tasks list_add_tail(&L->cg_list, &cset->dying_tasks) css_task_iter_next() take css_set_lock css_task_iter_advance() leader && signal->live != 0 => it->task_pos = &L->cg_list release css_set_lock T exits --signal->live == 0 cgroup_task_dead(T) // css_set_lock release_task(T) cgroup_task_release(T) release_task(L) // zap_leader cgroup_task_release(L) put_task_struct_rcu_user(L) ...RCU... put_task_struct(L) L->usage = 0 /* L still on dying_tasks */ ...RCU... __put_task_struct(L) css_task_iter_next() // another iteration take css_set_lock it->task_pos = &L->cg_list get_task_struct(L) => addition on 0 drop css_set_lock cgroup_task_free(L) css_set_skip_task_iters() // dying skip comes too late free_task(L) cgroup_procs_show() task_pid_vnr(L)•CVE-2026-98163