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

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.29% (percentile 14, 2026-11-26)
- **Published:** 2025-10-29T13:37:01.868Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< 71d84658a61322e5630c85c5388fc25e4a2d08b2; \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< 99fc137f178797204d36ac860dd8b31e35baa2df; \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< 1bed56f089f09b465420bf23bb32985c305cfc28; \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< 3c2a8994807623c7655ece205667ae2cf74940aa; \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< 6ffa9d66187188e3068b5a3895e6ae1ee34f9199; \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< 6ff8e74c8f8a68ec07ef837b95425dfe900d060f; \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< dd831ac8221e691e9e918585b1003c7071df0379
- Anyone running Linux 3.8

## Description

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.

## Affected and fixed versions

- Linux: \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< 71d84658a61322e5630c85c5388fc25e4a2d08b2; \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< 99fc137f178797204d36ac860dd8b31e35baa2df; \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< 1bed56f089f09b465420bf23bb32985c305cfc28; \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< 3c2a8994807623c7655ece205667ae2cf74940aa; \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< 6ffa9d66187188e3068b5a3895e6ae1ee34f9199; \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< 6ff8e74c8f8a68ec07ef837b95425dfe900d060f; \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< dd831ac8221e691e9e918585b1003c7071df0379 (cvelist)
- Linux: 3.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2025-40083.md
Affected: Linux >= 462dbc9101acd38e92eda93c0726857517a24bbd, < 71d84658a61322e5630c85c5388fc25e4a2d08b2; >= 462dbc9101acd38e92eda93c0726857517a24bbd, < 99fc137f178797204d36ac860dd8b31e35baa2df; >= 462dbc9101acd38e92eda93c0726857517a24bbd, < 1bed56f089f09b465420bf23bb32985c305cfc28; >= 462dbc9101acd38e92eda93…
Fixed in: Linux 71d84658a61322e5630c85c5388fc25e4a2d08b2, Linux 99fc137f178797204d36ac860dd8b31e35baa2df, Linux 1bed56f089f09b465420bf23bb32985c305cfc28, Linux 3c2a8994807623c7655ece205667ae2cf74940aa, Linux 6ffa9d66187188e3068b5a3895e6ae1ee34f9199, Linux 6ff8e74c8f8a68ec07ef837b95425dfe900d060f

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-40083 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< 71d84658a61322e5630c85c5388fc25e4a2d08b2; \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< 99fc137f178797204d36ac860dd8b31e35baa2df; \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< 1bed56f089f09b465420bf23bb32985c305cfc28; \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< 3c2a8994807623c7655ece205667ae2cf74940aa; \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< 6ffa9d66187188e3068b5a3895e6ae1ee34f9199; \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< 6ff8e74c8f8a68ec07ef837b95425dfe900d060f; \>= 462dbc9101acd38e92eda93c0726857517a24bbd, \< dd831ac8221e691e9e918585b1003c7071df0379; Linux 3.8.

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

Yes. Fixed in Linux 71d84658a61322e5630c85c5388fc25e4a2d08b2, Linux 99fc137f178797204d36ac860dd8b31e35baa2df, Linux 1bed56f089f09b465420bf23bb32985c305cfc28, Linux 3c2a8994807623c7655ece205667ae2cf74940aa, Linux 6ffa9d66187188e3068b5a3895e6ae1ee34f9199, Linux 6ff8e74c8f8a68ec07ef837b95425dfe900d060f. No fix listed yet: follow the vendor advisory.

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

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

- other: <https://git.kernel.org/stable/c/71d84658a61322e5630c85c5388fc25e4a2d08b2>
- other: <https://git.kernel.org/stable/c/99fc137f178797204d36ac860dd8b31e35baa2df>
- other: <https://git.kernel.org/stable/c/1bed56f089f09b465420bf23bb32985c305cfc28>
- other: <https://git.kernel.org/stable/c/3c2a8994807623c7655ece205667ae2cf74940aa>
- other: <https://git.kernel.org/stable/c/6ffa9d66187188e3068b5a3895e6ae1ee34f9199>
- other: <https://git.kernel.org/stable/c/6ff8e74c8f8a68ec07ef837b95425dfe900d060f>
- other: <https://git.kernel.org/stable/c/dd831ac8221e691e9e918585b1003c7071df0379>

## 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-40083>

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