CVE-2025-22065
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability in the Linux kernel (CVE-2025-22065) was discovered and resolved on April 16, 2025. The issue involves a NULL pointer dereference in the idpf driver when SRIOV is enabled, occurring during system reboot. The vulnerability stems from the idpf_remove() function being called twice: first via idpf_shutdown() and then again through sriov_disable() (NVD, Red Hat).

Technical details

The vulnerability occurs when SRIOV is enabled and the idpf driver encounters a double call to idpf_remove(). The first call happens through idpf_shutdown() and the second through sriov_disable(). This sequence can result in the adapter being NULL from the first call to idpf_remove(), leading to a NULL pointer dereference. The issue can be triggered by executing 'echo 1 > /sys/class/net//device/sriov_numvfs' followed by a reboot. The vulnerability has been assigned a CVSS v3.1 base score of 7.0 (AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H) (Red Hat).

Impact

The vulnerability can lead to a kernel NULL pointer dereference, potentially causing system crashes or denial of service conditions when exploited. This affects systems running the Linux kernel with SRIOV enabled and the idpf driver in use (NVD).

Mitigation and workarounds

The fix involves replacing the direct idpf_remove() call in idpf_shutdown() with idpf_vc_core_deinit() and idpf_deinit_dflt_mbx(). These functions perform the cleanup tasks such as stopping the init task, freeing IRQs, destroying vports, and freeing the mailbox. This solution avoids the problematic calls to sriov_disable() and related cleanup operations that aren't necessary during shutdown (NVD).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-71142N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-devel-matched
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • linux-gcp
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-core
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-uki-virt
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-modules-extra
NoYesJan 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management