Linux Kernel HTB Scheduler NULL Pointer Dereference Vulnerability

Vulnerability

A vulnerability in the Linux kernel's Hierarchical Token Bucket (HTB) scheduling algorithm can lead to a NULL pointer dereference. This issue arises when the HTB scheduler's dequeue process interacts with a 'blackhole' qdisc, which drops packets. The resulting state causes the HTB scheduler to encounter an empty red-black tree, triggering a BUG_ON assertion failure.

Impact

Exploitation of this vulnerability causes a kernel panic due to a NULL pointer dereference, leading to a denial of service.

Reproduction

The vulnerability can be reproduced by deleting the default HTB qdisc on the loopback interface and then re-adding it. After adding a 'netem' qdisc, which introduces packet loss, a 'blackhole' qdisc can be added to drop packets. This sequence of actions causes the HTB scheduler to improperly handle the empty queue state, leading to the NULL pointer dereference.

Remediation

The vulnerability has been fixed in the Linux kernel by modifying the HTB scheduler to return NULL instead of triggering a BUG_ON assertion when encountering an empty red-black tree.

Added: Jul 28, 2025, 1:26 PM
Updated: Jul 28, 2025, 1:26 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
5.7
remediation
0.0
relevance
0.3
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.