# CVE-2022-50053: iavf: Fix reset error handling

> 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.21% (percentile 6, 2026-11-26)
- **CWE:** CWE-667
- **Published:** 2025-06-18T11:01:58.164Z
- **Modified:** 2026-06-17T05:22:38.903Z

## Who should check

- Anyone running Linux \>= f0db78928783f0a4cce4940e8c03c2e9a760e629, \< 743dc4377bbac06a6fe44c3c5baf75a49439678a; \>= f0db78928783f0a4cce4940e8c03c2e9a760e629, \< 0828e27971f18ea317710acb228afe6e72606082; \>= f0db78928783f0a4cce4940e8c03c2e9a760e629, \< 31071173771e079f7bc08dacd61e0db913262fbf
- Anyone running Linux 4.14

## Description

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

iavf: Fix reset error handling

Do not call iavf\_close in iavf\_reset\_task error handling. Doing so can
lead to double call of napi\_disable, which can lead to deadlock there.
Removing VF would lead to iavf\_remove task being stuck, because it
requires crit\_lock, which is held by iavf\_close.
Call iavf\_disable\_vf if reset fail, so that driver will clean up
remaining invalid resources.
During rapid VF resets, HW can fail to setup VF mailbox. Wrong
error handling can lead to iavf\_remove being stuck with:
\[ 5218.999087\] iavf 0000:82:01.0: Failed to init adminq: -53
...
\[ 5267.189211\] INFO: task repro.sh:11219 blocked for more than 30 seconds.
\[ 5267.189520\]       Tainted: G S          E     5.18.0-04958-ga54ce3703613-dirty \#1
\[ 5267.189764\] "echo 0 \> /proc/sys/kernel/hung\_task\_timeout\_secs" disables this message.
\[ 5267.190062\] task:repro.sh        state:D stack:    0 pid:11219 ppid:  8162 flags:0x00000000
\[ 5267.190347\] Call Trace:
\[ 5267.190647\]  \<TASK\>
\[ 5267.190927\]  \_\_schedule+0x460/0x9f0
\[ 5267.191264\]  schedule+0x44/0xb0
\[ 5267.191563\]  schedule\_preempt\_disabled+0x14/0x20
\[ 5267.191890\]  \_\_mutex\_lock.isra.12+0x6e3/0xac0
\[ 5267.192237\]  ? iavf\_remove+0xf9/0x6c0 \[iavf\]
\[ 5267.192565\]  iavf\_remove+0x12a/0x6c0 \[iavf\]
\[ 5267.192911\]  ? \_raw\_spin\_unlock\_irqrestore+0x1e/0x40
\[ 5267.193285\]  pci\_device\_remove+0x36/0xb0
\[ 5267.193619\]  device\_release\_driver\_internal+0xc1/0x150
\[ 5267.193974\]  pci\_stop\_bus\_device+0x69/0x90
\[ 5267.194361\]  pci\_stop\_and\_remove\_bus\_device+0xe/0x20
\[ 5267.194735\]  pci\_iov\_remove\_virtfn+0xba/0x120
\[ 5267.195130\]  sriov\_disable+0x2f/0xe0
\[ 5267.195506\]  ice\_free\_vfs+0x7d/0x2f0 \[ice\]
\[ 5267.196056\]  ? pci\_get\_device+0x4f/0x70
\[ 5267.196496\]  ice\_sriov\_configure+0x78/0x1a0 \[ice\]
\[ 5267.196995\]  sriov\_numvfs\_store+0xfe/0x140
\[ 5267.197466\]  kernfs\_fop\_write\_iter+0x12e/0x1c0
\[ 5267.197918\]  new\_sync\_write+0x10c/0x190
\[ 5267.198404\]  vfs\_write+0x24e/0x2d0
\[ 5267.198886\]  ksys\_write+0x5c/0xd0
\[ 5267.199367\]  do\_syscall\_64+0x3a/0x80
\[ 5267.199827\]  entry\_SYSCALL\_64\_after\_hwframe+0x46/0xb0
\[ 5267.200317\] RIP: 0033:0x7f5b381205c8
\[ 5267.200814\] RSP: 002b:00007fff8c7e8c78 EFLAGS: 00000246 ORIG\_RAX: 0000000000000001
\[ 5267.201981\] RAX: ffffffffffffffda RBX: 0000000000000002 RCX: 00007f5b381205c8
\[ 5267.202620\] RDX: 0000000000000002 RSI: 00005569420ee900 RDI: 0000000000000001
\[ 5267.203426\] RBP: 00005569420ee900 R08: 000000000000000a R09: 00007f5b38180820
\[ 5267.204327\] R10: 000000000000000a R11: 0000000000000246 R12: 00007f5b383c06e0
\[ 5267.205193\] R13: 0000000000000002 R14: 00007f5b383bb880 R15: 0000000000000002
\[ 5267.206041\]  \</TASK\>
\[ 5267.206970\] Kernel panic - not syncing: hung\_task: blocked tasks
\[ 5267.207809\] CPU: 48 PID: 551 Comm: khungtaskd Kdump: loaded Tainted: G S          E     5.18.0-04958-ga54ce3703613-dirty \#1
\[ 5267.208726\] Hardware name: Dell Inc. PowerEdge R730/0WCJNT, BIOS 2.11.0 11/02/2019
\[ 5267.209623\] Call Trace:
\[ 5267.210569\]  \<TASK\>
\[ 5267.211480\]  dump\_stack\_lvl+0x33/0x42
\[ 5267.212472\]  panic+0x107/0x294
\[ 5267.213467\]  watchdog.cold.8+0xc/0xbb
\[ 5267.214413\]  ? proc\_dohung\_task\_timeout\_secs+0x30/0x30
\[ 5267.215511\]  kthread+0xf4/0x120
\[ 5267.216459\]  ? kthread\_complete\_and\_exit+0x20/0x20
\[ 5267.217505\]  ret\_from\_fork+0x22/0x30
\[ 5267.218459\]  \</TASK\>

