# CVE-2025-40083: net/sched: sch\_qfq: Fix null-deref in agg\_dequeue

- Priority: **Routine**
- Reason: Not severe (CVSS 6.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-10-29 · Modified: 2026-06-16
- Aliases: UBUNTU-CVE-2025-40083, DEBIAN-CVE-2025-40083
- Record: https://cvemate.com/vulnerability/CVE-2025-40083 · JSON: https://cvemate.com/vulnerability/CVE-2025-40083/json

## Description

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

net/sched: sch_qfq: Fix null-deref in agg_dequeue

To prevent a potential crash in agg_dequeue (net/sched/sch_qfq.c)
when cl->qdisc->ops->peek(cl->qdisc) returns NULL, we check the return
value before using it, similar to the existing approach in sch_hfsc.c.

To avoid code duplication, the following changes are made:

1. Changed qdisc_warn_nonwc(include/net/pkt_sched.h) into a static
inline function.

2. Moved qdisc_peek_len from net/sched/sch_hfsc.c to
include/net/pkt_sched.h so that sch_qfq can reuse it.

3. Applied qdisc_peek_len in agg_dequeue to avoid crashing.
```

## Signals

- CVSS: 6.8 medium (v4.0, OSV · Ubuntu) CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.206%, percentile 11.31%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 151)

- debian linux (Debian): \< 6.1.159-1 \| \< 6.12.57-1 \| \< 6.16.3-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-173.183 \| \< 6.8.0-106.106
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1103.110 \| \< 6.8.0-1050.53
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1103.110~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1050.53~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1103.110+fips1 \| \< 6.8.0-1050.53+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1109.118 \| \< 6.8.0-1051.57
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 32)

- <https://git.kernel.org/stable/c/71d84658a61322e5630c85c5388fc25e4a2d08b2>
- <https://git.kernel.org/stable/c/99fc137f178797204d36ac860dd8b31e35baa2df>
- <https://git.kernel.org/stable/c/1bed56f089f09b465420bf23bb32985c305cfc28>
- <https://git.kernel.org/stable/c/3c2a8994807623c7655ece205667ae2cf74940aa>
- <https://git.kernel.org/stable/c/6ffa9d66187188e3068b5a3895e6ae1ee34f9199>
- <https://git.kernel.org/stable/c/6ff8e74c8f8a68ec07ef837b95425dfe900d060f>
- <https://git.kernel.org/stable/c/dd831ac8221e691e9e918585b1003c7071df0379>
- <https://ubuntu.com/security/CVE-2025-40083>
- <https://www.cve.org/CVERecord?id=CVE-2025-40083>
- <https://git.kernel.org/linus/dd831ac8221e691e9e918585b1003c7071df0379>
- <https://ubuntu.com/security/notices/USN-8095-1>
- <https://ubuntu.com/security/notices/USN-8096-1>
- <https://ubuntu.com/security/notices/USN-8100-1>
- <https://ubuntu.com/security/notices/USN-8095-2>
- <https://ubuntu.com/security/notices/USN-8096-2>
- <https://ubuntu.com/security/notices/USN-8095-3>
- <https://ubuntu.com/security/notices/USN-8096-3>
- <https://ubuntu.com/security/notices/USN-8096-4>
- <https://ubuntu.com/security/notices/USN-8116-1>
- <https://ubuntu.com/security/notices/USN-8095-4>

---

Data as of 2026-12-05T04:12:47.140Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
