# CVE-2024-46766: ice: move netif\_queue\_set\_napi to rtnl-protected sections

> 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, NVD) `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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-787
- **Published:** 2024-09-18T07:12:25.353Z
- **Modified:** 2026-06-17T07:55:53.383Z

## Who should check

- Anyone running Linux \>= 91fdbce7e8d69be255b45bfeb52092629a50e267, \< 2285c2faef19ee08a6bd6754f4c3ec07dceb2889; \>= 91fdbce7e8d69be255b45bfeb52092629a50e267, \< 2a5dc090b92cfa5270e20056074241c6db5c9cdd
- Anyone running Linux 6.8

## Description

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

ice: move netif\_queue\_set\_napi to rtnl-protected sections

Currently, netif\_queue\_set\_napi() is called from ice\_vsi\_rebuild() that is
not rtnl-locked when called from the reset. This creates the need to take
the rtnl\_lock just for a single function and complicates the
synchronization with .ndo\_bpf. At the same time, there no actual need to
fill napi-to-queue information at this exact point.

Fill napi-to-queue information when opening the VSI and clear it when the
VSI is being closed. Those routines are already rtnl-locked.

Also, rewrite napi-to-queue assignment in a way that prevents inclusion of
XDP queues, as this leads to out-of-bounds writes, such as one below.

\[  +0.000004\] BUG: KASAN: slab-out-of-bounds in netif\_queue\_set\_napi+0x1c2/0x1e0
\[  +0.000012\] Write of size 8 at addr ffff889881727c80 by task bash/7047
\[  +0.000006\] CPU: 24 PID: 7047 Comm: bash Not tainted 6.10.0-rc2+ \#2
\[  +0.000004\] Hardware name: Intel Corporation S2600WFT/S2600WFT, BIOS SE5C620.86B.02.01.0014.082620210524 08/26/2021
\[  +0.000003\] Call Trace:
\[  +0.000003\]  \<TASK\>
\[  +0.000002\]  dump\_stack\_lvl+0x60/0x80
\[  +0.000007\]  print\_report+0xce/0x630
\[  +0.000007\]  ? \_\_pfx\_\_raw\_spin\_lock\_irqsave+0x10/0x10
\[  +0.000007\]  ? \_\_virt\_addr\_valid+0x1c9/0x2c0
\[  +0.000005\]  ? netif\_queue\_set\_napi+0x1c2/0x1e0
\[  +0.000003\]  kasan\_report+0xe9/0x120
\[  +0.000004\]  ? netif\_queue\_set\_napi+0x1c2/0x1e0
\[  +0.000004\]  netif\_queue\_set\_napi+0x1c2/0x1e0
\[  +0.000005\]  ice\_vsi\_close+0x161/0x670 \[ice\]
\[  +0.000114\]  ice\_dis\_vsi+0x22f/0x270 \[ice\]
\[  +0.000095\]  ice\_pf\_dis\_all\_vsi.constprop.0+0xae/0x1c0 \[ice\]
\[  +0.000086\]  ice\_prepare\_for\_reset+0x299/0x750 \[ice\]
\[  +0.000087\]  pci\_dev\_save\_and\_disable+0x82/0xd0
\[  +0.000006\]  pci\_reset\_function+0x12d/0x230
\[  +0.000004\]  reset\_store+0xa0/0x100
\[  +0.000006\]  ? \_\_pfx\_reset\_store+0x10/0x10
\[  +0.000002\]  ? \_\_pfx\_mutex\_lock+0x10/0x10
\[  +0.000004\]  ? \_\_check\_object\_size+0x4c1/0x640
\[  +0.000007\]  kernfs\_fop\_write\_iter+0x30b/0x4a0
\[  +0.000006\]  vfs\_write+0x5d6/0xdf0
\[  +0.000005\]  ? fd\_install+0x180/0x350
\[  +0.000005\]  ? \_\_pfx\_vfs\_write+0x10/0xA10
\[  +0.000004\]  ? do\_fcntl+0x52c/0xcd0
\[  +0.000004\]  ? kasan\_save\_track+0x13/0x60
\[  +0.000003\]  ? kasan\_save\_free\_info+0x37/0x60
\[  +0.000006\]  ksys\_write+0xfa/0x1d0
\[  +0.000003\]  ? \_\_pfx\_ksys\_write+0x10/0x10
\[  +0.000002\]  ? \_\_x64\_sys\_fcntl+0x121/0x180
\[  +0.000004\]  ? \_raw\_spin\_lock+0x87/0xe0
\[  +0.000005\]  do\_syscall\_64+0x80/0x170
\[  +0.000007\]  ? \_raw\_spin\_lock+0x87/0xe0
\[  +0.000004\]  ? \_\_pfx\_\_raw\_spin\_lock+0x10/0x10
\[  +0.000003\]  ? file\_close\_fd\_locked+0x167/0x230
\[  +0.000005\]  ? syscall\_exit\_to\_user\_mode+0x7d/0x220
\[  +0.000005\]  ? do\_syscall\_64+0x8c/0x170
\[  +0.000004\]  ? do\_syscall\_64+0x8c/0x170
\[  +0.000003\]  ? do\_syscall\_64+0x8c/0x170
\[  +0.000003\]  ? fput+0x1a/0x2c0
\[  +0.000004\]  ? filp\_close+0x19/0x30
\[  +0.000004\]  ? do\_dup2+0x25a/0x4c0
\[  +0.000004\]  ? \_\_x64\_sys\_dup2+0x6e/0x2e0
\[  +0.000002\]  ? syscall\_exit\_to\_user\_mode+0x7d/0x220
\[  +0.000004\]  ? do\_syscall\_64+0x8c/0x170
\[  +0.000003\]  ? \_\_count\_memcg\_events+0x113/0x380
\[  +0.000005\]  ? handle\_mm\_fault+0x136/0x820
\[  +0.000005\]  ? do\_user\_addr\_fault+0x444/0xa80
\[  +0.000004\]  ? clear\_bhb\_loop+0x25/0x80
\[  +0.000004\]  ? clear\_bhb\_loop+0x25/0x80
\[  +0.000002\]  entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
\[  +0.000005\] RIP: 0033:0x7f2033593154

## Affected and fixed versions

- Linux: \>= 91fdbce7e8d69be255b45bfeb52092629a50e267, \< 2285c2faef19ee08a6bd6754f4c3ec07dceb2889; \>= 91fdbce7e8d69be255b45bfeb52092629a50e267, \< 2a5dc090b92cfa5270e20056074241c6db5c9cdd (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-46766.md
Affected: Linux >= 91fdbce7e8d69be255b45bfeb52092629a50e267, < 2285c2faef19ee08a6bd6754f4c3ec07dceb2889; >= 91fdbce7e8d69be255b45bfeb52092629a50e267, < 2a5dc090b92cfa5270e20056074241c6db5c9cdd; Linux 6.8
Fixed in: Linux 2285c2faef19ee08a6bd6754f4c3ec07dceb2889, Linux 2a5dc090b92cfa5270e20056074241c6db5c9cdd

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

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

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

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

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

Linux \>= 91fdbce7e8d69be255b45bfeb52092629a50e267, \< 2285c2faef19ee08a6bd6754f4c3ec07dceb2889; \>= 91fdbce7e8d69be255b45bfeb52092629a50e267, \< 2a5dc090b92cfa5270e20056074241c6db5c9cdd; Linux 6.8.

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

Yes. Fixed in Linux 2285c2faef19ee08a6bd6754f4c3ec07dceb2889, Linux 2a5dc090b92cfa5270e20056074241c6db5c9cdd. Upgrade Linux to 2a5dc090b92cfa5270e20056074241c6db5c9cdd or later.

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

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/2285c2faef19ee08a6bd6754f4c3ec07dceb2889>
- patch: <https://git.kernel.org/stable/c/2a5dc090b92cfa5270e20056074241c6db5c9cdd>

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

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