## Affected and fixed versions

- Linux: \>= f0db78928783f0a4cce4940e8c03c2e9a760e629, \< 743dc4377bbac06a6fe44c3c5baf75a49439678a; \>= f0db78928783f0a4cce4940e8c03c2e9a760e629, \< 0828e27971f18ea317710acb228afe6e72606082; \>= f0db78928783f0a4cce4940e8c03c2e9a760e629, \< 31071173771e079f7bc08dacd61e0db913262fbf (cvelist)
- Linux: 4.14 (cvelist)

## Mitigation

- Upgrade Linux to 31071173771e079f7bc08dacd61e0db913262fbf or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50053.md
Affected: Linux >= f0db78928783f0a4cce4940e8c03c2e9a760e629, < 743dc4377bbac06a6fe44c3c5baf75a49439678a; >= f0db78928783f0a4cce4940e8c03c2e9a760e629, < 0828e27971f18ea317710acb228afe6e72606082; >= f0db78928783f0a4cce4940e8c03c2e9a760e629, < 31071173771e079f7bc08dacd61e0db913262fbf; Linux 4.14
Fixed in: Linux 743dc4377bbac06a6fe44c3c5baf75a49439678a, Linux 0828e27971f18ea317710acb228afe6e72606082, Linux 31071173771e079f7bc08dacd61e0db913262fbf

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

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

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

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

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

Linux \>= f0db78928783f0a4cce4940e8c03c2e9a760e629, \< 743dc4377bbac06a6fe44c3c5baf75a49439678a; \>= f0db78928783f0a4cce4940e8c03c2e9a760e629, \< 0828e27971f18ea317710acb228afe6e72606082; \>= f0db78928783f0a4cce4940e8c03c2e9a760e629, \< 31071173771e079f7bc08dacd61e0db913262fbf; Linux 4.14.

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

Yes. Fixed in Linux 743dc4377bbac06a6fe44c3c5baf75a49439678a, Linux 0828e27971f18ea317710acb228afe6e72606082, Linux 31071173771e079f7bc08dacd61e0db913262fbf. Upgrade Linux to 31071173771e079f7bc08dacd61e0db913262fbf or later.

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

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/743dc4377bbac06a6fe44c3c5baf75a49439678a>
- patch: <https://git.kernel.org/stable/c/0828e27971f18ea317710acb228afe6e72606082>
- patch: <https://git.kernel.org/stable/c/31071173771e079f7bc08dacd61e0db913262fbf>

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

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