# CVE-2023-53103: bonding: restore bond's IFF\_SLAVE flag if a non-eth dev enslave fails

> 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.28% (percentile 13, 2026-11-26)
- **Published:** 2025-05-02T15:55:45.218Z
- **Modified:** 2026-11-05T21:17:13.180Z

## Who should check

- Anyone running Linux \>= 7d5cd2ce5292b45e555de776cb9e72975a07460d, \< 93c8cbeb1b2b8ff670b3dfd01b3abd843995c80f; \>= 7d5cd2ce5292b45e555de776cb9e72975a07460d, \< ecb1b5135bd3f232d5335b3935e2c2ac11bfa02f; \>= 7d5cd2ce5292b45e555de776cb9e72975a07460d, \< 0276813b8ab08d9bf5ca4159f301d0829ecf13fc; \>= 7d5cd2ce5292b45e555de776cb9e72975a07460d, \< e667d469098671261d558be0cd93dca4d285ce1e
- Anyone running Linux 4.2

## Description

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

bonding: restore bond's IFF\_SLAVE flag if a non-eth dev enslave fails

syzbot reported a warning\[1\] where the bond device itself is a slave and
we try to enslave a non-ethernet device as the first slave which fails
but then in the error path when ether\_setup() restores the bond device
it also clears all flags. In my previous fix\[2\] I restored the
IFF\_MASTER flag, but I didn't consider the case that the bond device
itself might also be a slave with IFF\_SLAVE set, so we need to restore
that flag as well. Use the bond\_ether\_setup helper which does the right
thing and restores the bond's flags properly.

Steps to reproduce using a nlmon dev:
 $ ip l add nlmon0 type nlmon
 $ ip l add bond1 type bond
 $ ip l add bond2 type bond
 $ ip l set bond1 master bond2
 $ ip l set dev nlmon0 master bond1
 $ ip -d l sh dev bond1
 22: bond1: \<BROADCAST,MULTICAST,MASTER\> mtu 1500 qdisc noqueue master bond2 state DOWN mode DEFAULT group default qlen 1000
 (now bond1's IFF\_SLAVE flag is gone and we'll hit a warning\[3\] if we
  try to delete it)

