Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-57982

7.8 · HIGH
Published Feb 27, 2025 linux CWE-125 EPSS 0.24% (15th pctl)

Overview

CVE-2024-57982 is a high-severity vulnerability affecting linux linux_kernel. It was published on February 27, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical Description

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

xfrm: state: fix out-of-bounds read during lookup

lookup and resize can run in parallel.

The xfrm_state_hash_generation seqlock ensures a retry, but the hash

functions can observe a hmask value that is too large for the new hlist

array.

rehash does:

rcu_assign_pointer(net->xfrm.state_bydst, ndst) [..]

net->xfrm.state_hmask = nhashmask;

While state lookup does:

h = xfrm_dst_hash(net, daddr, saddr, tmpl->reqid, encap_family);

hlist_for_each_entry_rcu(x, net->xfrm.state_bydst + h, bydst) {

This is only safe in case the update to state_bydst is larger than

net->xfrm.xfrm_state_hmask (or if the lookup function gets

serialized via state spinlock again).

Fix this by prefetching state_hmask and the associated pointers.

The xfrm_state_hash_generation seqlock retry will ensure that the pointer

and the hmask will be consistent.

The existing helpers, like xfrm_dst_hash(), are now unsafe for RCU side,

add lockdep as

Remediation

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 4.9, < 6.12.13 Affected

Frequently Asked Questions

What is CVE-2024-57982?

CVE-2024-57982 is a high-severity vulnerability affecting linux linux_kernel. It was published on February 27, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-57982?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-57982?

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-57982?

CyberStrike's AI-powered security agents can automatically detect CVE-2024-57982 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.