Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-57982

HIGH 7.8EPSS 17%

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

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= c2f672fc94642bae96821a393f342edcfa9794a6, < 80610185e9dd2ef7c0a4818a47390a8655b3dc27; >= c2f672fc94642bae96821a393f342edcfa9794a6, < b86dc510308d7a8955f3f47a4fea4bef887653e4; >= c2f672fc94642bae96821a393f342edcfa9794a6, < a16871c7832ea6435abb6e0b58289ae7dcb7e4fc; >= c2f672fc94642bae96821a393f342edcfa9794a6, < dd4c2a174994238d55ab54da2545543d36f4e0d0; >= c2f672fc94642bae96821a393f342edcfa9794a6, < e952837f3ddb0ff726d5b582aa1aad9aa38d024d
  • Anyone running Linux 4.9

Vulnerability facts

Affected
Linux >= c2f672fc94642bae96821a393f342edcfa9794a6, < 80610185e9dd2ef7c0a4818a47390a8655b3dc27; >= c2f672fc94642bae96821a393f342edcfa9794a6, < b86dc510308d7a8955f3f47a4fea4bef887653e4; >= c2f672fc94642bae96821a393f342edcfa9794a6, < a16871c7832ea6435abb6e0b58289ae7dcb7e4fc; >= c2f672fc94642bae96821a393f342edcfa9794a6, < dd4c2a174994238d55ab54da2545543d36f4e0d0; >= c2f672fc94642bae96821a393f342edcfa9794a6, < e952837f3ddb0ff726d5b582aa1aad9aa38d024d; Linux 4.9
Fixed in
Linux 80610185e9dd2ef7c0a4818a47390a8655b3dc27
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.32% chance of exploitation in 30 days (percentile 17, 2026-11-26)
CWE
CWE-125
Published
Modified

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 assertions to document that they are only safe for insert side. xfrm_state_lookup_byaddr() uses the spinlock rather than RCU. AFAICS this is an oversight from back when state lookup was converted to RCU, this lock should be replaced with RCU in a future patch.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= c2f672fc94642bae96821a393f342edcfa9794a6, < 80610185e9dd2ef7c0a4818a47390a8655b3dc27; >= c2f672fc94642bae96821a393f342edcfa9794a6, < b86dc510308d7a8955f3f47a4fea4bef887653e4; >= c2f672fc94642bae96821a393f342edcfa9794a6, < a16871c7832ea6435abb6e0b58289ae7dcb7e4fc; >= c2f672fc94642bae96821a393f342edcfa9794a6, < dd4c2a174994238d55ab54da2545543d36f4e0d0; >= c2f672fc94642bae96821a393f342edcfa9794a6, < e952837f3ddb0ff726d5b582aa1aad9aa38d024d—cvelist
Linux4.9—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-57982. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-57982.md
Affected: Linux >= c2f672fc94642bae96821a393f342edcfa9794a6, < 80610185e9dd2ef7c0a4818a47390a8655b3dc27; >= c2f672fc94642bae96821a393f342edcfa9794a6, < b86dc510308d7a8955f3f47a4fea4bef887653e4; >= c2f672fc94642bae96821a393f342edcfa9794a6, < a16871c7832ea6435abb6e0b58289ae7dcb7e4fc; >= c2f672fc94642bae96821a3…
Fixed in: Linux 80610185e9dd2ef7c0a4818a47390a8655b3dc27

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-57982 being exploited?

There is no confirmed exploitation: CVE-2024-57982 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-57982?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2024-57982?

Linux >= c2f672fc94642bae96821a393f342edcfa9794a6, < 80610185e9dd2ef7c0a4818a47390a8655b3dc27; >= c2f672fc94642bae96821a393f342edcfa9794a6, < b86dc510308d7a8955f3f47a4fea4bef887653e4; >= c2f672fc94642bae96821a393f342edcfa9794a6, < a16871c7832ea6435abb6e0b58289ae7dcb7e4fc; >= c2f672fc94642bae96821a393f342edcfa9794a6, < dd4c2a174994238d55ab54da2545543d36f4e0d0; >= c2f672fc94642bae96821a393f342edcfa9794a6, < e952837f3ddb0ff726d5b582aa1aad9aa38d024d; Linux 4.9.

Is there a fix for CVE-2024-57982?

Yes. Fixed in Linux 80610185e9dd2ef7c0a4818a47390a8655b3dc27. No fix listed yet: follow the vendor advisory.

How do I check if I'm affected by CVE-2024-57982?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors