CVE-2026-98591

bpf: Fix bounds check for skb-backed dynptrs

State
Published
Severity
Not scored
Published
Oct 18, 2026
Updated
Oct 19, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 6f5a630d7c57cd79b1f526a95e757311e32d41e5 to before 1b923538598be768e9f2f258a77a083d00e0c78bAffected
  • 6f5a630d7c57cd79b1f526a95e757311e32d41e5 to before 37877a24758068742fef687a7cf5362360dde1d1Affected
  • 6f5a630d7c57cd79b1f526a95e757311e32d41e5 to before 1196903a27cac5c929c7517e987a8d159f20c5e5Affected
  • 6f5a630d7c57cd79b1f526a95e757311e32d41e5 to before 39ffceaddb10753eac12785dba6ac0673860b4acAffected
  • 6f5a630d7c57cd79b1f526a95e757311e32d41e5 to before ed6eec97b534979dcf28b40c389cee57bd6561d4Affected
LinuxLinux
  • 6.6Affected
  • before 6.6Not affected
  • 6.6.158 through 6.6.*Not affected
  • 6.12.112 through 6.12.*Not affected
  • 6.18.55 through 6.18.*Not affected
  • 7.2.9 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.