CVE-2026-98591

bpf: Fix bounds check for skb-backed dynptrs

Description

In the Linux kernel, the following vulnerability has been resolved: bpf: Fix bounds check for skb-backed dynptrs The skb_pointer_if_linear() function checks whether a memory region of length len starting at offset off into the skb is in the linear area, and returns a pointer to the region if so. The check currently subtracts between skb_headlen and offset of the check, and since skb_headlen is unsigned the subtraction can underflow. This causes the bounds check to spuriously pass and generate an arbitrary pointer of the form *(skb->data + off). The only user of this helper is currently skb-backed BPF dynptr code. Returning the wrong pointer leads to the dynptr erroneously being backed with invalid memory. Ensure the subtraction cannot underflow, and fail the check if it would. Use u64 arithmetic to also prevent overflow when calculating (skb_headlen(skb) - off) since off is unsigned.

Key facts

Published
18 Oct 2026
Last changed
19 Oct 2026
Assigned by
Linux
EPSS
0.201% likely to be exploited in the next 30 days, higher than 10.026% of CVEs (scores for 18 Nov 2026)

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
LinuxLinux
  • Default status: unaffected
  • 6f5a630d7c57cd79b1f526a95e757311e32d41e5 up to but excluding 1b923538598be768e9f2f258a77a083d00e0c78b (affected)
  • 6f5a630d7c57cd79b1f526a95e757311e32d41e5 up to but excluding 37877a24758068742fef687a7cf5362360dde1d1 (affected)
  • 6f5a630d7c57cd79b1f526a95e757311e32d41e5 up to but excluding 1196903a27cac5c929c7517e987a8d159f20c5e5 (affected)
  • 6f5a630d7c57cd79b1f526a95e757311e32d41e5 up to but excluding 39ffceaddb10753eac12785dba6ac0673860b4ac (affected)
  • 6f5a630d7c57cd79b1f526a95e757311e32d41e5 up to but excluding ed6eec97b534979dcf28b40c389cee57bd6561d4 (affected)
LinuxLinux
  • Default status: affected
  • 6.6 (affected)
  • 0 up to but excluding 6.6 (unaffected)
  • 6.6.158 up to and including 6.6.* (unaffected)
  • 6.12.112 up to and including 6.12.* (unaffected)
  • 6.18.55 up to and including 6.18.* (unaffected)
  • 7.2.9 up to and including 7.2.* (unaffected)
  • 7.3 up to and including * (unaffected)

Timeline

  1. 18 Oct 2026 Published

References