# CVE-2026-22981: idpf: detach and close netdevs while handling a reset

> 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.20% (percentile 6, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2026-01-23T15:24:03.772Z
- **Modified:** 2026-11-05T22:17:57.117Z

## Who should check

- Anyone running Linux \>= 0fe45467a1041ea3657a7fa3a791c84c104fbd34, \< 9ad3d0836d8bc1a0f0b4bf56efc56312a9e64b97; \>= 0fe45467a1041ea3657a7fa3a791c84c104fbd34, \< ac122f5fb050903b3d262001562c452be95eaf70; \>= 0fe45467a1041ea3657a7fa3a791c84c104fbd34, \< 2e281e1155fc476c571c0bd2ffbfe28ab829a5c3
- Anyone running Linux 6.7

## Description

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

idpf: detach and close netdevs while handling a reset

Protect the reset path from callbacks by setting the netdevs to detached
state and close any netdevs in UP state until the reset handling has
completed. During a reset, the driver will de-allocate resources for the
vport, and there is no guarantee that those will recover, which is why the
existing vport\_ctrl\_lock does not provide sufficient protection.

idpf\_detach\_and\_close() is called right before reset handling. If the
reset handling succeeds, the netdevs state is recovered via call to
idpf\_attach\_and\_open(). If the reset handling fails the netdevs remain
down. The detach/down calls are protected with RTNL lock to avoid racing
with callbacks. On the recovery side the attach can be done without
holding the RTNL lock as there are no callbacks expected at that point,
due to detach/close always being done first in that flow.

The previous logic restoring the netdevs state based on the
IDPF\_VPORT\_UP\_REQUESTED flag in the init task is not needed anymore, hence
the removal of idpf\_set\_vport\_state(). The IDPF\_VPORT\_UP\_REQUESTED is
still being used to restore the state of the netdevs following the reset,
but has no use outside of the reset handling flow.

idpf\_init\_hard\_reset() is converted to void, since it was used as such and
there is no error handling being done based on its return value.

Before this change, invoking hard and soft resets simultaneously will
cause the driver to lose the vport state:
ip -br a
\<inf\>	UP
echo 1 \> /sys/class/net/ens801f0/device/reset& \\
ethtool -L ens801f0 combined 8
ip -br a
\<inf\>	DOWN
ip link set \<inf\> up
ip -br a
\<inf\>	DOWN

Also in case of a failure in the reset path, the netdev is left
exposed to external callbacks, while vport resources are not
initialized, leading to a crash on subsequent ifup/down:
\[408471.398966\] idpf 0000:83:00.0: HW reset detected
\[408471.411744\] idpf 0000:83:00.0: Device HW Reset initiated
\[408472.277901\] idpf 0000:83:00.0: The driver was unable to contact the device's firmware. Check that the FW is running. Driver state= 0x2
\[408508.125551\] BUG: kernel NULL pointer dereference, address: 0000000000000078
\[408508.126112\] \#PF: supervisor read access in kernel mode
\[408508.126687\] \#PF: error\_code(0x0000) - not-present page
\[408508.127256\] PGD 2aae2f067 P4D 0
\[408508.127824\] Oops: Oops: 0000 \[\#1\] SMP NOPTI
...
\[408508.130871\] RIP: 0010:idpf\_stop+0x39/0x70 \[idpf\]
...
\[408508.139193\] Call Trace:
\[408508.139637\]  \<TASK\>
\[408508.140077\]  \_\_dev\_close\_many+0xbb/0x260
\[408508.140533\]  \_\_dev\_change\_flags+0x1cf/0x280
\[408508.140987\]  netif\_change\_flags+0x26/0x70
\[408508.141434\]  dev\_change\_flags+0x3d/0xb0
\[408508.141878\]  devinet\_ioctl+0x460/0x890
\[408508.142321\]  inet\_ioctl+0x18e/0x1d0
\[408508.142762\]  ? \_copy\_to\_user+0x22/0x70
\[408508.143207\]  sock\_do\_ioctl+0x3d/0xe0
\[408508.143652\]  sock\_ioctl+0x10e/0x330
\[408508.144091\]  ? find\_held\_lock+0x2b/0x80
\[408508.144537\]  \_\_x64\_sys\_ioctl+0x96/0xe0
\[408508.144979\]  do\_syscall\_64+0x79/0x3d0
\[408508.145415\]  entry\_SYSCALL\_64\_after\_hwframe+0x76/0x7e
\[408508.145860\] RIP: 0033:0x7f3e0bb4caff

## Affected and fixed versions

- Linux: \>= 0fe45467a1041ea3657a7fa3a791c84c104fbd34, \< 9ad3d0836d8bc1a0f0b4bf56efc56312a9e64b97; \>= 0fe45467a1041ea3657a7fa3a791c84c104fbd34, \< ac122f5fb050903b3d262001562c452be95eaf70; \>= 0fe45467a1041ea3657a7fa3a791c84c104fbd34, \< 2e281e1155fc476c571c0bd2ffbfe28ab829a5c3 (cvelist)
- Linux: 6.7 (cvelist)

## Mitigation

- Upgrade Linux to 2e281e1155fc476c571c0bd2ffbfe28ab829a5c3 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-22981.md
Affected: Linux >= 0fe45467a1041ea3657a7fa3a791c84c104fbd34, < 9ad3d0836d8bc1a0f0b4bf56efc56312a9e64b97; >= 0fe45467a1041ea3657a7fa3a791c84c104fbd34, < ac122f5fb050903b3d262001562c452be95eaf70; >= 0fe45467a1041ea3657a7fa3a791c84c104fbd34, < 2e281e1155fc476c571c0bd2ffbfe28ab829a5c3; Linux 6.7
Fixed in: Linux 9ad3d0836d8bc1a0f0b4bf56efc56312a9e64b97, Linux 2e281e1155fc476c571c0bd2ffbfe28ab829a5c3

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-2026-22981 being exploited?

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

### How serious is CVE-2026-22981?

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

### Which versions are affected by CVE-2026-22981?

Linux \>= 0fe45467a1041ea3657a7fa3a791c84c104fbd34, \< 9ad3d0836d8bc1a0f0b4bf56efc56312a9e64b97; \>= 0fe45467a1041ea3657a7fa3a791c84c104fbd34, \< ac122f5fb050903b3d262001562c452be95eaf70; \>= 0fe45467a1041ea3657a7fa3a791c84c104fbd34, \< 2e281e1155fc476c571c0bd2ffbfe28ab829a5c3; Linux 6.7.

### Is there a fix for CVE-2026-22981?

Yes. Fixed in Linux 9ad3d0836d8bc1a0f0b4bf56efc56312a9e64b97, Linux 2e281e1155fc476c571c0bd2ffbfe28ab829a5c3. Upgrade Linux to 2e281e1155fc476c571c0bd2ffbfe28ab829a5c3 or later.

### How do I check if I'm affected by CVE-2026-22981?

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/ac122f5fb050903b3d262001562c452be95eaf70>
- patch: <https://git.kernel.org/stable/c/2e281e1155fc476c571c0bd2ffbfe28ab829a5c3>
- other: <https://git.kernel.org/stable/c/9ad3d0836d8bc1a0f0b4bf56efc56312a9e64b97>

## 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-2026-22981>

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