# CVE-2026-98591: bpf: Fix bounds check for skb-backed dynptrs

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 10% of CVEs (2026-12-02)
- Published: 2026-10-18T15:19:03.567Z
- Modified: 2026-10-19T10:19:20.220Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 6f5a630d7c57cd79b1f526a95e757311e32d41e5 before 1b923538598be768e9f2f258a77a083d00e0c78b; from 6f5a630d7c57cd79b1f526a95e757311e32d41e5 before 37877a24758068742fef687a7cf5362360dde1d1; from 6f5a630d7c57cd79b1f526a95e757311e32d41e5 before 1196903a27cac5c929c7517e987a8d159f20c5e5; from 6f5a630d7c57cd79b1f526a95e757311e32d41e5 before 39ffceaddb10753eac12785dba6ac0673860b4ac; from 6f5a630d7c57cd79b1f526a95e757311e32d41e5 before ed6eec97b534979dcf28b40c389cee57bd6561d4; 6.6 (not affected: before 6.6; from 6.6.158 up to 6.6.*; from 6.12.112 up to 6.12.*; from 6.18.55 up to 6.18.*; from 7.2.9 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/1b923538598be768e9f2f258a77a083d00e0c78b>
- <https://git.kernel.org/stable/c/37877a24758068742fef687a7cf5362360dde1d1>
- <https://git.kernel.org/stable/c/1196903a27cac5c929c7517e987a8d159f20c5e5>
- <https://git.kernel.org/stable/c/39ffceaddb10753eac12785dba6ac0673860b4ac>
- <https://git.kernel.org/stable/c/ed6eec97b534979dcf28b40c389cee57bd6561d4>

## Sources

- CVE List: [CVE-2026-98591](https://www.cve.org/CVERecord?id=CVE-2026-98591), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98591](https://nvd.nist.gov/vuln/detail/CVE-2026-98591), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98591 · Whole record: https://cve.day/CVE-2026-98591.json · Rebuilt by cve.day 2026-11-25T22:59:45.238Z
