CVE-2025-38528
bpf: Reject %p% format string in bprintf-like helpers
Reported by linux · Published August 16, 2025
In the Linux kernel, the following vulnerability has been resolved: bpf: Reject %p% format string in bprintf-like helpers static const char fmt[] = "%p%"; bpf_trace_printk(fmt, sizeof(fmt)); The above BPF program isn't rejected and causes a kernel warning at runtime: Please remove unsupported %\x00 in format string WARNING: CPU: 1 PID: 7244 at lib/vsprintf.c:2680 format_decode+0x49c/0x5d0 This happens because bpf_bprintf_prepare skips over the second %, detected as punctuation, while processing %p. This patch fixes it by not skipping over punctuation. %\x00 is then processed in the next iteration and rejected.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-livepatch-6.12.40-63.114 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel-modules-extra | Amazon Linux | 1:6.1.147-172.266.amzn2023 |
| python3-perf | Amazon Linux | 1:6.1.147-172.266.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
| kernel-headers | Amazon Linux | 1:6.1.147-172.266.amzn2023 |
| kernel-livepatch-6.1.147-172.266 | Amazon Linux | 1:1.0-0.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 48cac3f4a96ddf08df8e53809ed066de0dc93915, 48cac3f4a96ddf08df8e53809ed066de0dc93915, 48cac3f4a96ddf08df8e53809ed066de0dc93915 |
| Linux | Linux | 5.13, 0, 5.15.190 |
| amazon:2023 | kernel-livepatch-6.12.40-63.114 | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-livepatch-6.1.147-172.266 | 0 |
| linux | linux_kernel | 5.13, 5.13, 5.13 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| Linux | Linux | 5.13, 48cac3f4a96ddf08df8e53809ed066de0dc93915, 48cac3f4a96ddf08df8e53809ed066de0dc93915 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-devel | 0 |
…and 12 more
Timeline
- Aug 8, 2025 CVE Published
- Aug 16, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (16 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (155 in total, the first dated here)
- Mar 29, 2026 Security Advisory (163 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38528
vulnetix vdb fixes CVE-2025-38528
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38528/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart