CVE-2024-57982

Severity: Important
Published: 2025-02-27

Fix Status by Distribution

Fixed in 15 of 27 tracked Linux releases

Fix evidence last checked: 2026-11-27 21:02 UTC

Get alerted when your releases are fixed
Fixed in:
No fix evidence found:
AlmaLinux 8
Debian 11 (Bullseye)
Oracle Linux 8
Red Hat Enterprise Linux 7 (Extended Lifecycle Support)
Red Hat Enterprise Linux 8
Rocky Linux 8
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 16
Ubuntu 25.04 (Plucky Puffin)
Ubuntu 25.10 (Questing Quokka)
Ubuntu 26.04 LTS (Resolute Raccoon)
Ubuntu 26.10 (Stonking Stingray)
Interested in being alerted when these distributions have fixes? Set up an alert.

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.

Exploit evidence

No public exploit evidence reported by NVD

Last checked: 2026-10-30 13:34 UTC

  • No exploitation evidence · CISA Coordinator (Assessed 2025-10-01 19:31 UTC)

NVD evidence for CVE-2024-57982 is reported, not independently verified by Package Alert. It does not establish exploit reliability or applicability to a particular package or environment.