CVE-2025-38528
bpf: Reject %p% format string in bprintf-like helpers
Check your servers for CVE-2025-38528
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38528 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.19%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 9.61% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 15 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 48cac3f4a96ddf08df8e53809ed066de0dc93915, before 97303e541e12f1fea97834ec64b98991e8775f39 affected from 48cac3f4a96ddf08df8e53809ed066de0dc93915, before 61d5fa45ed13e42af14c7e959baba9908b8ee6d4 affected from 48cac3f4a96ddf08df8e53809ed066de0dc93915, before e7be679124bae8cf4fa6e40d7e1661baddfb3289 affected from 48cac3f4a96ddf08df8e53809ed066de0dc93915, before 6952aeace93f8c9ea01849efecac24dd3152c9c9 affected from 48cac3f4a96ddf08df8e53809ed066de0dc93915, before 1c5f5fd47bbda17cb885fe6f03730702cd53d3f8 affected from 48cac3f4a96ddf08df8e53809ed066de0dc93915, before f8242745871f81a3ac37f9f51853d12854fd0b58
Other versions: unaffected
|
| Linux |
affected 5.13 unaffected before 5.13 unaffected from 5.15.190 up to and including 5.15.* unaffected from 6.1.147 up to and including 6.1.* unaffected from 6.6.100 up to and including 6.6.* unaffected from 6.12.40 up to and including 6.12.* unaffected from 6.15.8 up to and including 6.15.* unaffected 6.16 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38528 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38528
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38528
trivy image --scanners vuln IMAGE | grep CVE-2025-38528
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/97303e541e12f1fea97834ec64b98991e8775f39 git.kernel.org
- https://git.kernel.org/stable/c/61d5fa45ed13e42af14c7e959baba9908b8ee6d4 git.kernel.org
- https://git.kernel.org/stable/c/e7be679124bae8cf4fa6e40d7e1661baddfb3289 git.kernel.org
- https://git.kernel.org/stable/c/6952aeace93f8c9ea01849efecac24dd3152c9c9 git.kernel.org
- https://git.kernel.org/stable/c/1c5f5fd47bbda17cb885fe6f03730702cd53d3f8 git.kernel.org
- https://git.kernel.org/stable/c/f8242745871f81a3ac37f9f51853d12854fd0b58 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
Source: the record CVE-2025-38528 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse