# CVE-2025-39766: net/sched: Make cake\_enqueue return NET\_XMIT\_CN when past buffer\_limit

> 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, NVD) `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.27% (percentile 12, 2026-11-26)
- **Published:** 2025-09-11T16:56:21.514Z
- **Modified:** 2026-10-19T21:10:00.160Z

## Who should check

- Anyone running Linux \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< 7689ab22de36f8db19095f6bdf11f28cfde92f5c; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< de04ddd2980b48caa8d7e24a7db2742917a8b280; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< 0dacfc5372e314d1219f03e64dde3ab495a5a25e; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< 710866fc0a64eafcb8bacd91bcb1329eb7e5035f; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< aa12ee1c1bd260943fd6ab556d8635811c332eeb; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< ff57186b2cc39766672c4c0332323933e5faaa88; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< 62d591dde4defb1333d202410609c4ddeae060b3; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< 15de71d06a400f7fdc15bf377a2552b0ec437cf5
- Anyone running Linux 4.19

## Description

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

net/sched: Make cake\_enqueue return NET\_XMIT\_CN when past buffer\_limit

The following setup can trigger a WARNING in htb\_activate due to
the condition: !cl-\>leaf.q-\>q.qlen

tc qdisc del dev lo root
tc qdisc add dev lo root handle 1: htb default 1
tc class add dev lo parent 1: classid 1:1 \\
       htb rate 64bit
tc qdisc add dev lo parent 1:1 handle f: \\
       cake memlimit 1b
ping -I lo -f -c1 -s64 -W0.001 127.0.0.1

This is because the low memlimit leads to a low buffer\_limit, which
causes packet dropping. However, cake\_enqueue still returns
NET\_XMIT\_SUCCESS, causing htb\_enqueue to call htb\_activate with an
empty child qdisc. We should return NET\_XMIT\_CN when packets are
dropped from the same tin and flow.

I do not believe return value of NET\_XMIT\_CN is necessary for packet
drops in the case of ack filtering, as that is meant to optimize
performance, not to signal congestion.

## Affected and fixed versions

- Linux: \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< 7689ab22de36f8db19095f6bdf11f28cfde92f5c; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< de04ddd2980b48caa8d7e24a7db2742917a8b280; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< 0dacfc5372e314d1219f03e64dde3ab495a5a25e; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< 710866fc0a64eafcb8bacd91bcb1329eb7e5035f; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< aa12ee1c1bd260943fd6ab556d8635811c332eeb; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< ff57186b2cc39766672c4c0332323933e5faaa88; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< 62d591dde4defb1333d202410609c4ddeae060b3; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< 15de71d06a400f7fdc15bf377a2552b0ec437cf5 (cvelist)
- Linux: 4.19 (cvelist)

## Mitigation

- Upgrade Linux to 15de71d06a400f7fdc15bf377a2552b0ec437cf5 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-39766. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-39766.md
Affected: Linux >= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, < 7689ab22de36f8db19095f6bdf11f28cfde92f5c; >= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, < de04ddd2980b48caa8d7e24a7db2742917a8b280; >= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, < 0dacfc5372e314d1219f03e64dde3ab495a5a25e; >= 046f6fd5daefac7f5abdafb…
Fixed in: Linux 7689ab22de36f8db19095f6bdf11f28cfde92f5c, Linux 0dacfc5372e314d1219f03e64dde3ab495a5a25e, Linux 710866fc0a64eafcb8bacd91bcb1329eb7e5035f, Linux 62d591dde4defb1333d202410609c4ddeae060b3, Linux 15de71d06a400f7fdc15bf377a2552b0ec437cf5

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

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

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

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

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

Linux \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< 7689ab22de36f8db19095f6bdf11f28cfde92f5c; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< de04ddd2980b48caa8d7e24a7db2742917a8b280; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< 0dacfc5372e314d1219f03e64dde3ab495a5a25e; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< 710866fc0a64eafcb8bacd91bcb1329eb7e5035f; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< aa12ee1c1bd260943fd6ab556d8635811c332eeb; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< ff57186b2cc39766672c4c0332323933e5faaa88; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< 62d591dde4defb1333d202410609c4ddeae060b3; \>= 046f6fd5daefac7f5abdafb436b30f63bc7c602b, \< 15de71d06a400f7fdc15bf377a2552b0ec437cf5; Linux 4.19.

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

Yes. Fixed in Linux 7689ab22de36f8db19095f6bdf11f28cfde92f5c, Linux 0dacfc5372e314d1219f03e64dde3ab495a5a25e, Linux 710866fc0a64eafcb8bacd91bcb1329eb7e5035f, Linux 62d591dde4defb1333d202410609c4ddeae060b3, Linux 15de71d06a400f7fdc15bf377a2552b0ec437cf5. Upgrade Linux to 15de71d06a400f7fdc15bf377a2552b0ec437cf5 or later.

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

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/7689ab22de36f8db19095f6bdf11f28cfde92f5c>
- patch: <https://git.kernel.org/stable/c/de04ddd2980b48caa8d7e24a7db2742917a8b280>
- patch: <https://git.kernel.org/stable/c/0dacfc5372e314d1219f03e64dde3ab495a5a25e>
- patch: <https://git.kernel.org/stable/c/710866fc0a64eafcb8bacd91bcb1329eb7e5035f>
- patch: <https://git.kernel.org/stable/c/aa12ee1c1bd260943fd6ab556d8635811c332eeb>
- patch: <https://git.kernel.org/stable/c/ff57186b2cc39766672c4c0332323933e5faaa88>
- patch: <https://git.kernel.org/stable/c/62d591dde4defb1333d202410609c4ddeae060b3>
- patch: <https://git.kernel.org/stable/c/15de71d06a400f7fdc15bf377a2552b0ec437cf5>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-032379.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-39766>

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