# CVE-2024-36003: ice: fix LAG and VF lock dependency in ice\_reset\_vf()

> 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.23% (percentile 9, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2024-05-20T09:48:04.263Z
- **Modified:** 2026-06-17T07:35:55.520Z

## Who should check

- Anyone running Linux \>= fd7f7a8ad3363fd94fc3868616cc70a1d8dfc01b, \< 740717774dc37338404d10726967d582414f638c; \>= 9f74a3dfcf83e11aedcb98250b8040dbc6d9659a, \< de8631d8c9df08440268630200e64b623a5f69e6; \>= 9f74a3dfcf83e11aedcb98250b8040dbc6d9659a, \< 96fdd1f6b4ed72a741fb0eb705c0e13049b8721f; \>= 6.6.5, \< 6.6.30
- Anyone running Linux 6.7

## Description

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

ice: fix LAG and VF lock dependency in ice\_reset\_vf()

9f74a3dfcf83 ("ice: Fix VF Reset paths when interface in a failed over
aggregate"), the ice driver has acquired the LAG mutex in ice\_reset\_vf().
The commit placed this lock acquisition just prior to the acquisition of
the VF configuration lock.

If ice\_reset\_vf() acquires the configuration lock via the ICE\_VF\_RESET\_LOCK
flag, this could deadlock with ice\_vc\_cfg\_qs\_msg() because it always
acquires the locks in the order of the VF configuration lock and then the
LAG mutex.

Lockdep reports this violation almost immediately on creating and then
removing 2 VF:

======================================================
WARNING: possible circular locking dependency detected
6.8.0-rc6 \#54 Tainted: G        W  O
------------------------------------------------------
kworker/60:3/6771 is trying to acquire lock:
ff40d43e099380a0 (&vf-\>cfg\_lock){+.+.}-{3:3}, at: ice\_reset\_vf+0x22f/0x4d0 \[ice\]

but task is already holding lock:
ff40d43ea1961210 (&pf-\>lag\_mutex){+.+.}-{3:3}, at: ice\_reset\_vf+0xb7/0x4d0 \[ice\]

which lock already depends on the new lock.

the existing dependency chain (in reverse order) is:

-\> \#1 (&pf-\>lag\_mutex){+.+.}-{3:3}:
       \_\_lock\_acquire+0x4f8/0xb40
       lock\_acquire+0xd4/0x2d0
       \_\_mutex\_lock+0x9b/0xbf0
       ice\_vc\_cfg\_qs\_msg+0x45/0x690 \[ice\]
       ice\_vc\_process\_vf\_msg+0x4f5/0x870 \[ice\]
       \_\_ice\_clean\_ctrlq+0x2b5/0x600 \[ice\]
       ice\_service\_task+0x2c9/0x480 \[ice\]
       process\_one\_work+0x1e9/0x4d0
       worker\_thread+0x1e1/0x3d0
       kthread+0x104/0x140
       ret\_from\_fork+0x31/0x50
       ret\_from\_fork\_asm+0x1b/0x30

-\> \#0 (&vf-\>cfg\_lock){+.+.}-{3:3}:
       check\_prev\_add+0xe2/0xc50
       validate\_chain+0x558/0x800
       \_\_lock\_acquire+0x4f8/0xb40
       lock\_acquire+0xd4/0x2d0
       \_\_mutex\_lock+0x9b/0xbf0
       ice\_reset\_vf+0x22f/0x4d0 \[ice\]
       ice\_process\_vflr\_event+0x98/0xd0 \[ice\]
       ice\_service\_task+0x1cc/0x480 \[ice\]
       process\_one\_work+0x1e9/0x4d0
       worker\_thread+0x1e1/0x3d0
       kthread+0x104/0x140
       ret\_from\_fork+0x31/0x50
       ret\_from\_fork\_asm+0x1b/0x30

other info that might help us debug this:
 Possible unsafe locking scenario:
       CPU0                    CPU1
       ----                    ----
  lock(&pf-\>lag\_mutex);
                               lock(&vf-\>cfg\_lock);
                               lock(&pf-\>lag\_mutex);
  lock(&vf-\>cfg\_lock);

 \*\*\* DEADLOCK \*\*\*
4 locks held by kworker/60:3/6771:
 \#0: ff40d43e05428b38 ((wq\_completion)ice){+.+.}-{0:0}, at: process\_one\_work+0x176/0x4d0
 \#1: ff50d06e05197e58 ((work\_completion)(&pf-\>serv\_task)){+.+.}-{0:0}, at: process\_one\_work+0x176/0x4d0
 \#2: ff40d43ea1960e50 (&pf-\>vfs.table\_lock){+.+.}-{3:3}, at: ice\_process\_vflr\_event+0x48/0xd0 \[ice\]
 \#3: ff40d43ea1961210 (&pf-\>lag\_mutex){+.+.}-{3:3}, at: ice\_reset\_vf+0xb7/0x4d0 \[ice\]

stack backtrace:
CPU: 60 PID: 6771 Comm: kworker/60:3 Tainted: G        W  O       6.8.0-rc6 \#54
Hardware name:
Workqueue: ice ice\_service\_task \[ice\]
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0x4a/0x80
 check\_noncircular+0x12d/0x150
 check\_prev\_add+0xe2/0xc50
 ? save\_trace+0x59/0x230
 ? add\_chain\_cache+0x109/0x450
 validate\_chain+0x558/0x800
 \_\_lock\_acquire+0x4f8/0xb40
 ? lockdep\_hardirqs\_on+0x7d/0x100
 lock\_acquire+0xd4/0x2d0
 ? ice\_reset\_vf+0x22f/0x4d0 \[ice\]
 ? lock\_is\_held\_type+0xc7/0x120
 \_\_mutex\_lock+0x9b/0xbf0
 ? ice\_reset\_vf+0x22f/0x4d0 \[ice\]
 ? ice\_reset\_vf+0x22f/0x4d0 \[ice\]
 ? rcu\_is\_watching+0x11/0x50
 ? ice\_reset\_vf+0x22f/0x4d0 \[ice\]
 ice\_reset\_vf+0x22f/0x4d0 \[ice\]
 ? process\_one\_work+0x176/0x4d0
 ice\_process\_vflr\_event+0x98/0xd0 \[ice\]
 ice\_service\_task+0x1cc/0x480 \[ice\]
 process\_one\_work+0x1e9/0x4d0
 worker\_thread+0x1e1/0x3d0
 ? \_\_pfx\_worker\_thread+0x10/0x10
 kthread+0x104/0x140
 ? \_\_pfx\_kthread+0x10/0x10
 ret\_from\_fork+0x31/0x50
 ? \_\_pfx\_kthread+0x10/0x10
 ret\_from\_fork\_asm+0x1b/0x30
 \</TASK\>

To avoid deadlock, we must acquire the LAG 
---truncated---

## Affected and fixed versions

- Linux: \>= fd7f7a8ad3363fd94fc3868616cc70a1d8dfc01b, \< 740717774dc37338404d10726967d582414f638c; \>= 9f74a3dfcf83e11aedcb98250b8040dbc6d9659a, \< de8631d8c9df08440268630200e64b623a5f69e6; \>= 9f74a3dfcf83e11aedcb98250b8040dbc6d9659a, \< 96fdd1f6b4ed72a741fb0eb705c0e13049b8721f; \>= 6.6.5, \< 6.6.30 (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- Upgrade Linux to 6.6.30 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-36003.md
Affected: Linux >= fd7f7a8ad3363fd94fc3868616cc70a1d8dfc01b, < 740717774dc37338404d10726967d582414f638c; >= 9f74a3dfcf83e11aedcb98250b8040dbc6d9659a, < de8631d8c9df08440268630200e64b623a5f69e6; >= 9f74a3dfcf83e11aedcb98250b8040dbc6d9659a, < 96fdd1f6b4ed72a741fb0eb705c0e13049b8721f; >= 6.6.5, < 6.6.30; Linux …
Fixed in: Linux 740717774dc37338404d10726967d582414f638c, Linux 96fdd1f6b4ed72a741fb0eb705c0e13049b8721f, Linux 6.6.30

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-2024-36003 being exploited?

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

### How serious is CVE-2024-36003?

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

### Which versions are affected by CVE-2024-36003?

Linux \>= fd7f7a8ad3363fd94fc3868616cc70a1d8dfc01b, \< 740717774dc37338404d10726967d582414f638c; \>= 9f74a3dfcf83e11aedcb98250b8040dbc6d9659a, \< de8631d8c9df08440268630200e64b623a5f69e6; \>= 9f74a3dfcf83e11aedcb98250b8040dbc6d9659a, \< 96fdd1f6b4ed72a741fb0eb705c0e13049b8721f; \>= 6.6.5, \< 6.6.30; Linux 6.7.

### Is there a fix for CVE-2024-36003?

Yes. Fixed in Linux 740717774dc37338404d10726967d582414f638c, Linux 96fdd1f6b4ed72a741fb0eb705c0e13049b8721f, Linux 6.6.30. Upgrade Linux to 6.6.30 or later.

### How do I check if I'm affected by CVE-2024-36003?

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/740717774dc37338404d10726967d582414f638c>
- patch: <https://git.kernel.org/stable/c/de8631d8c9df08440268630200e64b623a5f69e6>
- patch: <https://git.kernel.org/stable/c/96fdd1f6b4ed72a741fb0eb705c0e13049b8721f>

## 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-2024-36003>

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