CVE-2026-98591

Source
https://cve.org/CVERecord?id=CVE-2026-98591
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98591.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-98591
Downstream
Published
2026-10-18T15:19:03Z
Modified
2026-10-19T02:46:56Z
Summary
bpf: Fix bounds check for skb-backed dynptrs
Details

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.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98591.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
6f5a630d7c57cd79b1f526a95e757311e32d41e5
Fixed
1b923538598be768e9f2f258a77a083d00e0c78b
Fixed
37877a24758068742fef687a7cf5362360dde1d1
Fixed
1196903a27cac5c929c7517e987a8d159f20c5e5
Fixed
39ffceaddb10753eac12785dba6ac0673860b4ac
Fixed
ed6eec97b534979dcf28b40c389cee57bd6561d4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98591.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.6.0
Fixed
6.6.158
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.112
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.55
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.2.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98591.json"