VDB

CVE-2025-38528

CVE-2025-38528 PUBLISHED CVSS 7.1 HIGH

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.

PackageEcosystemFixed in
kernel-livepatch-6.12.40-63.114Amazon Linux1:1.0-0.amzn2023
kernel-modules-extraAmazon Linux1:6.1.147-172.266.amzn2023
python3-perfAmazon Linux1:6.1.147-172.266.amzn2023
python3-perf6.12Amazon Linux1:6.12.40-63.114.amzn2023
kernel-headersAmazon Linux1:6.1.147-172.266.amzn2023
kernel-livepatch-6.1.147-172.266Amazon Linux1:1.0-0.amzn2023

Risk scores

CVSS 3.1
7.1
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Affected products

VendorProductVersions
LinuxLinux48cac3f4a96ddf08df8e53809ed066de0dc93915, 48cac3f4a96ddf08df8e53809ed066de0dc93915, 48cac3f4a96ddf08df8e53809ed066de0dc93915
LinuxLinux5.13, 0, 5.15.190
amazon:2023kernel-livepatch-6.12.40-63.1140
amazon:2023kernel-modules-extra0
amazon:2023python3-perf0
amazon:2023python3-perf6.120
amazon:2023kernel-headers0
amazon:2023kernel-livepatch-6.1.147-172.2660
linuxlinux_kernel5.13, 5.13, 5.13
amazon:2023kernel-tools-devel0
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel-libbpf-devel0
amazon:2023bpftool6.120
LinuxLinux5.13, 48cac3f4a96ddf08df8e53809ed066de0dc93915, 48cac3f4a96ddf08df8e53809ed066de0dc93915
amazon:2023kernel6.12-headers0
amazon:2023kernel6.12-libbpf0
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel6.120
amazon:2023perf0
amazon:2023kernel-devel0

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›