# CVE-2022-50054: iavf: Fix NULL pointer dereference in iavf\_get\_link\_ksettings

> 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.24% (percentile 9, 2026-11-28)
- **CWE:** CWE-476
- **Published:** 2025-06-18T11:01:58.769Z
- **Modified:** 2026-06-17T05:22:39.040Z

## Who should check

- Anyone running Linux \>= 209f2f9c718138ddbd8586e5a1463bd079a17241, \< b305c7e9363f5a174ee08ac5f056e4b209f0325b; \>= 209f2f9c718138ddbd8586e5a1463bd079a17241, \< 541a1af451b0cb3779e915d48d08efb17915207b
- Anyone running Linux 5.17

## Description

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

iavf: Fix NULL pointer dereference in iavf\_get\_link\_ksettings

Fix possible NULL pointer dereference, due to freeing of adapter-\>vf\_res
in iavf\_init\_get\_resources. Previous commit introduced a regression,
where receiving IAVF\_ERR\_ADMIN\_QUEUE\_NO\_WORK from iavf\_get\_vf\_config
would free adapter-\>vf\_res. However, netdev is still registered, so
ethtool\_ops can be called. Calling iavf\_get\_link\_ksettings with no vf\_res,
will result with:
\[ 9385.242676\] BUG: kernel NULL pointer dereference, address: 0000000000000008
\[ 9385.242683\] \#PF: supervisor read access in kernel mode
\[ 9385.242686\] \#PF: error\_code(0x0000) - not-present page
\[ 9385.242690\] PGD 0 P4D 0
\[ 9385.242696\] Oops: 0000 \[\#1\] PREEMPT SMP DEBUG\_PAGEALLOC PTI
\[ 9385.242701\] CPU: 6 PID: 3217 Comm: pmdalinux Kdump: loaded Tainted: G S          E     5.18.0-04958-ga54ce3703613-dirty \#1
\[ 9385.242708\] Hardware name: Dell Inc. PowerEdge R730/0WCJNT, BIOS 2.11.0 11/02/2019
\[ 9385.242710\] RIP: 0010:iavf\_get\_link\_ksettings+0x29/0xd0 \[iavf\]
\[ 9385.242745\] Code: 00 0f 1f 44 00 00 b8 01 ef ff ff 48 c7 46 30 00 00 00 00 48 c7 46 38 00 00 00 00 c6 46 0b 00 66 89 46 08 48 8b 87 68 0e 00 00 \<f6\> 40 08 80 75 50 8b 87 5c 0e 00 00 83 f8 08 74 7a 76 1d 83 f8 20
\[ 9385.242749\] RSP: 0018:ffffc0560ec7fbd0 EFLAGS: 00010246
\[ 9385.242755\] RAX: 0000000000000000 RBX: ffffc0560ec7fc08 RCX: 0000000000000000
\[ 9385.242759\] RDX: ffffffffc0ad4550 RSI: ffffc0560ec7fc08 RDI: ffffa0fc66674000
\[ 9385.242762\] RBP: 00007ffd1fb2bf50 R08: b6a2d54b892363ee R09: ffffa101dc14fb00
\[ 9385.242765\] R10: 0000000000000000 R11: 0000000000000004 R12: ffffa0fc66674000
\[ 9385.242768\] R13: 0000000000000000 R14: ffffa0fc66674000 R15: 00000000ffffffa1
\[ 9385.242771\] FS:  00007f93711a2980(0000) GS:ffffa0fad72c0000(0000) knlGS:0000000000000000
\[ 9385.242775\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[ 9385.242778\] CR2: 0000000000000008 CR3: 0000000a8e61c003 CR4: 00000000003706e0
\[ 9385.242781\] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
\[ 9385.242784\] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
\[ 9385.242787\] Call Trace:
\[ 9385.242791\]  \<TASK\>
\[ 9385.242793\]  ethtool\_get\_settings+0x71/0x1a0
\[ 9385.242814\]  \_\_dev\_ethtool+0x426/0x2f40
\[ 9385.242823\]  ? slab\_post\_alloc\_hook+0x4f/0x280
\[ 9385.242836\]  ? kmem\_cache\_alloc\_trace+0x15d/0x2f0
\[ 9385.242841\]  ? dev\_ethtool+0x59/0x170
\[ 9385.242848\]  dev\_ethtool+0xa7/0x170
\[ 9385.242856\]  dev\_ioctl+0xc3/0x520
\[ 9385.242866\]  sock\_do\_ioctl+0xa0/0xe0
\[ 9385.242877\]  sock\_ioctl+0x22f/0x320
\[ 9385.242885\]  \_\_x64\_sys\_ioctl+0x84/0xc0
\[ 9385.242896\]  do\_syscall\_64+0x3a/0x80
\[ 9385.242904\]  entry\_SYSCALL\_64\_after\_hwframe+0x46/0xb0
\[ 9385.242918\] RIP: 0033:0x7f93702396db
\[ 9385.242923\] Code: 73 01 c3 48 8b 0d ad 57 38 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 10 00 00 00 0f 05 \<48\> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 7d 57 38 00 f7 d8 64 89 01 48
\[ 9385.242927\] RSP: 002b:00007ffd1fb2bf18 EFLAGS: 00000246 ORIG\_RAX: 0000000000000010
\[ 9385.242932\] RAX: ffffffffffffffda RBX: 000055671b1d2fe0 RCX: 00007f93702396db
\[ 9385.242935\] RDX: 00007ffd1fb2bf20 RSI: 0000000000008946 RDI: 0000000000000007
\[ 9385.242937\] RBP: 00007ffd1fb2bf20 R08: 0000000000000003 R09: 0030763066307330
\[ 9385.242940\] R10: 0000000000000000 R11: 0000000000000246 R12: 00007ffd1fb2bf80
\[ 9385.242942\] R13: 0000000000000007 R14: 0000556719f6de90 R15: 00007ffd1fb2c1b0
\[ 9385.242948\]  \</TASK\>
\[ 9385.242949\] Modules linked in: iavf(E) xt\_CHECKSUM xt\_MASQUERADE xt\_conntrack ipt\_REJECT nft\_compat nf\_nat\_tftp nft\_objref nf\_conntrack\_tftp bridge stp llc nft\_fib\_inet nft\_fib\_ipv4 nft\_fib\_ipv6 nft\_fib nft\_reject\_inet nf\_reject\_ipv4 nf\_reject\_ipv6 nft\_reject nft\_ct nft\_chain\_nat nf\_nat nf\_conntrack nf\_defrag\_ipv6 nf\_defrag\_ipv4 ip\_set nf\_tables rfkill nfnetlink vfat fat irdma ib\_uverbs ib\_core intel\_rapl\_msr intel\_rapl\_common sb\_edac x86\_pkg\_temp\_thermal intel\_powerclamp coretem
---truncated---

## Affected and fixed versions

- Linux: \>= 209f2f9c718138ddbd8586e5a1463bd079a17241, \< b305c7e9363f5a174ee08ac5f056e4b209f0325b; \>= 209f2f9c718138ddbd8586e5a1463bd079a17241, \< 541a1af451b0cb3779e915d48d08efb17915207b (cvelist)
- Linux: 5.17 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-50054.md
Affected: Linux >= 209f2f9c718138ddbd8586e5a1463bd079a17241, < b305c7e9363f5a174ee08ac5f056e4b209f0325b; >= 209f2f9c718138ddbd8586e5a1463bd079a17241, < 541a1af451b0cb3779e915d48d08efb17915207b; Linux 5.17
Fixed in: Linux 541a1af451b0cb3779e915d48d08efb17915207b

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

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

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

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

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

Linux \>= 209f2f9c718138ddbd8586e5a1463bd079a17241, \< b305c7e9363f5a174ee08ac5f056e4b209f0325b; \>= 209f2f9c718138ddbd8586e5a1463bd079a17241, \< 541a1af451b0cb3779e915d48d08efb17915207b; Linux 5.17.

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

Yes. Fixed in Linux 541a1af451b0cb3779e915d48d08efb17915207b. Upgrade Linux to 541a1af451b0cb3779e915d48d08efb17915207b or later.

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

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/b305c7e9363f5a174ee08ac5f056e4b209f0325b>
- patch: <https://git.kernel.org/stable/c/541a1af451b0cb3779e915d48d08efb17915207b>

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

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