# CVE-2025-38528: bpf: Reject %p% format string in bprintf-like helpers

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.27% (percentile 12, 2026-11-26)
- **Published:** 2025-08-16T11:12:21.667Z
- **Modified:** 2026-10-15T22:18:44.843Z

## Who should check

- Anyone running Linux \>= 48cac3f4a96ddf08df8e53809ed066de0dc93915, \< 97303e541e12f1fea97834ec64b98991e8775f39; \>= 48cac3f4a96ddf08df8e53809ed066de0dc93915, \< 61d5fa45ed13e42af14c7e959baba9908b8ee6d4; \>= 48cac3f4a96ddf08df8e53809ed066de0dc93915, \< e7be679124bae8cf4fa6e40d7e1661baddfb3289; \>= 48cac3f4a96ddf08df8e53809ed066de0dc93915, \< 6952aeace93f8c9ea01849efecac24dd3152c9c9; \>= 48cac3f4a96ddf08df8e53809ed066de0dc93915, \< 1c5f5fd47bbda17cb885fe6f03730702cd53d3f8; \>= 48cac3f4a96ddf08df8e53809ed066de0dc93915, \< f8242745871f81a3ac37f9f51853d12854fd0b58
- Anyone running Linux 5.13

## 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.

## Affected and fixed versions

- Linux: \>= 48cac3f4a96ddf08df8e53809ed066de0dc93915, \< 97303e541e12f1fea97834ec64b98991e8775f39; \>= 48cac3f4a96ddf08df8e53809ed066de0dc93915, \< 61d5fa45ed13e42af14c7e959baba9908b8ee6d4; \>= 48cac3f4a96ddf08df8e53809ed066de0dc93915, \< e7be679124bae8cf4fa6e40d7e1661baddfb3289; \>= 48cac3f4a96ddf08df8e53809ed066de0dc93915, \< 6952aeace93f8c9ea01849efecac24dd3152c9c9; \>= 48cac3f4a96ddf08df8e53809ed066de0dc93915, \< 1c5f5fd47bbda17cb885fe6f03730702cd53d3f8; \>= 48cac3f4a96ddf08df8e53809ed066de0dc93915, \< f8242745871f81a3ac37f9f51853d12854fd0b58 (cvelist)
- Linux: 5.13 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38528. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38528.md
Affected: Linux >= 48cac3f4a96ddf08df8e53809ed066de0dc93915, < 97303e541e12f1fea97834ec64b98991e8775f39; >= 48cac3f4a96ddf08df8e53809ed066de0dc93915, < 61d5fa45ed13e42af14c7e959baba9908b8ee6d4; >= 48cac3f4a96ddf08df8e53809ed066de0dc93915, < e7be679124bae8cf4fa6e40d7e1661baddfb3289; >= 48cac3f4a96ddf08df8e538…
Fixed in: Linux 97303e541e12f1fea97834ec64b98991e8775f39, Linux 61d5fa45ed13e42af14c7e959baba9908b8ee6d4, Linux 6952aeace93f8c9ea01849efecac24dd3152c9c9, Linux 1c5f5fd47bbda17cb885fe6f03730702cd53d3f8

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38528 being exploited?

There is no confirmed exploitation: CVE-2025-38528 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-38528?

High: CVSS 7.1 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38528?

Linux \>= 48cac3f4a96ddf08df8e53809ed066de0dc93915, \< 97303e541e12f1fea97834ec64b98991e8775f39; \>= 48cac3f4a96ddf08df8e53809ed066de0dc93915, \< 61d5fa45ed13e42af14c7e959baba9908b8ee6d4; \>= 48cac3f4a96ddf08df8e53809ed066de0dc93915, \< e7be679124bae8cf4fa6e40d7e1661baddfb3289; \>= 48cac3f4a96ddf08df8e53809ed066de0dc93915, \< 6952aeace93f8c9ea01849efecac24dd3152c9c9; \>= 48cac3f4a96ddf08df8e53809ed066de0dc93915, \< 1c5f5fd47bbda17cb885fe6f03730702cd53d3f8; \>= 48cac3f4a96ddf08df8e53809ed066de0dc93915, \< f8242745871f81a3ac37f9f51853d12854fd0b58; Linux 5.13.

### Is there a fix for CVE-2025-38528?

Yes. Fixed in Linux 97303e541e12f1fea97834ec64b98991e8775f39, Linux 61d5fa45ed13e42af14c7e959baba9908b8ee6d4, Linux 6952aeace93f8c9ea01849efecac24dd3152c9c9, Linux 1c5f5fd47bbda17cb885fe6f03730702cd53d3f8. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38528?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/97303e541e12f1fea97834ec64b98991e8775f39>
- patch: <https://git.kernel.org/stable/c/61d5fa45ed13e42af14c7e959baba9908b8ee6d4>
- patch: <https://git.kernel.org/stable/c/e7be679124bae8cf4fa6e40d7e1661baddfb3289>
- patch: <https://git.kernel.org/stable/c/6952aeace93f8c9ea01849efecac24dd3152c9c9>
- patch: <https://git.kernel.org/stable/c/1c5f5fd47bbda17cb885fe6f03730702cd53d3f8>
- patch: <https://git.kernel.org/stable/c/f8242745871f81a3ac37f9f51853d12854fd0b58>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38528>

HTML: <https://flawdb.com/CVE-2025-38528> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38528>
