CVE-2025-37797

Aliases:UBUNTU-CVE-2025-37797DEBIAN-CVE-2025-37797
Advisory lineage Upstream: 0 Downstream: 134
Modified
Published: 02 May 2025, 14:16
Last modified:05 Aug 2026, 11:57

Vulnerability Summary

Overall Risk (default)
medium
31/100
CVSS Score
7.8 HIGH
v3.1 (nvd)
EPSS Score
0.21% LOW
0% probability +0.18%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

02 May 2025, 14:16
Published
Vulnerability first disclosed
05 Aug 2026, 11:57
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v3.1HIGHScore: 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS Trends

Current EPSS score: 0.21% Percentile: 12%

Techniques & Countermeasures

  • CWE-416Use After Free

    The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.

Affected Systems

  • debianlinux

    < 5.10.237-1 | < 6.1.137-1 | < 6.12.27-1 | < 6.12.27-1

  • debianlinux-6.1

    < 6.1.137-1~deb11u1

  • ubuntulinux

    < 4.15.0-240.252 | < 5.4.0-220.240 | < 5.15.0-144.157 | < 6.8.0-71.71

  • ubuntulinux-allwinner-5.19

    all

  • ubuntulinux-aws

    < 4.15.0-1183.196 | < 5.4.0-1149.159 | < 5.15.0-1088.95 | < 6.8.0-1033.35

  • ubuntulinux-aws-5.0

    all

  • ubuntulinux-aws-5.11

    all

  • ubuntulinux-aws-5.13

    all

  • ubuntulinux-aws-5.15

    < 5.15.0-1088.95~20.04.1

  • ubuntulinux-aws-5.19

    all

  • ubuntulinux-aws-5.3

    all

  • ubuntulinux-aws-5.4

    < 5.4.0-1149.159~18.04.1

  • ubuntulinux-aws-5.8

    all

  • ubuntulinux-aws-6.2

    all

  • ubuntulinux-aws-6.5

    all

  • ubuntulinux-aws-6.8

    < 6.8.0-1033.35~22.04.1

  • ubuntulinux-aws-fips

    < 4.15.0-2121.127 | all | < 5.4.0-1149.159+fips1 | < 5.15.0-1088.95+fips1

  • ubuntulinux-aws-hwe

    < 4.15.0-1183.196~16.04.1

  • ubuntulinux-azure

    < 4.15.0-1191.206~14.04.1 | < 4.15.0-1191.206~16.04.1 | all | < 5.4.0-1154.161 | < 5.15.0-1094.103 | < 6.8.0-1034.39

  • ubuntulinux-azure-4.15

    < 4.15.0-1191.206

  • ubuntulinux-azure-5.11

    all

  • ubuntulinux-azure-5.13

    all

  • ubuntulinux-azure-5.15

    < 5.15.0-1094.103~20.04.1

  • ubuntulinux-azure-5.19

    all

  • ubuntulinux-azure-5.3

    all

  • ubuntulinux-azure-5.4

    < 5.4.0-1154.161~18.04.1

  • ubuntulinux-azure-5.8

    all

  • ubuntulinux-azure-6.11

    all

  • ubuntulinux-azure-6.2

    all

  • ubuntulinux-azure-6.5

    all

  • ubuntulinux-azure-6.8

    < 6.8.0-1034.39~22.04.1

  • ubuntulinux-azure-edge

    all

  • ubuntulinux-azure-fde

    all | all | all

  • ubuntulinux-azure-fde-5.19

    all

  • ubuntulinux-azure-fde-6.2

    all

  • ubuntulinux-azure-fips

    < 4.15.0-2100.106 | all | < 5.4.0-1155.162+fips1 | < 5.15.0-1094.103+fips1

  • ubuntulinux-azure-nvidia

    < 6.8.0-1022.23

  • ubuntulinux-bluefield

    all | < 5.4.0-1108.115 | < 5.15.0-1072.74

  • ubuntulinux-fips

    < 4.15.0-1138.149 | all | < 5.4.0-1123.133 | < 5.15.0-144.157+fips1 | < 6.8.0-78.78+fips1

  • ubuntulinux-gcp

    < 4.15.0-1176.193~16.04.1 | all | < 5.4.0-1152.161 | < 5.15.0-1087.96 | < 6.8.0-1034.36

  • ubuntulinux-gcp-4.15

    < 4.15.0-1176.193

  • ubuntulinux-gcp-5.11

    all

  • ubuntulinux-gcp-5.13

    all

  • ubuntulinux-gcp-5.15

    < 5.15.0-1087.96~20.04.2

  • ubuntulinux-gcp-5.19

    all

  • ubuntulinux-gcp-5.3

    all

  • ubuntulinux-gcp-5.4

    < 5.4.0-1152.161~18.04.1

  • ubuntulinux-gcp-5.8

    all

  • ubuntulinux-gcp-6.11

    all

  • ubuntulinux-gcp-6.14

    < 6.14.0-1011.11~24.04.1

Showing first 50 affected entries in server-rendered view.

References (46)