CVE-2024-57982
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-57982 affects the Linux kernel and involves an out-of-bounds read vulnerability in the xfrm state lookup functionality. The issue was discovered and disclosed in February 2025, affecting Linux kernel versions from 4.9 through 6.13.2. The vulnerability occurs when lookup and resize operations can run in parallel in the xfrm state component (NVD).

Technical details

The vulnerability stems from a race condition where the xfrm_state_hash_generation seqlock ensures a retry, but hash functions can observe a hmask value that is too large for the new hlist array. During rehash operations, the code executes 'rcu_assign_pointer(net->xfrm.state_bydst, ndst)' followed by updating 'net->xfrm.state_hmask = nhashmask', while state lookup performs hash calculations and list traversal that could lead to out-of-bounds reads. The issue has a CVSS v3.1 Base Score of 7.1 (HIGH) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H (NVD).

Impact

The vulnerability allows an attacker to perform out-of-bounds read operations during xfrm state lookups, potentially leading to information disclosure and system crashes. The high CVSS score indicates significant potential impact on system confidentiality and availability (NVD).

Mitigation and workarounds

The vulnerability has been patched by implementing a fix that prefetches state_hmask and associated pointers. The xfrm_state_hash_generation seqlock retry ensures pointer and hmask consistency. The patch also adds lockdep assertions to document that certain helpers are only safe for insert operations. The fix has been incorporated into kernel versions after 6.13.2 (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-64k-core
NoNoJan 14, 2026
CVE-2025-71137N/AN/A
  • Linux KernelLinux Kernel
  • kernel-64k
NoYesJan 14, 2026
CVE-2025-71135N/AN/A
  • Linux KernelLinux Kernel
  • rv
NoNoJan 14, 2026
CVE-2025-71134N/AN/A
  • Linux KernelLinux Kernel
  • kernel-zfcpdump
NoNoJan 14, 2026
CVE-2025-71133N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-debug
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