CVE-2025-21674
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-21674 affects the Linux kernel's IPsec tunnel functionality in the net/mlx5e subsystem. The vulnerability was discovered on January 31, 2025, and involves an inversion dependency warning that occurs when enabling IPsec packet offload in tunnel mode. The issue affects Linux kernel versions from 6.4 up to (excluding) 6.6.74, from 6.7 up to (excluding) 6.12.11, and version 6.13 release candidates (NVD).

Technical details

The vulnerability stems from two specific issues in the kernel's IPsec implementation: 1) In the SA (Security Association) add section, the code should use _bh() variant when marking SA mode, and 2) There is an unnecessary flush_workqueue in the SA delete routine. The issue manifests as a SOFTIRQ-safe to SOFTIRQ-unsafe lock order detection, potentially leading to deadlock scenarios. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Medium) with vector AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H and is classified as CWE-667 (Improper Locking) (NVD, Kernel Patch).

Impact

The vulnerability can cause a kernel panic when attempting to enable IPsec packet offload in tunnel mode in debug kernel configurations. This affects system stability and availability, particularly in environments using IPsec tunneling with the affected network drivers (NVD).

Mitigation and workarounds

The vulnerability has been patched in the Linux kernel. The fix involves modifying the lock handling in the IPsec implementation by using proper _bh() variant for SA mode marking and removing unnecessary flush_workqueue calls. System administrators should update to patched kernel versions that include the fix (Kernel Patch).

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-uki-virt-addons
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • linux-azure-6.14
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • kernel-debug-modules-internal
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k-debug-modules-core
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • linux-ibm-5.15
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