# CVE-2022-48842: ice: Fix race condition during interface enslave

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

- **Severity:** MEDIUM 4.7
- **CVSS:** 4.7 (v3.1, NVD) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: High; 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.22% (percentile 7, 2026-11-26)
- **CWE:** CWE-362, CWE-667
- **Published:** 2024-07-16T12:25:12.499Z
- **Modified:** 2026-06-17T05:16:21.583Z

## Who should check

- Anyone running Linux \>= 41a8c548d47bcdbbd5e0fa40fbb7c95cc54bcb34, \< a9bbacc53d1f5ed8febbfdf31401d20e005f49ef; \>= 6d26421f742345acb6158780dd1e61f945615f06, \< e1014fc5572375658fa421531cedb6e084f477dc; \>= 5dbbbd01cbba831233c6ea9a3e6bfa133606d3c0, \< 5cb1ebdbc4342b1c2ce89516e19808d64417bdbc
- Anyone running Linux \>= 5.15.24, \< 5.15.30; \>= 5.16.10, \< 5.16.16

## Description

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

ice: Fix race condition during interface enslave

Commit 5dbbbd01cbba83 ("ice: Avoid RTNL lock when re-creating
auxiliary device") changes a process of re-creation of aux device
so ice\_plug\_aux\_dev() is called from ice\_service\_task() context.
This unfortunately opens a race window that can result in dead-lock
when interface has left LAG and immediately enters LAG again.

Reproducer:
\`\`\`
\#!/bin/sh

ip link add lag0 type bond mode 1 miimon 100
ip link set lag0

for n in {1..10}; do
        echo Cycle: $n
        ip link set ens7f0 master lag0
        sleep 1
        ip link set ens7f0 nomaster
done
\`\`\`

This results in:
\[20976.208697\] Workqueue: ice ice\_service\_task \[ice\]
\[20976.213422\] Call Trace:
\[20976.215871\]  \_\_schedule+0x2d1/0x830
\[20976.219364\]  schedule+0x35/0xa0
\[20976.222510\]  schedule\_preempt\_disabled+0xa/0x10
\[20976.227043\]  \_\_mutex\_lock.isra.7+0x310/0x420
\[20976.235071\]  enum\_all\_gids\_of\_dev\_cb+0x1c/0x100 \[ib\_core\]
\[20976.251215\]  ib\_enum\_roce\_netdev+0xa4/0xe0 \[ib\_core\]
\[20976.256192\]  ib\_cache\_setup\_one+0x33/0xa0 \[ib\_core\]
\[20976.261079\]  ib\_register\_device+0x40d/0x580 \[ib\_core\]
\[20976.266139\]  irdma\_ib\_register\_device+0x129/0x250 \[irdma\]
\[20976.281409\]  irdma\_probe+0x2c1/0x360 \[irdma\]
\[20976.285691\]  auxiliary\_bus\_probe+0x45/0x70
\[20976.289790\]  really\_probe+0x1f2/0x480
\[20976.298509\]  driver\_probe\_device+0x49/0xc0
\[20976.302609\]  bus\_for\_each\_drv+0x79/0xc0
\[20976.306448\]  \_\_device\_attach+0xdc/0x160
\[20976.310286\]  bus\_probe\_device+0x9d/0xb0
\[20976.314128\]  device\_add+0x43c/0x890
\[20976.321287\]  \_\_auxiliary\_device\_add+0x43/0x60
\[20976.325644\]  ice\_plug\_aux\_dev+0xb2/0x100 \[ice\]
\[20976.330109\]  ice\_service\_task+0xd0c/0xed0 \[ice\]
\[20976.342591\]  process\_one\_work+0x1a7/0x360
\[20976.350536\]  worker\_thread+0x30/0x390
\[20976.358128\]  kthread+0x10a/0x120
\[20976.365547\]  ret\_from\_fork+0x1f/0x40
...
\[20976.438030\] task:ip              state:D stack:    0 pid:213658 ppid:213627 flags:0x00004084
\[20976.446469\] Call Trace:
\[20976.448921\]  \_\_schedule+0x2d1/0x830
\[20976.452414\]  schedule+0x35/0xa0
\[20976.455559\]  schedule\_preempt\_disabled+0xa/0x10
\[20976.460090\]  \_\_mutex\_lock.isra.7+0x310/0x420
\[20976.464364\]  device\_del+0x36/0x3c0
\[20976.467772\]  ice\_unplug\_aux\_dev+0x1a/0x40 \[ice\]
\[20976.472313\]  ice\_lag\_event\_handler+0x2a2/0x520 \[ice\]
\[20976.477288\]  notifier\_call\_chain+0x47/0x70
\[20976.481386\]  \_\_netdev\_upper\_dev\_link+0x18b/0x280
\[20976.489845\]  bond\_enslave+0xe05/0x1790 \[bonding\]
\[20976.494475\]  do\_setlink+0x336/0xf50
\[20976.502517\]  \_\_rtnl\_newlink+0x529/0x8b0
\[20976.543441\]  rtnl\_newlink+0x43/0x60
\[20976.546934\]  rtnetlink\_rcv\_msg+0x2b1/0x360
\[20976.559238\]  netlink\_rcv\_skb+0x4c/0x120
\[20976.563079\]  netlink\_unicast+0x196/0x230
\[20976.567005\]  netlink\_sendmsg+0x204/0x3d0
\[20976.570930\]  sock\_sendmsg+0x4c/0x50
\[20976.574423\]  \_\_\_\_sys\_sendmsg+0x1eb/0x250
\[20976.586807\]  \_\_\_sys\_sendmsg+0x7c/0xc0
\[20976.606353\]  \_\_sys\_sendmsg+0x57/0xa0
\[20976.609930\]  do\_syscall\_64+0x5b/0x1a0
\[20976.613598\]  entry\_SYSCALL\_64\_after\_hwframe+0x65/0xca

1. Command 'ip link ... set nomaster' causes that ice\_plug\_aux\_dev()
   is called from ice\_service\_task() context, aux device is created
   and associated device-\>lock is taken.
2. Command 'ip link ... set master...' calls ice's notifier under
   RTNL lock and that notifier calls ice\_unplug\_aux\_dev(). That
   function tries to take aux device-\>lock but this is already taken
   by ice\_plug\_aux\_dev() in step 1
3. Later ice\_plug\_aux\_dev() tries to take RTNL lock but this is already
   taken in step 2
4. Dead-lock

The patch fixes this issue by following changes:
- Bit ICE\_FLAG\_PLUG\_AUX\_DEV is kept to be set during ice\_plug\_aux\_dev()
  call in ice\_service\_task()
- The bit is checked in ice\_clear\_rdma\_cap() and only if it is not set
  then ice\_unplug\_aux\_dev() is called. If it is set (in other words
  plugging of aux device was requested and ice\_plug\_aux\_dev() is
  potentially running) then the function only clears the
---truncated---

## Affected and fixed versions

- Linux: \>= 41a8c548d47bcdbbd5e0fa40fbb7c95cc54bcb34, \< a9bbacc53d1f5ed8febbfdf31401d20e005f49ef; \>= 6d26421f742345acb6158780dd1e61f945615f06, \< e1014fc5572375658fa421531cedb6e084f477dc; \>= 5dbbbd01cbba831233c6ea9a3e6bfa133606d3c0, \< 5cb1ebdbc4342b1c2ce89516e19808d64417bdbc (cvelist)
- Linux: \>= 5.15.24, \< 5.15.30; \>= 5.16.10, \< 5.16.16 (cvelist)

## Mitigation

- Upgrade Linux to 5cb1ebdbc4342b1c2ce89516e19808d64417bdbc or later.
- Upgrade Linux to 5.16.16 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-48842. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48842.md
Affected: Linux >= 41a8c548d47bcdbbd5e0fa40fbb7c95cc54bcb34, < a9bbacc53d1f5ed8febbfdf31401d20e005f49ef; >= 6d26421f742345acb6158780dd1e61f945615f06, < e1014fc5572375658fa421531cedb6e084f477dc; >= 5dbbbd01cbba831233c6ea9a3e6bfa133606d3c0, < 5cb1ebdbc4342b1c2ce89516e19808d64417bdbc; Linux >= 5.15.24, < 5.15.3…
Fixed in: Linux 5cb1ebdbc4342b1c2ce89516e19808d64417bdbc, Linux 5.15.30, Linux 5.16.16

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-2022-48842 being exploited?

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

### How serious is CVE-2022-48842?

Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.

### Which versions are affected by CVE-2022-48842?

Linux \>= 41a8c548d47bcdbbd5e0fa40fbb7c95cc54bcb34, \< a9bbacc53d1f5ed8febbfdf31401d20e005f49ef; \>= 6d26421f742345acb6158780dd1e61f945615f06, \< e1014fc5572375658fa421531cedb6e084f477dc; \>= 5dbbbd01cbba831233c6ea9a3e6bfa133606d3c0, \< 5cb1ebdbc4342b1c2ce89516e19808d64417bdbc; Linux \>= 5.15.24, \< 5.15.30; \>= 5.16.10, \< 5.16.16.

### Is there a fix for CVE-2022-48842?

Yes. Fixed in Linux 5cb1ebdbc4342b1c2ce89516e19808d64417bdbc, Linux 5.15.30, Linux 5.16.16. Upgrade Linux to 5cb1ebdbc4342b1c2ce89516e19808d64417bdbc or later. Upgrade Linux to 5.16.16 or later.

### How do I check if I'm affected by CVE-2022-48842?

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/a9bbacc53d1f5ed8febbfdf31401d20e005f49ef>
- patch: <https://git.kernel.org/stable/c/e1014fc5572375658fa421531cedb6e084f477dc>
- patch: <https://git.kernel.org/stable/c/5cb1ebdbc4342b1c2ce89516e19808d64417bdbc>

## 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-2022-48842>

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