# CVE-2025-21702: pfifo\_tail\_enqueue: Drop new packet when sch-\>limit == 0

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 18, 2026-11-26)
- **Published:** 2025-02-18T14:37:43.429Z
- **Modified:** 2026-11-10T13:17:32.973Z

## Who should check

- Anyone running Linux \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< 78285b53266d6d51fa4ff504a23df03852eba84e; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< 7a9723ec27aff5674f1fd4934608937f1d650980; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< a56a6e8589a9b98d8171611fbcc1e45a15fd2455; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< 020ecb76812a0526f4130ab5aeb6dc7c773e7ab9; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< 79a955ea4a2e5ddf4a36328959de0de496419888; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< e40cb34b7f247fe2e366fd192700d1b4f38196ca; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< b6a079c3b6f95378f26e2aeda520cb3176f7067b; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< 647cef20e649c576dff271e018d5d15d998b629d
- Anyone running Linux 2.6.34

## Description

In the Linux kernel, the following vulnerability has been resolved:

pfifo\_tail\_enqueue: Drop new packet when sch-\>limit == 0

Expected behaviour:
In case we reach scheduler's limit, pfifo\_tail\_enqueue() will drop a
packet in scheduler's queue and decrease scheduler's qlen by one.
Then, pfifo\_tail\_enqueue() enqueue new packet and increase
scheduler's qlen by one. Finally, pfifo\_tail\_enqueue() return
\`NET\_XMIT\_CN\` status code.

Weird behaviour:
In case we set \`sch-\>limit == 0\` and trigger pfifo\_tail\_enqueue() on a
scheduler that has no packet, the 'drop a packet' step will do nothing.
This means the scheduler's qlen still has value equal 0.
Then, we continue to enqueue new packet and increase scheduler's qlen by
one. In summary, we can leverage pfifo\_tail\_enqueue() to increase qlen by
one and return \`NET\_XMIT\_CN\` status code.

The problem is:
Let's say we have two qdiscs: Qdisc\_A and Qdisc\_B.
 - Qdisc\_A's type must have '-\>graft()' function to create parent/child relationship.
   Let's say Qdisc\_A's type is \`hfsc\`. Enqueue packet to this qdisc will trigger \`hfsc\_enqueue\`.
 - Qdisc\_B's type is pfifo\_head\_drop. Enqueue packet to this qdisc will trigger \`pfifo\_tail\_enqueue\`.
 - Qdisc\_B is configured to have \`sch-\>limit == 0\`.
 - Qdisc\_A is configured to route the enqueued's packet to Qdisc\_B.

Enqueue packet through Qdisc\_A will lead to:
 - hfsc\_enqueue(Qdisc\_A) -\> pfifo\_tail\_enqueue(Qdisc\_B)
 - Qdisc\_B-\>q.qlen += 1
 - pfifo\_tail\_enqueue() return \`NET\_XMIT\_CN\`
 - hfsc\_enqueue() check for \`NET\_XMIT\_SUCCESS\` and see \`NET\_XMIT\_CN\` =\> hfsc\_enqueue() don't increase qlen of Qdisc\_A.

The whole process lead to a situation where Qdisc\_A-\>q.qlen == 0 and Qdisc\_B-\>q.qlen == 1.
Replace 'hfsc' with other type (for example: 'drr') still lead to the same problem.
This violate the design where parent's qlen should equal to the sum of its childrens'qlen.

Bug impact: This issue can be used for user-\>kernel privilege escalation when it is reachable.

## Affected and fixed versions

- Linux: \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< 78285b53266d6d51fa4ff504a23df03852eba84e; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< 7a9723ec27aff5674f1fd4934608937f1d650980; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< a56a6e8589a9b98d8171611fbcc1e45a15fd2455; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< 020ecb76812a0526f4130ab5aeb6dc7c773e7ab9; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< 79a955ea4a2e5ddf4a36328959de0de496419888; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< e40cb34b7f247fe2e366fd192700d1b4f38196ca; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< b6a079c3b6f95378f26e2aeda520cb3176f7067b; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< 647cef20e649c576dff271e018d5d15d998b629d (cvelist)
- Linux: 2.6.34 (cvelist)

## Mitigation

- Upgrade Linux to 647cef20e649c576dff271e018d5d15d998b629d or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-21702. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21702.md
Affected: Linux >= 57dbb2d83d100ea601c54fe129bfde0678db5dee, < 78285b53266d6d51fa4ff504a23df03852eba84e; >= 57dbb2d83d100ea601c54fe129bfde0678db5dee, < 7a9723ec27aff5674f1fd4934608937f1d650980; >= 57dbb2d83d100ea601c54fe129bfde0678db5dee, < a56a6e8589a9b98d8171611fbcc1e45a15fd2455; >= 57dbb2d83d100ea601c54fe…
Fixed in: Linux 78285b53266d6d51fa4ff504a23df03852eba84e, Linux 7a9723ec27aff5674f1fd4934608937f1d650980, Linux 020ecb76812a0526f4130ab5aeb6dc7c773e7ab9, Linux 79a955ea4a2e5ddf4a36328959de0de496419888, Linux 647cef20e649c576dff271e018d5d15d998b629d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-21702 being exploited?

There is no confirmed exploitation: CVE-2025-21702 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-21702?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-21702?

Linux \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< 78285b53266d6d51fa4ff504a23df03852eba84e; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< 7a9723ec27aff5674f1fd4934608937f1d650980; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< a56a6e8589a9b98d8171611fbcc1e45a15fd2455; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< 020ecb76812a0526f4130ab5aeb6dc7c773e7ab9; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< 79a955ea4a2e5ddf4a36328959de0de496419888; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< e40cb34b7f247fe2e366fd192700d1b4f38196ca; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< b6a079c3b6f95378f26e2aeda520cb3176f7067b; \>= 57dbb2d83d100ea601c54fe129bfde0678db5dee, \< 647cef20e649c576dff271e018d5d15d998b629d; Linux 2.6.34.

### Is there a fix for CVE-2025-21702?

Yes. Fixed in Linux 78285b53266d6d51fa4ff504a23df03852eba84e, Linux 7a9723ec27aff5674f1fd4934608937f1d650980, Linux 020ecb76812a0526f4130ab5aeb6dc7c773e7ab9, Linux 79a955ea4a2e5ddf4a36328959de0de496419888, Linux 647cef20e649c576dff271e018d5d15d998b629d. Upgrade Linux to 647cef20e649c576dff271e018d5d15d998b629d or later.

### How do I check if I'm affected by CVE-2025-21702?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/78285b53266d6d51fa4ff504a23df03852eba84e>
- patch: <https://git.kernel.org/stable/c/7a9723ec27aff5674f1fd4934608937f1d650980>
- patch: <https://git.kernel.org/stable/c/a56a6e8589a9b98d8171611fbcc1e45a15fd2455>
- patch: <https://git.kernel.org/stable/c/020ecb76812a0526f4130ab5aeb6dc7c773e7ab9>
- patch: <https://git.kernel.org/stable/c/79a955ea4a2e5ddf4a36328959de0de496419888>
- patch: <https://git.kernel.org/stable/c/e40cb34b7f247fe2e366fd192700d1b4f38196ca>
- patch: <https://git.kernel.org/stable/c/b6a079c3b6f95378f26e2aeda520cb3176f7067b>
- patch: <https://git.kernel.org/stable/c/647cef20e649c576dff271e018d5d15d998b629d>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/05/msg00030.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-784472.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-21702>

HTML: <https://flawdb.com/CVE-2025-21702> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-21702>
