CVE-2022-50054: iavf: Fix NULL pointer dereference in iavf_get_link_ksettings

Published Jun 18, 2025
·
Updated

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

iavf: Fix NULL pointer dereference in iavfgetlinkksettings

Fix possible NULL pointer dereference, due to freeing of adapter->vfres in iavfinitgetresources. Previous commit introduced a regression, where receiving IAVFERRADMINQUEUENOWORK from iavfgetvfconfig would free adapter->vfres. However, netdev is still registered, so ethtoolops can be called. Calling iavfgetlinkksettings with no vfres, will result with: [ 9385.242676] BUG: kernel NULL pointer dereference, address: 0000000000000008 [ 9385.242683] #PF: supervisor read access in kernel mode [ 9385.242686] #PF: errorcode(0x0000) - not-present page [ 9385.242690] PGD 0 P4D 0 [ 9385.242696] Oops: 0000 [#1] PREEMPT SMP DEBUGPAGEALLOC 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:iavfgetlinkksettings+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] ethtoolgetsettings+0x71/0x1a0 [ 9385.242814] devethtool+0x426/0x2f40 [ 9385.242823] ? slabpostallochook+0x4f/0x280 [ 9385.242836] ? kmemcachealloctrace+0x15d/0x2f0 [ 9385.242841] ? devethtool+0x59/0x170 [ 9385.242848] devethtool+0xa7/0x170 [ 9385.242856] devioctl+0xc3/0x520 [ 9385.242866] sockdoioctl+0xa0/0xe0 [ 9385.242877] sockioctl+0x22f/0x320 [ 9385.242885] x64sysioctl+0x84/0xc0 [ 9385.242896] dosyscall64+0x3a/0x80 [ 9385.242904] entrySYSCALL64afterhwframe+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 ORIGRAX: 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) xtCHECKSUM xtMASQUERADE xtconntrack iptREJECT nftcompat nfnattftp nftobjref nfconntracktftp bridge stp llc nftfibinet nftfibipv4 nftfibipv6 nftfib nftrejectinet nfrejectipv4 nfrejectipv6 nftreject nftct nftchainnat nfnat nfconntrack nfdefragipv6 nfdefragipv4 ipset nftables rfkill nfnetlink vfat fat irdma ibuverbs ibcore intelraplmsr intelraplcommon sbedac x86pkgtempthermal intelpowerclamp coretem ---truncated---

Affected Software

7 affected componentsFixes available
Linux Linux kernel
Linux Linux kernel>=5.17<5.19.4
Linux Linux kernel=6.0-rc1
debian/linux<6.0.2-1
6.0.2-1
debian/linux<6.0.2-1
6.0.2-1
debian/linux<6.0.2-1
6.0.2-1
debian/linux
6.1.176-16.1.192-26.12.107-16.12.117-17.3.4-17.3.5-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.0.2-1
  2. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 6.1.176-1Fixed in 6.1.192-2Fixed in 6.12.107-1Fixed in 6.12.117-1Fixed in 7.3.4-1Fixed in 7.3.5-1

Event History

Jun 18, 2025
CVE Published
via MITRE·11:01 AM
Data Sourced
via MITRE·11:01 AM
Description
Rejected
via NVD·11:15 AM
Data Sourced
via NVD·11:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·11:15 AM
DescriptionAffected Software
Data Sourced
via Red Hat·12:07 PM
DescriptionSeverityAffected Software
Nov 13, 2025
Rejected
via NVD·06:15 PM

Frequently Asked Questions

1

What is the severity of CVE-2022-50054?

CVE-2022-50054 has been classified as a moderate severity vulnerability.

2

How does CVE-2022-50054 affect the Linux kernel?

CVE-2022-50054 can lead to a NULL pointer dereference in the iavf_get_link_ksettings function within the Linux kernel.

3

What versions of the Linux kernel are affected by CVE-2022-50054?

CVE-2022-50054 affects various versions of the Linux kernel that include the vulnerable code.

4

How do I fix CVE-2022-50054?

To fix CVE-2022-50054, you should upgrade to a patched version of the Linux kernel that addresses this issue.

5

Is there a workaround for CVE-2022-50054?

Currently, there are no known workarounds for CVE-2022-50054; the best course of action is to apply the available patches.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203