CVE-2025-38528

Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
16/08/2025
Last modified:
18/08/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> bpf: Reject %p% format string in bprintf-like helpers<br /> <br /> static const char fmt[] = "%p%";<br /> bpf_trace_printk(fmt, sizeof(fmt));<br /> <br /> The above BPF program isn&amp;#39;t rejected and causes a kernel warning at<br /> runtime:<br /> <br /> Please remove unsupported %\x00 in format string<br /> WARNING: CPU: 1 PID: 7244 at lib/vsprintf.c:2680 format_decode+0x49c/0x5d0<br /> <br /> This happens because bpf_bprintf_prepare skips over the second %,<br /> detected as punctuation, while processing %p. This patch fixes it by<br /> not skipping over punctuation. %\x00 is then processed in the next<br /> iteration and rejected.

Impact