CVE-2025-21692

7.8 HIGH

📋 TL;DR

This CVE describes an out-of-bounds array indexing vulnerability in the Linux kernel's Enhanced Transmission Selection (ETS) queuing discipline. When passed a class ID of 0, the ets_class_from_arg() function can access memory outside the bounds of the ets_class array, potentially leading to local privilege escalation. This affects Linux systems using the ETS qdisc for traffic control.

💻 Affected Systems

Products:
  • Linux Kernel
Versions: Kernel versions with ETS qdisc support up to the patched versions
Operating Systems: All Linux distributions using affected kernel versions
Default Config Vulnerable: ✅ No
Notes: Only vulnerable if ETS qdisc is configured and used. Most systems don't use ETS by default.

📦 What is this software?

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

Linux Kernel by Linux

The Linux Kernel is the core component of the Linux operating system, serving as the critical interface between computer hardware and software processes. As the heart of millions of servers, cloud infrastructure, embedded systems, Android devices, and IoT deployments worldwide, the Linux Kernel mana...

Learn more about Linux Kernel →

⚠️ Risk & Real-World Impact

🔴

Worst Case

Local privilege escalation allowing an unprivileged user to gain root access on the system, potentially leading to full system compromise.

🟠

Likely Case

Kernel panic or system crash causing denial of service, with potential for limited privilege escalation depending on memory layout.

🟢

If Mitigated

System remains stable with no impact if the vulnerable code path is not triggered or if proper kernel hardening is in place.

🌐 Internet-Facing: LOW - This is a local vulnerability requiring access to the system.
🏢 Internal Only: MEDIUM - Internal users with shell access could potentially exploit this to escalate privileges.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires local access and knowledge of kernel memory layout. The provided stack trace shows a proof-of-concept triggering the OOB access.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Patched in kernel commits: 03c56665dab1f4ac844bc156652d50d639093fa5, 1332c6ed446be787f901ed1064ec6a3c694f028a, 997f6ec4208b23c87daf9f044689685f091826f7, bcf0d815e728a3a304b50455b32a3170c16e1eaa, d62b04fca4340a0d468d7853bd66e511935a18cb

Vendor Advisory: https://git.kernel.org/stable/c/03c56665dab1f4ac844bc156652d50d639093fa5

Restart Required: Yes

Instructions:

1. Update to a patched kernel version from your distribution. 2. Reboot the system to load the new kernel. 3. Verify the fix is applied by checking kernel version.

🔧 Temporary Workarounds

Disable ETS qdisc

all

Remove or disable ETS queuing discipline configurations if not needed

tc qdisc del dev <interface> root ets
Remove any ETS configurations from /etc/network/interfaces or network manager

🧯 If You Can't Patch

  • Restrict user access to systems where ETS is configured
  • Implement strict access controls and monitoring for systems using ETS qdisc

🔍 How to Verify

Check if Vulnerable:

Check if ETS qdisc is configured: tc qdisc show | grep ets

Check Version:

uname -r

Verify Fix Applied:

Check kernel version against patched versions from your distribution's security advisory

📡 Detection & Monitoring

Log Indicators:

  • Kernel logs showing 'UBSAN: array-index-out-of-bounds in net/sched/sch_ets.c'
  • System crashes or kernel panics related to ETS operations

Network Indicators:

  • Unusual traffic control configuration changes

SIEM Query:

source="kernel" AND "sch_ets.c" AND "array-index-out-of-bounds"

🔗 References

📤 Share & Export