# CVE-2024-46765: ice: protect XDP configuration with a mutex

> 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.32% (percentile 18, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2024-09-18T07:12:24.420Z
- **Modified:** 2026-10-30T13:17:35.487Z

## Who should check

- Anyone running Linux \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 01f2f2659de463ca8bcd90e9d2fe36211edad7a8; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 2f057db2fb29bc209c103050647562e60554d3d3; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 391f7dae3d836891fc6cfbde38add2d0e10c6b7f; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 2504b8405768a57a71e660dbfd5abd59f679a03f
- Anyone running Linux 5.5

## Description

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

ice: protect XDP configuration with a mutex

The main threat to data consistency in ice\_xdp() is a possible asynchronous
PF reset. It can be triggered by a user or by TX timeout handler.

XDP setup and PF reset code access the same resources in the following
sections:
\* ice\_vsi\_close() in ice\_prepare\_for\_reset() - already rtnl-locked
\* ice\_vsi\_rebuild() for the PF VSI - not protected
\* ice\_vsi\_open() - already rtnl-locked

With an unfortunate timing, such accesses can result in a crash such as the
one below:

\[ +1.999878\] ice 0000:b1:00.0: Registered XDP mem model MEM\_TYPE\_XSK\_BUFF\_POOL on Rx ring 14
\[ +2.002992\] ice 0000:b1:00.0: Registered XDP mem model MEM\_TYPE\_XSK\_BUFF\_POOL on Rx ring 18
\[Mar15 18:17\] ice 0000:b1:00.0 ens801f0np0: NETDEV WATCHDOG: CPU: 38: transmit queue 14 timed out 80692736 ms
\[ +0.000093\] ice 0000:b1:00.0 ens801f0np0: tx\_timeout: VSI\_num: 6, Q 14, NTC: 0x0, HW\_HEAD: 0x0, NTU: 0x0, INT: 0x4000001
\[ +0.000012\] ice 0000:b1:00.0 ens801f0np0: tx\_timeout recovery level 1, txqueue 14
\[ +0.394718\] ice 0000:b1:00.0: PTP reset successful
\[ +0.006184\] BUG: kernel NULL pointer dereference, address: 0000000000000098
\[ +0.000045\] \#PF: supervisor read access in kernel mode
\[ +0.000023\] \#PF: error\_code(0x0000) - not-present page
\[ +0.000023\] PGD 0 P4D 0
\[ +0.000018\] Oops: 0000 \[\#1\] PREEMPT SMP NOPTI
\[ +0.000023\] CPU: 38 PID: 7540 Comm: kworker/38:1 Not tainted 6.8.0-rc7 \#1
\[ +0.000031\] Hardware name: Intel Corporation S2600WFT/S2600WFT, BIOS SE5C620.86B.02.01.0014.082620210524 08/26/2021
\[ +0.000036\] Workqueue: ice ice\_service\_task \[ice\]
\[ +0.000183\] RIP: 0010:ice\_clean\_tx\_ring+0xa/0xd0 \[ice\]
\[...\]
\[ +0.000013\] Call Trace:
\[ +0.000016\] \<TASK\>
\[ +0.000014\] ? \_\_die+0x1f/0x70
\[ +0.000029\] ? page\_fault\_oops+0x171/0x4f0
\[ +0.000029\] ? schedule+0x3b/0xd0
\[ +0.000027\] ? exc\_page\_fault+0x7b/0x180
\[ +0.000022\] ? asm\_exc\_page\_fault+0x22/0x30
\[ +0.000031\] ? ice\_clean\_tx\_ring+0xa/0xd0 \[ice\]
\[ +0.000194\] ice\_free\_tx\_ring+0xe/0x60 \[ice\]
\[ +0.000186\] ice\_destroy\_xdp\_rings+0x157/0x310 \[ice\]
\[ +0.000151\] ice\_vsi\_decfg+0x53/0xe0 \[ice\]
\[ +0.000180\] ice\_vsi\_rebuild+0x239/0x540 \[ice\]
\[ +0.000186\] ice\_vsi\_rebuild\_by\_type+0x76/0x180 \[ice\]
\[ +0.000145\] ice\_rebuild+0x18c/0x840 \[ice\]
\[ +0.000145\] ? delay\_tsc+0x4a/0xc0
\[ +0.000022\] ? delay\_tsc+0x92/0xc0
\[ +0.000020\] ice\_do\_reset+0x140/0x180 \[ice\]
\[ +0.000886\] ice\_service\_task+0x404/0x1030 \[ice\]
\[ +0.000824\] process\_one\_work+0x171/0x340
\[ +0.000685\] worker\_thread+0x277/0x3a0
\[ +0.000675\] ? preempt\_count\_add+0x6a/0xa0
\[ +0.000677\] ? \_raw\_spin\_lock\_irqsave+0x23/0x50
\[ +0.000679\] ? \_\_pfx\_worker\_thread+0x10/0x10
\[ +0.000653\] kthread+0xf0/0x120
\[ +0.000635\] ? \_\_pfx\_kthread+0x10/0x10
\[ +0.000616\] ret\_from\_fork+0x2d/0x50
\[ +0.000612\] ? \_\_pfx\_kthread+0x10/0x10
\[ +0.000604\] ret\_from\_fork\_asm+0x1b/0x30
\[ +0.000604\] \</TASK\>

The previous way of handling this through returning -EBUSY is not viable,
particularly when destroying AF\_XDP socket, because the kernel proceeds
with removal anyway.

There is plenty of code between those calls and there is no need to create
a large critical section that covers all of them, same as there is no need
to protect ice\_vsi\_rebuild() with rtnl\_lock().

Add xdp\_state\_lock mutex to protect ice\_vsi\_rebuild() and ice\_xdp().

Leaving unprotected sections in between would result in two states that
have to be considered:
1. when the VSI is closed, but not yet rebuild
2. when VSI is already rebuild, but not yet open

The latter case is actually already handled through !netif\_running() case,
we just need to adjust flag checking a little. The former one is not as
trivial, because between ice\_vsi\_close() and ice\_vsi\_rebuild(), a lot of
hardware interaction happens, this can make adding/deleting rings exit
with an error. Luckily, VSI rebuild is pending and can apply new
configuration for us in a managed fashion.

Therefore, add an additional VSI state flag ICE\_VSI\_REBUILD\_PENDING to
indicate that ice\_x
---truncated---

## Affected and fixed versions

- Linux: \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 01f2f2659de463ca8bcd90e9d2fe36211edad7a8; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 2f057db2fb29bc209c103050647562e60554d3d3; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 391f7dae3d836891fc6cfbde38add2d0e10c6b7f; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 2504b8405768a57a71e660dbfd5abd59f679a03f (cvelist)
- Linux: 5.5 (cvelist)

## Mitigation

- Upgrade Linux to 2504b8405768a57a71e660dbfd5abd59f679a03f 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-46765. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-46765.md
Affected: Linux >= efc2214b6047b6f5b4ca53151eba62521b9452d6, < 01f2f2659de463ca8bcd90e9d2fe36211edad7a8; >= efc2214b6047b6f5b4ca53151eba62521b9452d6, < 2f057db2fb29bc209c103050647562e60554d3d3; >= efc2214b6047b6f5b4ca53151eba62521b9452d6, < 391f7dae3d836891fc6cfbde38add2d0e10c6b7f; >= efc2214b6047b6f5b4ca531…
Fixed in: Linux 01f2f2659de463ca8bcd90e9d2fe36211edad7a8, Linux 2f057db2fb29bc209c103050647562e60554d3d3, Linux 391f7dae3d836891fc6cfbde38add2d0e10c6b7f, Linux 2504b8405768a57a71e660dbfd5abd59f679a03f

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-46765 being exploited?

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

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

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

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

Linux \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 01f2f2659de463ca8bcd90e9d2fe36211edad7a8; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 2f057db2fb29bc209c103050647562e60554d3d3; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 391f7dae3d836891fc6cfbde38add2d0e10c6b7f; \>= efc2214b6047b6f5b4ca53151eba62521b9452d6, \< 2504b8405768a57a71e660dbfd5abd59f679a03f; Linux 5.5.

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

Yes. Fixed in Linux 01f2f2659de463ca8bcd90e9d2fe36211edad7a8, Linux 2f057db2fb29bc209c103050647562e60554d3d3, Linux 391f7dae3d836891fc6cfbde38add2d0e10c6b7f, Linux 2504b8405768a57a71e660dbfd5abd59f679a03f. Upgrade Linux to 2504b8405768a57a71e660dbfd5abd59f679a03f or later.

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

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/2f057db2fb29bc209c103050647562e60554d3d3>
- patch: <https://git.kernel.org/stable/c/391f7dae3d836891fc6cfbde38add2d0e10c6b7f>
- patch: <https://git.kernel.org/stable/c/2504b8405768a57a71e660dbfd5abd59f679a03f>
- other: <https://git.kernel.org/stable/c/01f2f2659de463ca8bcd90e9d2fe36211edad7a8>

## 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-46765>

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