\[1\] https://syzkaller.appspot.com/bug?id=391c7b1f6522182899efba27d891f1743e8eb3ef
\[2\] commit 7d5cd2ce5292 ("bonding: correctly handle bonding type change on enslave failure")
\[3\] example warning:
 \[   27.008664\] bond1: (slave nlmon0): The slave device specified does not support setting the MAC address
 \[   27.008692\] bond1: (slave nlmon0): Error -95 calling set\_mac\_address
 \[   32.464639\] bond1 (unregistering): Released all slaves
 \[   32.464685\] ------------\[ cut here \]------------
 \[   32.464686\] WARNING: CPU: 1 PID: 2004 at net/core/dev.c:10829 unregister\_netdevice\_many+0x72a/0x780
 \[   32.464694\] Modules linked in: br\_netfilter bridge bonding virtio\_net
 \[   32.464699\] CPU: 1 PID: 2004 Comm: ip Kdump: loaded Not tainted 5.18.0-rc3+ \#47
 \[   32.464703\] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.1-2.fc37 04/01/2014
 \[   32.464704\] RIP: 0010:unregister\_netdevice\_many+0x72a/0x780
 \[   32.464707\] Code: 99 fd ff ff ba 90 1a 00 00 48 c7 c6 f4 02 66 96 48 c7 c7 20 4d 35 96 c6 05 fa c7 2b 02 01 e8 be 6f 4a 00 0f 0b e9 73 fd ff ff \<0f\> 0b e9 5f fd ff ff 80 3d e3 c7 2b 02 00 0f 85 3b fd ff ff ba 59
 \[   32.464710\] RSP: 0018:ffffa006422d7820 EFLAGS: 00010206
 \[   32.464712\] RAX: ffff8f6e077140a0 RBX: ffffa006422d7888 RCX: 0000000000000000
 \[   32.464714\] RDX: ffff8f6e12edbe58 RSI: 0000000000000296 RDI: ffffffff96d4a520
 \[   32.464716\] RBP: ffff8f6e07714000 R08: ffffffff96d63600 R09: ffffa006422d7728
 \[   32.464717\] R10: 0000000000000ec0 R11: ffffffff9698c988 R12: ffff8f6e12edb140
 \[   32.464719\] R13: dead000000000122 R14: dead000000000100 R15: ffff8f6e12edb140
 \[   32.464723\] FS:  00007f297c2f1740(0000) GS:ffff8f6e5d900000(0000) knlGS:0000000000000000
 \[   32.464725\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 \[   32.464726\] CR2: 00007f297bf1c800 CR3: 00000000115e8000 CR4: 0000000000350ee0
 \[   32.464730\] Call Trace:
 \[   32.464763\]  \<TASK\>
 \[   32.464767\]  rtnl\_dellink+0x13e/0x380
 \[   32.464776\]  ? cred\_has\_capability.isra.0+0x68/0x100
 \[   32.464780\]  ? \_\_rtnl\_unlock+0x33/0x60
 \[   32.464783\]  ? bpf\_lsm\_capset+0x10/0x10
 \[   32.464786\]  ? security\_capable+0x36/0x50
 \[   32.464790\]  rtnetlink\_rcv\_msg+0x14e/0x3b0
 \[   32.464792\]  ? \_copy\_to\_iter+0xb1/0x790
 \[   32.464796\]  ? post\_alloc\_hook+0xa0/0x160
 \[   32.464799\]  ? rtnl\_calcit.isra.0+0x110/0x110
 \[   32.464802\]  netlink\_rcv\_skb+0x50/0xf0
 \[   32.464806\]  netlink\_unicast+0x216/0x340
 \[   32.464809\]  netlink\_sendmsg+0x23f/0x480
 \[   32.464812\]  sock\_sendmsg+0x5e/0x60
 \[   32.464815\]  \_\_\_\_sys\_sendmsg+0x22c/0x270
 \[   32.464818\]  ? import\_iovec+0x17/0x20
 \[   32.464821\]  ? sendmsg\_copy\_msghdr+0x59/0x90
 \[   32.464823\]  ? do\_set\_pte+0xa0/0xe0
 \[   32.464828\]  \_\_\_sys\_sendmsg+0x81/0xc0
 \[   32.464832\]  ? mod\_objcg\_state+0xc6/0x300
 \[   32.464835\]  ? refill\_obj\_stock+0xa9/0x160
 \[   32.464838\]  ? memcg\_slab\_free\_hook+0x1a5/0x1f0
 \[   32.464842\]  \_\_sys\_sendm
---truncated---

## Affected and fixed versions

- Linux: \>= 7d5cd2ce5292b45e555de776cb9e72975a07460d, \< 93c8cbeb1b2b8ff670b3dfd01b3abd843995c80f; \>= 7d5cd2ce5292b45e555de776cb9e72975a07460d, \< ecb1b5135bd3f232d5335b3935e2c2ac11bfa02f; \>= 7d5cd2ce5292b45e555de776cb9e72975a07460d, \< 0276813b8ab08d9bf5ca4159f301d0829ecf13fc; \>= 7d5cd2ce5292b45e555de776cb9e72975a07460d, \< e667d469098671261d558be0cd93dca4d285ce1e (cvelist)
- Linux: 4.2 (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-2023-53103. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53103.md
Affected: Linux >= 7d5cd2ce5292b45e555de776cb9e72975a07460d, < 93c8cbeb1b2b8ff670b3dfd01b3abd843995c80f; >= 7d5cd2ce5292b45e555de776cb9e72975a07460d, < ecb1b5135bd3f232d5335b3935e2c2ac11bfa02f; >= 7d5cd2ce5292b45e555de776cb9e72975a07460d, < 0276813b8ab08d9bf5ca4159f301d0829ecf13fc; >= 7d5cd2ce5292b45e555de77…
Fixed in: Linux 93c8cbeb1b2b8ff670b3dfd01b3abd843995c80f, Linux 0276813b8ab08d9bf5ca4159f301d0829ecf13fc

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-2023-53103 being exploited?

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

### How serious is CVE-2023-53103?

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

### Which versions are affected by CVE-2023-53103?

Linux \>= 7d5cd2ce5292b45e555de776cb9e72975a07460d, \< 93c8cbeb1b2b8ff670b3dfd01b3abd843995c80f; \>= 7d5cd2ce5292b45e555de776cb9e72975a07460d, \< ecb1b5135bd3f232d5335b3935e2c2ac11bfa02f; \>= 7d5cd2ce5292b45e555de776cb9e72975a07460d, \< 0276813b8ab08d9bf5ca4159f301d0829ecf13fc; \>= 7d5cd2ce5292b45e555de776cb9e72975a07460d, \< e667d469098671261d558be0cd93dca4d285ce1e; Linux 4.2.

### Is there a fix for CVE-2023-53103?

Yes. Fixed in Linux 93c8cbeb1b2b8ff670b3dfd01b3abd843995c80f, Linux 0276813b8ab08d9bf5ca4159f301d0829ecf13fc. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-53103?

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/93c8cbeb1b2b8ff670b3dfd01b3abd843995c80f>
- patch: <https://git.kernel.org/stable/c/ecb1b5135bd3f232d5335b3935e2c2ac11bfa02f>
- patch: <https://git.kernel.org/stable/c/0276813b8ab08d9bf5ca4159f301d0829ecf13fc>
- patch: <https://git.kernel.org/stable/c/e667d469098671261d558be0cd93dca4d285ce1e>

## 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-2023-53103>

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