# CVE-2026-23171: bonding: fix use-after-free due to enslave fail after slave array update

> 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, CNA) `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.21% (percentile 6, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2026-02-14T16:01:33.489Z
- **Modified:** 2026-10-30T13:18:34.050Z

## Who should check

- Anyone running Linux \>= 9e2ee5c7e7c35d195e2aa0692a7241d47a433d1e, \< c6ae2b978001065ca0e1d33d5cbf949efeff879e; \>= 9e2ee5c7e7c35d195e2aa0692a7241d47a433d1e, \< 172dcb67dd35b162357df229d7806acc724cd469; \>= 9e2ee5c7e7c35d195e2aa0692a7241d47a433d1e, \< 2889d92c5f728351c9930c7996d22fe6e906e785; \>= 9e2ee5c7e7c35d195e2aa0692a7241d47a433d1e, \< bd25b092a06a3e05f7e8bd6da6fa7318777d8c3d; \>= 9e2ee5c7e7c35d195e2aa0692a7241d47a433d1e, \< e9acda52fd2ee0cdca332f996da7a95c5fd25294
- Anyone running Linux 5.15

## Description

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

bonding: fix use-after-free due to enslave fail after slave array update

Fix a use-after-free which happens due to enslave failure after the new
slave has been added to the array. Since the new slave can be used for Tx
immediately, we can use it after it has been freed by the enslave error
cleanup path which frees the allocated slave memory. Slave update array is
supposed to be called last when further enslave failures are not expected.
Move it after xdp setup to avoid any problems.

It is very easy to reproduce the problem with a simple xdp\_pass prog:
 ip l add bond1 type bond mode balance-xor
 ip l set bond1 up
 ip l set dev bond1 xdp object xdp\_pass.o sec xdp\_pass
 ip l add dumdum type dummy

Then run in parallel:
 while :; do ip l set dumdum master bond1 1\>/dev/null 2\>&1; done;
 mausezahn bond1 -a own -b rand -A rand -B 1.1.1.1 -c 0 -t tcp "dp=1-1023, flags=syn"

The crash happens almost immediately:
 \[  605.602850\] Oops: general protection fault, probably for non-canonical address 0xe0e6fc2460000137: 0000 \[\#1\] SMP KASAN NOPTI
 \[  605.602916\] KASAN: maybe wild-memory-access in range \[0x07380123000009b8-0x07380123000009bf\]
 \[  605.602946\] CPU: 0 UID: 0 PID: 2445 Comm: mausezahn Kdump: loaded Tainted: G    B               6.19.0-rc6+ \#21 PREEMPT(voluntary)
 \[  605.602979\] Tainted: \[B\]=BAD\_PAGE
 \[  605.602998\] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
 \[  605.603032\] RIP: 0010:netdev\_core\_pick\_tx+0xcd/0x210
 \[  605.603063\] Code: 48 89 fa 48 c1 ea 03 80 3c 02 00 0f 85 3e 01 00 00 48 b8 00 00 00 00 00 fc ff df 4c 8b 6b 08 49 8d 7d 30 48 89 fa 48 c1 ea 03 \<80\> 3c 02 00 0f 85 25 01 00 00 49 8b 45 30 4c 89 e2 48 89 ee 48 89
 \[  605.603111\] RSP: 0018:ffff88817b9af348 EFLAGS: 00010213
 \[  605.603145\] RAX: dffffc0000000000 RBX: ffff88817d28b420 RCX: 0000000000000000
 \[  605.603172\] RDX: 00e7002460000137 RSI: 0000000000000008 RDI: 07380123000009be
 \[  605.603199\] RBP: ffff88817b541a00 R08: 0000000000000001 R09: fffffbfff3ed8c0c
 \[  605.603226\] R10: ffffffff9f6c6067 R11: 0000000000000001 R12: 0000000000000000
 \[  605.603253\] R13: 073801230000098e R14: ffff88817d28b448 R15: ffff88817b541a84
 \[  605.603286\] FS:  00007f6570ef67c0(0000) GS:ffff888221dfa000(0000) knlGS:0000000000000000
 \[  605.603319\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 \[  605.603343\] CR2: 00007f65712fae40 CR3: 000000011371b000 CR4: 0000000000350ef0
 \[  605.603373\] Call Trace:
 \[  605.603392\]  \<TASK\>
 \[  605.603410\]  \_\_dev\_queue\_xmit+0x448/0x32a0
 \[  605.603434\]  ? \_\_pfx\_vprintk\_emit+0x10/0x10
 \[  605.603461\]  ? \_\_pfx\_vprintk\_emit+0x10/0x10
 \[  605.603484\]  ? \_\_pfx\_\_\_dev\_queue\_xmit+0x10/0x10
 \[  605.603507\]  ? bond\_start\_xmit+0xbfb/0xc20 \[bonding\]
 \[  605.603546\]  ? \_printk+0xcb/0x100
 \[  605.603566\]  ? \_\_pfx\_\_printk+0x10/0x10
 \[  605.603589\]  ? bond\_start\_xmit+0xbfb/0xc20 \[bonding\]
 \[  605.603627\]  ? add\_taint+0x5e/0x70
 \[  605.603648\]  ? add\_taint+0x2a/0x70
 \[  605.603670\]  ? end\_report.cold+0x51/0x75
 \[  605.603693\]  ? bond\_start\_xmit+0xbfb/0xc20 \[bonding\]
 \[  605.603731\]  bond\_start\_xmit+0x623/0xc20 \[bonding\]

## Affected and fixed versions

- Linux: \>= 9e2ee5c7e7c35d195e2aa0692a7241d47a433d1e, \< c6ae2b978001065ca0e1d33d5cbf949efeff879e; \>= 9e2ee5c7e7c35d195e2aa0692a7241d47a433d1e, \< 172dcb67dd35b162357df229d7806acc724cd469; \>= 9e2ee5c7e7c35d195e2aa0692a7241d47a433d1e, \< 2889d92c5f728351c9930c7996d22fe6e906e785; \>= 9e2ee5c7e7c35d195e2aa0692a7241d47a433d1e, \< bd25b092a06a3e05f7e8bd6da6fa7318777d8c3d; \>= 9e2ee5c7e7c35d195e2aa0692a7241d47a433d1e, \< e9acda52fd2ee0cdca332f996da7a95c5fd25294 (cvelist)
- Linux: 5.15 (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-2026-23171. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-23171.md
Affected: Linux >= 9e2ee5c7e7c35d195e2aa0692a7241d47a433d1e, < c6ae2b978001065ca0e1d33d5cbf949efeff879e; >= 9e2ee5c7e7c35d195e2aa0692a7241d47a433d1e, < 172dcb67dd35b162357df229d7806acc724cd469; >= 9e2ee5c7e7c35d195e2aa0692a7241d47a433d1e, < 2889d92c5f728351c9930c7996d22fe6e906e785; >= 9e2ee5c7e7c35d195e2aa06…
Fixed in: Linux 172dcb67dd35b162357df229d7806acc724cd469, Linux 2889d92c5f728351c9930c7996d22fe6e906e785

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-2026-23171 being exploited?

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

### How serious is CVE-2026-23171?

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

### Which versions are affected by CVE-2026-23171?

Linux \>= 9e2ee5c7e7c35d195e2aa0692a7241d47a433d1e, \< c6ae2b978001065ca0e1d33d5cbf949efeff879e; \>= 9e2ee5c7e7c35d195e2aa0692a7241d47a433d1e, \< 172dcb67dd35b162357df229d7806acc724cd469; \>= 9e2ee5c7e7c35d195e2aa0692a7241d47a433d1e, \< 2889d92c5f728351c9930c7996d22fe6e906e785; \>= 9e2ee5c7e7c35d195e2aa0692a7241d47a433d1e, \< bd25b092a06a3e05f7e8bd6da6fa7318777d8c3d; \>= 9e2ee5c7e7c35d195e2aa0692a7241d47a433d1e, \< e9acda52fd2ee0cdca332f996da7a95c5fd25294; Linux 5.15.

### Is there a fix for CVE-2026-23171?

Yes. Fixed in Linux 172dcb67dd35b162357df229d7806acc724cd469, Linux 2889d92c5f728351c9930c7996d22fe6e906e785. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-23171?

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/bd25b092a06a3e05f7e8bd6da6fa7318777d8c3d>
- patch: <https://git.kernel.org/stable/c/e9acda52fd2ee0cdca332f996da7a95c5fd25294>
- other: <https://git.kernel.org/stable/c/c6ae2b978001065ca0e1d33d5cbf949efeff879e>
- other: <https://git.kernel.org/stable/c/172dcb67dd35b162357df229d7806acc724cd469>
- other: <https://git.kernel.org/stable/c/2889d92c5f728351c9930c7996d22fe6e906e785>

## 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-2026-23171>

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