CVE-2025-38591: bpf: Reject narrower access to pointer ctx fields
Vulnerability summary
CVE-2025-38591 is a medium (CVSS 5.5) vulnerability in linux. EPSS estimates a 0.21% chance of exploitation in the next 30 days, higher than 11.2% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 43 · Related 40Timeline
- 19-08-2025PublishedVulnerability first disclosed.
- 15-10-2026Last modifiedVulnerability information updated.
Description
In the Linux kernel, the following vulnerability has been resolved: bpf: Reject narrower access to pointer ctx fields The following BPF program, simplified from a syzkaller repro, causes a kernel warning: r0 = *(u8 *)(r1 + 169); exit; With pointer field sk being at offset 168 in __sk_buff. This access is detected as a narrower read in bpf_skb_is_valid_access because it doesn't match offsetof(struct __sk_buff, sk). It is therefore allowed and later proceeds to bpf_convert_ctx_access. Note that for the "is_narrower_load" case in the convert_ctx_accesses(), the insn->off is aligned, so the cnt may not be 0 because it matches the offsetof(struct __sk_buff, sk) in the bpf_convert_ctx_access. However, the target_size stays 0 and the verifier errors with a kernel warning: verifier bug: error during ctx access conversion(1) This patch fixes that to return a proper "invalid bpf_context access off=X size=Y" error on the load instruction. The same issue affects multiple other fields in context structures that allow narrow access. Some other non-affected fields (for sk_msg, sk_lookup, and sockopt) were also changed to use bpf_ctx_range_ptr for consistency. Note this syzkaller crash was reported in the "Closes" link below, which used to be about a different bug, fixed in commit fce7bd8e385a ("bpf/verifier: Handle BPF_LOAD_ACQ instructions in insn_def_regno()"). Because syzbot somehow confused the two bugs, the new crash and repro didn't get reported to the mailing list.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.21%
Chance of exploitation in the next 30 days
Percentile
11%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.20% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu147 products
- linuxAll versions (No fix recorded) | < 5.15.0-176.186 | < 6.8.0-117.117
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 5.15.0-1105.112 | < 6.8.0-1055.58
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Chainguard5 products
- linux-aws-6.12< 6.12.76-r0 | < 6.12.69-r0 | < 6.12.67-r0 | < 6.12.60-r4 | < 6.12.68-r1 | < 6.12.74-r1 | < 6.12.78-r0 | < 6.12.74-r0 | < 6.12.72-r1 | < 6.12.68-r0 | < 6.12.62-r2 | < 6.12.71-r0 | < 6.12.62-r1 | < 6.12.77-r2 | < 6.12.80-r0 | < 6.12.72-r0 | < 6.12.70-r0 | < 6.12.65-r0 | < 6.12.63-r0 | < 6.12.62-r0 | < 6.12.65-r1 | < 6.12.77-r1 | < 6.12.77-r0 | < 6.12.66-r0 | < 6.12.65-r2
- linux-azure-6.12< 6.12.62-r0 | < 6.12.74-r1 | < 6.12.65-r4 | < 6.12.72-r0 | < 6.12.77-r0 | < 6.12.78-r0 | < 6.12.63-r0 | < 6.12.65-r1 | < 6.12.68-r0 | < 6.12.76-r0 | < 6.12.65-r3 | < 6.12.77-r1 | < 6.12.66-r0 | < 6.12.60-r4 | < 6.12.62-r2 | < 6.12.62-r1 | < 6.12.65-r2 | < 6.12.60-r3 | < 6.12.67-r0 | < 6.12.69-r0 | < 6.12.80-r0 | < 6.12.71-r0 | < 6.12.77-r2 | < 6.12.74-r0 | < 6.12.70-r0
- linux-gcp-6.12< 6.12.72-r0 | < 6.12.60-r3 | < 6.12.77-r2 | < 6.12.65-r0 | < 6.12.76-r0 | < 6.12.62-r0 | < 6.12.78-r0 | < 6.12.63-r0 | < 6.12.68-r0 | < 6.12.69-r0 | < 6.12.62-r2 | < 6.12.74-r1 | < 6.12.60-r4 | < 6.12.80-r0 | < 6.12.68-r1 | < 6.12.65-r2 | < 6.12.77-r0 | < 6.12.71-r0 | < 6.12.65-r1 | < 6.12.62-r1 | < 6.12.74-r0 | < 6.12.77-r1 | < 6.12.66-r0 | < 6.12.70-r0 | < 6.12.67-r0
- linux-qemu-6.12< 6.12.70-r0 | < 6.12.68-r0 | < 6.12.65-r2 | < 6.12.78-r0 | < 6.12.74-r0 | < 6.12.71-r0 | < 6.12.67-r0 | < 6.12.77-r2 | < 6.12.69-r0 | < 6.12.80-r0 | < 6.12.76-r0 | < 6.12.66-r0 | < 6.12.77-r0 | < 6.12.72-r0 | < 6.12.77-r1 | < 6.12.65-r1 | < 6.12.74-r1
- linux-vmware-6.12< 6.12.66-r0 | < 6.12.74-r1 | < 6.12.71-r0 | < 6.12.76-r0 | < 6.12.70-r0 | < 6.12.67-r0 | < 6.12.65-r1 | < 6.12.72-r0 | < 6.12.74-r0 | < 6.12.65-r2 | < 6.12.77-r1 | < 6.12.77-r0 | < 6.12.68-r1 | < 6.12.69-r0 | < 6.12.80-r0 | < 6.12.68-r0 | < 6.12.77-r2 | < 6.12.78-r0
Linux2 products
- linux≥ f96da09473b52c09125cc9bf7d7d4576ae8229e0, < 7847c4140e06f6e87229faae22cc38525334c156 | ≥ f96da09473b52c09125cc9bf7d7d4576ae8229e0, < feae34c992eb7191862fb1594c704fbbf650fef8 | ≥ f96da09473b52c09125cc9bf7d7d4576ae8229e0, < 33660d44e789edb4f303210c813fc56d56377a90 | ≥ f96da09473b52c09125cc9bf7d7d4576ae8229e0, < e2e9599f3503df7cf3569d2b6c50d5488fb59435 | ≥ f96da09473b52c09125cc9bf7d7d4576ae8229e0, < 058a0da4f6d916a79b693384111bb80a90d73763 | ≥ f96da09473b52c09125cc9bf7d7d4576ae8229e0, < 202900ceeef67458c964c2af6e1427c8e533ea7c | ≥ f96da09473b52c09125cc9bf7d7d4576ae8229e0, < e09299225d5ba3916c91ef70565f7d2187e4cca0 | 4.13
- linux_kernel≥ 4.13, < 6.16.1
Debian1 product
- linux< 6.1.162-1 | < 6.12.69-1 | < 6.16.3-1
4 vendors · 155 products