CVE-2025-21702
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability in the Linux kernel's pfifotailenqueue function has been discovered and resolved. The issue occurs when sch->limit is set to 0, allowing a packet to be incorrectly enqueued instead of being dropped, leading to a mismatch between parent and child qdisc queue lengths. This vulnerability was discovered on February 18, 2025, and affects the Linux kernel network scheduling subsystem (NVD).

Technical details

The vulnerability exists in the pfifotailenqueue function's packet handling logic. When sch->limit is set to 0 and the scheduler has no packets, the 'drop a packet' step fails to decrease the scheduler's qlen, allowing a new packet to be enqueued and increasing qlen by one while returning NETXMITCN status code. This creates a scenario where a parent qdisc (QdiscA) can have qlen == 0 while its child qdisc (QdiscB) has qlen == 1, violating the design principle that a parent's qlen should equal the sum of its children's qlen (Kernel Commit).

Impact

The vulnerability can be exploited for user-to-kernel privilege escalation when the affected code path is reachable. This allows unauthorized elevation of privileges, potentially compromising system security (NVD).

Mitigation and workarounds

The vulnerability has been patched by adding a check to immediately drop new packets when sch->limit is 0. The fix was implemented in the Linux kernel through a patch that modifies the pfifotailenqueue function to properly handle the case when sch->limit is 0 (Kernel Commit).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
David EstlickCISO
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
Adam FletcherChief Security Officer
“We know that if Wiz identifies something as critical, it actually is.”
Greg PoniatowskiHead of Threat and Vulnerability Management