# CVE-2025-38684: net/sched: ets: use old 'nbands' while purging unused classes

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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)
- **CWE:** CWE-476
- **Published:** 2025-09-04T15:32:38.927Z
- **Modified:** 2026-11-05T22:17:24.667Z

## Who should check

- Anyone running Linux \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< bdfddcde86e8b9245d9c0c2efe2b6fe8dcf6bf41; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< be9692dafdfb36d9c43afd9d4e1d9d9ba8e7b51b; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< 97ec167cd2e8a81a2d87331a2ed92daf007542c8; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< 84a24fb446ee07b22b64aae6f0e3f4a38266310a; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< 5b3b346bc4c2aa2c428735438a11989d251f32f1; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< d69f4a258cd91b3bcef7089eb0401005aae2aed5; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< 970c1c731c4ede46d05f5b0355724d1e400cfbca; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< 87c6efc5ce9c126ae4a781bc04504b83780e3650; 3b290923ad2b23596208c1e29520badef4356a43; \>= 5.4.296, \< 5.5
- Anyone running Linux 5.6

## Description

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

net/sched: ets: use old 'nbands' while purging unused classes

Shuang reported sch\_ets test-case \[1\] crashing in ets\_class\_qlen\_notify()
after recent changes from Lion \[2\]. The problem is: in ets\_qdisc\_change()
we purge unused DWRR queues; the value of 'q-\>nbands' is the new one, and
the cleanup should be done with the old one. The problem is here since my
first attempts to fix ets\_qdisc\_change(), but it surfaced again after the
recent qdisc len accounting fixes. Fix it purging idle DWRR queues before
assigning a new value of 'q-\>nbands', so that all purge operations find a
consistent configuration:

 - old 'q-\>nbands' because it's needed by ets\_class\_find()
 - old 'q-\>nstrict' because it's needed by ets\_class\_is\_strict()

 BUG: kernel NULL pointer dereference, address: 0000000000000000
 \#PF: supervisor read access in kernel mode
 \#PF: error\_code(0x0000) - not-present page
 PGD 0 P4D 0
 Oops: Oops: 0000 \[\#1\] SMP NOPTI
 CPU: 62 UID: 0 PID: 39457 Comm: tc Kdump: loaded Not tainted 6.12.0-116.el10.x86\_64 \#1 PREEMPT(voluntary)
 Hardware name: Dell Inc. PowerEdge R640/06DKY5, BIOS 2.12.2 07/09/2021
 RIP: 0010:\_\_list\_del\_entry\_valid\_or\_report+0x4/0x80
 Code: ff 4c 39 c7 0f 84 39 19 8e ff b8 01 00 00 00 c3 cc cc cc cc 66 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 f3 0f 1e fa \<48\> 8b 17 48 8b 4f 08 48 85 d2 0f 84 56 19 8e ff 48 85 c9 0f 84 ab
 RSP: 0018:ffffba186009f400 EFLAGS: 00010202
 RAX: 00000000000000d6 RBX: 0000000000000000 RCX: 0000000000000004
 RDX: ffff9f0fa29b69c0 RSI: 0000000000000000 RDI: 0000000000000000
 RBP: ffffffffc12c2400 R08: 0000000000000008 R09: 0000000000000004
 R10: ffffffffffffffff R11: 0000000000000004 R12: 0000000000000000
 R13: ffff9f0f8cfe0000 R14: 0000000000100005 R15: 0000000000000000
 FS:  00007f2154f37480(0000) GS:ffff9f269c1c0000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 0000000000000000 CR3: 00000001530be001 CR4: 00000000007726f0
 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
 PKRU: 55555554
 Call Trace:
  \<TASK\>
  ets\_class\_qlen\_notify+0x65/0x90 \[sch\_ets\]
  qdisc\_tree\_reduce\_backlog+0x74/0x110
  ets\_qdisc\_change+0x630/0xa40 \[sch\_ets\]
  \_\_tc\_modify\_qdisc.constprop.0+0x216/0x7f0
  tc\_modify\_qdisc+0x7c/0x120
  rtnetlink\_rcv\_msg+0x145/0x3f0
  netlink\_rcv\_skb+0x53/0x100
  netlink\_unicast+0x245/0x390
  netlink\_sendmsg+0x21b/0x470
  \_\_\_\_sys\_sendmsg+0x39d/0x3d0
  \_\_\_sys\_sendmsg+0x9a/0xe0
  \_\_sys\_sendmsg+0x7a/0xd0
  do\_syscall\_64+0x7d/0x160
  entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
 RIP: 0033:0x7f2155114084
 Code: 89 02 b8 ff ff ff ff eb bb 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 00 f3 0f 1e fa 80 3d 25 f0 0c 00 00 74 13 b8 2e 00 00 00 0f 05 \<48\> 3d 00 f0 ff ff 77 54 c3 0f 1f 00 48 83 ec 28 89 54 24 1c 48 89
 RSP: 002b:00007fff1fd7a988 EFLAGS: 00000202 ORIG\_RAX: 000000000000002e
 RAX: ffffffffffffffda RBX: 0000560ec063e5e0 RCX: 00007f2155114084
 RDX: 0000000000000000 RSI: 00007fff1fd7a9f0 RDI: 0000000000000003
 RBP: 00007fff1fd7aa60 R08: 0000000000000010 R09: 000000000000003f
 R10: 0000560ee9b3a010 R11: 0000000000000202 R12: 00007fff1fd7aae0
 R13: 000000006891ccde R14: 0000560ec063e5e0 R15: 00007fff1fd7aad0
  \</TASK\>

 \[1\] https://lore.kernel.org/netdev/e08c7f4a6882f260011909a868311c6e9b54f3e4.1639153474.git.dcaratti@redhat.com/
 \[2\] https://lore.kernel.org/netdev/d912cbd7-193b-4269-9857-525bee8bbb6a@gmail.com/

## Affected and fixed versions

- Linux: \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< bdfddcde86e8b9245d9c0c2efe2b6fe8dcf6bf41; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< be9692dafdfb36d9c43afd9d4e1d9d9ba8e7b51b; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< 97ec167cd2e8a81a2d87331a2ed92daf007542c8; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< 84a24fb446ee07b22b64aae6f0e3f4a38266310a; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< 5b3b346bc4c2aa2c428735438a11989d251f32f1; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< d69f4a258cd91b3bcef7089eb0401005aae2aed5; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< 970c1c731c4ede46d05f5b0355724d1e400cfbca; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< 87c6efc5ce9c126ae4a781bc04504b83780e3650; 3b290923ad2b23596208c1e29520badef4356a43; \>= 5.4.296, \< 5.5 (cvelist)
- Linux: 5.6 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2025-38684.md
Affected: Linux >= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, < bdfddcde86e8b9245d9c0c2efe2b6fe8dcf6bf41; >= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, < be9692dafdfb36d9c43afd9d4e1d9d9ba8e7b51b; >= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, < 97ec167cd2e8a81a2d87331a2ed92daf007542c8; >= dcc68b4d8084e1ac9af0d40…
Fixed in: Linux 97ec167cd2e8a81a2d87331a2ed92daf007542c8, Linux 84a24fb446ee07b22b64aae6f0e3f4a38266310a, Linux 5b3b346bc4c2aa2c428735438a11989d251f32f1, Linux 970c1c731c4ede46d05f5b0355724d1e400cfbca, Linux 87c6efc5ce9c126ae4a781bc04504b83780e3650, Linux 5.5

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

There is no confirmed exploitation: CVE-2025-38684 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-38684?

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

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

Linux \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< bdfddcde86e8b9245d9c0c2efe2b6fe8dcf6bf41; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< be9692dafdfb36d9c43afd9d4e1d9d9ba8e7b51b; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< 97ec167cd2e8a81a2d87331a2ed92daf007542c8; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< 84a24fb446ee07b22b64aae6f0e3f4a38266310a; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< 5b3b346bc4c2aa2c428735438a11989d251f32f1; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< d69f4a258cd91b3bcef7089eb0401005aae2aed5; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< 970c1c731c4ede46d05f5b0355724d1e400cfbca; \>= dcc68b4d8084e1ac9af0d4022d6b1aff6a139a33, \< 87c6efc5ce9c126ae4a781bc04504b83780e3650; 3b290923ad2b23596208c1e29520badef4356a43; \>= 5.4.296, \< 5.5; Linux 5.6.

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

Yes. Fixed in Linux 97ec167cd2e8a81a2d87331a2ed92daf007542c8, Linux 84a24fb446ee07b22b64aae6f0e3f4a38266310a, Linux 5b3b346bc4c2aa2c428735438a11989d251f32f1, Linux 970c1c731c4ede46d05f5b0355724d1e400cfbca, Linux 87c6efc5ce9c126ae4a781bc04504b83780e3650, Linux 5.5. Upgrade Linux to 5.5 or later.

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

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/bdfddcde86e8b9245d9c0c2efe2b6fe8dcf6bf41>
- patch: <https://git.kernel.org/stable/c/be9692dafdfb36d9c43afd9d4e1d9d9ba8e7b51b>
- patch: <https://git.kernel.org/stable/c/97ec167cd2e8a81a2d87331a2ed92daf007542c8>
- patch: <https://git.kernel.org/stable/c/84a24fb446ee07b22b64aae6f0e3f4a38266310a>
- patch: <https://git.kernel.org/stable/c/5b3b346bc4c2aa2c428735438a11989d251f32f1>
- patch: <https://git.kernel.org/stable/c/d69f4a258cd91b3bcef7089eb0401005aae2aed5>
- patch: <https://git.kernel.org/stable/c/970c1c731c4ede46d05f5b0355724d1e400cfbca>
- patch: <https://git.kernel.org/stable/c/87c6efc5ce9c126ae4a781bc04504b83780e3650>
- 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-38684>

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