# CVE-2022-48688: i40e: Fix kernel crash during module removal

> 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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-05-03T14:59:45.253Z
- **Modified:** 2026-06-17T05:15:55.517Z

## Who should check

- Anyone running Linux \>= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, \< c49f320e2492738d478bc427dcd54ccfe0cba746; \>= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, \< 5332a094514852d5e58c278cf4193adb937337fc; \>= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, \< 342d77769a6cceb3df7720a1e18baa4339eee3fc; \>= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, \< 2ed94383f3a2693dbf5bc47c514b42524bd8f9ae; \>= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, \< 38af35bec59a8431a1eb29da994a0a45cba275d9; \>= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, \< fb8396aeda5872369a8ed6d2301e2c86e303c520
- Anyone running Linux 4.12

## Description

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

i40e: Fix kernel crash during module removal

The driver incorrectly frees client instance and subsequent
i40e module removal leads to kernel crash.

Reproducer:
1. Do ethtool offline test followed immediately by another one
host\# ethtool -t eth0 offline; ethtool -t eth0 offline
2. Remove recursively irdma module that also removes i40e module
host\# modprobe -r irdma

Result:
\[ 8675.035651\] i40e 0000:3d:00.0 eno1: offline testing starting
\[ 8675.193774\] i40e 0000:3d:00.0 eno1: testing finished
\[ 8675.201316\] i40e 0000:3d:00.0 eno1: offline testing starting
\[ 8675.358921\] i40e 0000:3d:00.0 eno1: testing finished
\[ 8675.496921\] i40e 0000:3d:00.0: IRDMA hardware initialization FAILED init\_state=2 status=-110
\[ 8686.188955\] i40e 0000:3d:00.1: i40e\_ptp\_stop: removed PHC on eno2
\[ 8686.943890\] i40e 0000:3d:00.1: Deleted LAN device PF1 bus=0x3d dev=0x00 func=0x01
\[ 8686.952669\] i40e 0000:3d:00.0: i40e\_ptp\_stop: removed PHC on eno1
\[ 8687.761787\] BUG: kernel NULL pointer dereference, address: 0000000000000030
\[ 8687.768755\] \#PF: supervisor read access in kernel mode
\[ 8687.773895\] \#PF: error\_code(0x0000) - not-present page
\[ 8687.779034\] PGD 0 P4D 0
\[ 8687.781575\] Oops: 0000 \[\#1\] PREEMPT SMP NOPTI
\[ 8687.785935\] CPU: 51 PID: 172891 Comm: rmmod Kdump: loaded Tainted: G        W I        5.19.0+ \#2
\[ 8687.794800\] Hardware name: Intel Corporation S2600WFD/S2600WFD, BIOS SE5C620.86B.0X.02.0001.051420190324 05/14/2019
\[ 8687.805222\] RIP: 0010:i40e\_lan\_del\_device+0x13/0xb0 \[i40e\]
\[ 8687.810719\] Code: d4 84 c0 0f 84 b8 25 01 00 e9 9c 25 01 00 41 bc f4 ff ff ff eb 91 90 0f 1f 44 00 00 41 54 55 53 48 8b 87 58 08 00 00 48 89 fb \<48\> 8b 68 30 48 89 ef e8 21 8a 0f d5 48 89 ef e8 a9 78 0f d5 48 8b
\[ 8687.829462\] RSP: 0018:ffffa604072efce0 EFLAGS: 00010202
\[ 8687.834689\] RAX: 0000000000000000 RBX: ffff8f43833b2000 RCX: 0000000000000000
\[ 8687.841821\] RDX: 0000000000000000 RSI: ffff8f4b0545b298 RDI: ffff8f43833b2000
\[ 8687.848955\] RBP: ffff8f43833b2000 R08: 0000000000000001 R09: 0000000000000000
\[ 8687.856086\] R10: 0000000000000000 R11: 000ffffffffff000 R12: ffff8f43833b2ef0
\[ 8687.863218\] R13: ffff8f43833b2ef0 R14: ffff915103966000 R15: ffff8f43833b2008
\[ 8687.870342\] FS:  00007f79501c3740(0000) GS:ffff8f4adffc0000(0000) knlGS:0000000000000000
\[ 8687.878427\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[ 8687.884174\] CR2: 0000000000000030 CR3: 000000014276e004 CR4: 00000000007706e0
\[ 8687.891306\] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
\[ 8687.898441\] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
\[ 8687.905572\] PKRU: 55555554
\[ 8687.908286\] Call Trace:
\[ 8687.910737\]  \<TASK\>
\[ 8687.912843\]  i40e\_remove+0x2c0/0x330 \[i40e\]
\[ 8687.917040\]  pci\_device\_remove+0x33/0xa0
\[ 8687.920962\]  device\_release\_driver\_internal+0x1aa/0x230
\[ 8687.926188\]  driver\_detach+0x44/0x90
\[ 8687.929770\]  bus\_remove\_driver+0x55/0xe0
\[ 8687.933693\]  pci\_unregister\_driver+0x2a/0xb0
\[ 8687.937967\]  i40e\_exit\_module+0xc/0xf48 \[i40e\]

Two offline tests cause IRDMA driver failure (ETIMEDOUT) and this
failure is indicated back to i40e\_client\_subtask() that calls
i40e\_client\_del\_instance() to free client instance referenced
by pf-\>cinst and sets this pointer to NULL. During the module
removal i40e\_remove() calls i40e\_lan\_del\_device() that dereferences
pf-\>cinst that is NULL -\> crash.
Do not remove client instance when client open callbacks fails and
just clear \_\_I40E\_CLIENT\_INSTANCE\_OPENED bit. The driver also needs
to take care about this situation (when netdev is up and client
is NOT opened) in i40e\_notify\_client\_of\_netdev\_close() and
calls client close callback only when \_\_I40E\_CLIENT\_INSTANCE\_OPENED
is set.

## Affected and fixed versions

- Linux: \>= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, \< c49f320e2492738d478bc427dcd54ccfe0cba746; \>= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, \< 5332a094514852d5e58c278cf4193adb937337fc; \>= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, \< 342d77769a6cceb3df7720a1e18baa4339eee3fc; \>= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, \< 2ed94383f3a2693dbf5bc47c514b42524bd8f9ae; \>= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, \< 38af35bec59a8431a1eb29da994a0a45cba275d9; \>= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, \< fb8396aeda5872369a8ed6d2301e2c86e303c520 (cvelist)
- Linux: 4.12 (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-2022-48688. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-48688.md
Affected: Linux >= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, < c49f320e2492738d478bc427dcd54ccfe0cba746; >= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, < 5332a094514852d5e58c278cf4193adb937337fc; >= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, < 342d77769a6cceb3df7720a1e18baa4339eee3fc; >= 0ef2d5afb12d379f4dd5df6…
Fixed in: Linux 5332a094514852d5e58c278cf4193adb937337fc, Linux 342d77769a6cceb3df7720a1e18baa4339eee3fc, Linux 2ed94383f3a2693dbf5bc47c514b42524bd8f9ae, Linux 38af35bec59a8431a1eb29da994a0a45cba275d9

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

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

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

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

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

Linux \>= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, \< c49f320e2492738d478bc427dcd54ccfe0cba746; \>= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, \< 5332a094514852d5e58c278cf4193adb937337fc; \>= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, \< 342d77769a6cceb3df7720a1e18baa4339eee3fc; \>= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, \< 2ed94383f3a2693dbf5bc47c514b42524bd8f9ae; \>= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, \< 38af35bec59a8431a1eb29da994a0a45cba275d9; \>= 0ef2d5afb12d379f4dd5df696219a01b88bb778a, \< fb8396aeda5872369a8ed6d2301e2c86e303c520; Linux 4.12.

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

Yes. Fixed in Linux 5332a094514852d5e58c278cf4193adb937337fc, Linux 342d77769a6cceb3df7720a1e18baa4339eee3fc, Linux 2ed94383f3a2693dbf5bc47c514b42524bd8f9ae, Linux 38af35bec59a8431a1eb29da994a0a45cba275d9. No fix listed yet: follow the vendor advisory.

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

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/c49f320e2492738d478bc427dcd54ccfe0cba746>
- patch: <https://git.kernel.org/stable/c/5332a094514852d5e58c278cf4193adb937337fc>
- patch: <https://git.kernel.org/stable/c/342d77769a6cceb3df7720a1e18baa4339eee3fc>
- patch: <https://git.kernel.org/stable/c/2ed94383f3a2693dbf5bc47c514b42524bd8f9ae>
- patch: <https://git.kernel.org/stable/c/38af35bec59a8431a1eb29da994a0a45cba275d9>
- patch: <https://git.kernel.org/stable/c/fb8396aeda5872369a8ed6d2301e2c86e303c520>

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

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