CVE-2025-38528

Description

A flaw was found in the Linux kernel's Berkeley Packet Filter (BPF) bprintf helpers. A highly privileged local user could exploit this by providing a specially crafted format string, such as "%p%", to the bpf_trace_printk function. This improper handling of the format string by the bpf_bprintf_prepare function can lead to a kernel warning at runtime, resulting in a denial of service (DoS).

Statement

A low impact denial of service flaw was found in the Linux kernel's Berkeley Packet Filter (BPF) bprintf helpers. A highly privileged local user could pass a specially crafted format string, such as "%p%", to the bpf_trace_printk() helper; the bpf_bprintf_prepare() function improperly skips over the trailing percent sign detected as punctuation while processing %p, so the format string is not rejected and a kernel WARNING is triggered at runtime, resulting in a denial of service of the affected system. There is no impact to confidentiality or integrity.

The Red Hat Enterprise Linux 6 and 7 kernels are not affected because the vulnerable code is not present in those releases. For affected Red Hat Enterprise Linux 8, 9, and 10 (kernel and kernel-rt) and Red Hat In-Vehicle OS 1 releases, the fix has been deferred to a future update because the flaw is rated low impact: exploitation requires highly privileged local access, and the residual risk is limited to a runtime kernel warning causing local denial of service.

The CVEORG record scores this flaw 7.1 (IMPORTANT) with high confidentiality impact; Red Hat rates it LOW severity (CVSS 4.4, AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H) because the available technical evidence shows only a runtime kernel warning and availability impact, with no confidentiality or integrity impact.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score4.45.57.1
Attack VectorLocalLocalLocal
Attack ComplexityLowLowLow
Privileges RequiredHighLowLow
User InteractionNoneNoneNone
ScopeUnchangedUnchangedUnchanged
ConfidentialityNoneNoneHigh
Integrity ImpactNoneNoneNone
Availability ImpactHighHighHigh

Vector

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

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

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

Understanding the Weakness (CWE)

Confidentiality

Technical Impact: Read Memory

Format string problems allow for information disclosure which can severely simplify exploitation of the program.

Integrity,Confidentiality,Availability

Technical Impact: Modify Memory; Execute Unauthorized Code or Commands

Format string problems can result in the execution of arbitrary code, buffer overflows, denial of service, or incorrect data representation.

Frequently Asked Questions

Want to get errata notifications? Sign up here.