Skip to main content

Linux Kernel CVE-2025-38489

MEDIUM
NULL Pointer Dereference (CWE-476)
2025-07-28 416baaa9-dc9f-4396-8d5f-8c081fb06d67
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Local access with BPF load privileges on s390
  2. Delivery
    Load and detach BPF program (e.g. perf on_switch)
  3. Exploit
    bpf_arch_text_poke() called with new_addr==NULL
  4. Execution
    NULL pointer dereference in kernel
  5. Impact
    Kernel panic / system DoS

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the s390 (IBM Z / s390x) architecture specifically - the flaw is in the s390 BPF JIT's bpf_arch_text_poke() and does not exist on other architectures. The attacker must be local (AV:L) and hold privileges sufficient to load/attach and detach BPF programs (PR:L, typically CAP_BPF or CAP_SYS_ADMIN, or a configuration permitting such BPF activity such as perf-driven program switching); the panic path is reached when bpf_arch_text_poke() is invoked with new_addr == NULL. Limiting factors that reduce realistic risk: no remote vector, no unauthenticated path, it affects only s390 deployments, it requires BPF-loading capability rather than being reachable by any ordinary user, and the trigger is described as intermittent/non-deterministic rather than reliably on demand. Impact is confined to availability (kernel panic); there is no confidentiality or integrity effect.

Impact

All available signals point to a genuinely low operational priority, and they are mutually consistent rather than conflicting. The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, base 5.5 Medium) describes a local, low-privilege, availability-only impact with no confidentiality or integrity loss - i.e. a denial-of-service via kernel panic, consistent with the CWE-476 NULL pointer dereference and the description's 'intermittent kernel panics'. EPSS is very low at 0.17% (6th percentile), there is NO CISA KEV listing, and no public exploit identified at time of analysis. The vuln.today decision label is 'this_month', the second-lowest routine tier, which agrees with the low-urgency picture. A critical scoping note the raw CVSS does not convey: this is an s390/bpf defect, so the vulnerable code path exists ONLY on IBM Z (s390x) builds of the Linux kernel - not on the far more common x86_64/ARM deployments. The description also frames this as a regression (commit 7ded842b356d accidentally reverted an earlier fix, c730fce7c70c), meaning it reads more as a reliability/stability bug surfaced by legitimate workloads such as perf's on_switch() prog than as an attacker-engineered exploit primitive. Net: a real fix worth applying on s390 systems during normal patch cycles, but not a drop-everything emergency.

Exploit ScenarioDerived

On an s390x Linux host, a local actor able to load and detach BPF programs (for example through perf event handling) triggers bpf_arch_text_poke() with new_addr == NULL, hitting the restored-then-removed NULL check and dereferencing a NULL pointer in kernel context. The result is an intermittent kernel panic and system crash (denial of service) with no disclosure or data modification. No public exploit code exists; the condition is described as surfacing during normal perf activity rather than via a weaponized trigger.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 05, 2026

Intermittent kernel panics on s390 (IBM Z / s390x) systems can be triggered when the s390 BPF JIT's bpf_arch_text_poke() is invoked with new_addr == NULL, a NULL-pointer dereference condition (CWE-476) that a local user with privileges to load, attach and detach BPF programs can reach - for example through perf's on_switch() program switching. The bug exists only on the s390 architecture, was introduced when commit 7ded842b356d ("s390/bpf: Fix bpf_plt pointer arithmetic") silently dropped the guard added by c730fce7c70c, and is now restored by the referenced stable commits. Impact is availability only (kernel panic, CVSS 5.5 AV:L/AC:L/PR:L/UI:N/C:N/I:N/A:H), exploitation requires local BPF-loading capability and the trigger is described as intermittent rather than reliably on demand; no public exploit has been identified at time of analysis and the EPSS score is 0.17% (6th percentile).

RemediationAI

Apply the upstream fix: the s390/bpf correction is published as stable-tree commits 0c7b20f7785cfdd59403333612c90b458b12307c, 6a5abf8cf182f577c7ae6c62f14debc9754ec986, a4f9c7846b1ac428921ce9676b1b8c80ed60093c and d5629d1af0600f8cc7c9245e8d832a66358ef889 (https://git.kernel.org/stable/c/0c7b20f7785cfdd59403333612c90b458b12307c and the sibling links), which restore the new_addr == NULL handling removed by commit 7ded842b356d; the supplied data confirms patch availability from the vendor but does not state the exact released kernel version numbers, so match the commit to the stable branch your s390 kernel derives from and confirm with your distribution's kernel advisory before rolling out. Because a complete fix requires that kernel update, exposures in the interim can only be narrowed by the prerequisite the assessment identifies: the panic path needs a local user able to load, attach and detach BPF programs (typically CAP_BPF or CAP_SYS_ADMIN, or a configuration permitting perf-driven program switching), so constraining who holds those capabilities and avoiding unnecessary perf BPF program switching on s390 hosts reduces the reachable surface - with the trade-off of limiting legitimate BPF observability and tracing workloads, and without eliminating the defect. The decision label for this entry is this_month, consistent with the low EPSS score (0.17%, 6th percentile), absence from KEV and lack of identified public exploit code.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The Linux kernel's BPF JIT for s390 emits and rewrites machine code at runtime; bpf_arch_text_poke() is the architecture hook used to patch a call/jump site, and it is also used when a poke is meant to remove an existing patch by passing new_addr NULL. In that code path the earlier fix commit c730fce7c70c ("s390/bpf: Fix bpf_arch_text_poke() with new_addr NULL") supplied a critical piece of handling for the NULL-address case, but commit 7ded842b356d ("s390/bpf: Fix bpf_plt pointer arithmetic") removed it as a side effect, reintroducing a NULL pointer dereference class of defect (CWE-476) and the associated intermittent kernel panics during perf-driven program switching. The CPE data covers the linux_kernel operating system entries including 6.9 and its release candidates 6.9-rc2 through 6.9-rc6, reflecting the window in which the regression was present on s390 builds. Because the defect lives in architecture-specific JIT code, only s390/s390x kernels are affected; x86, arm64 and other architectures are outside the affected code path. The CVSS metrics describe severity rather than the precise triggering sequence, and the supplied sources do not detail the exact instruction-level conditions beyond the new_addr == NULL invocation.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.5 MEDIUM

Local s390 trigger (AV:L) needing BPF-load privilege (PR:L), low complexity, causing only a kernel-panic availability loss (A:H; C:N/I:N).

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Red Hat 5.5 LOW

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

DescriptionNVD

In the Linux kernel, the following vulnerability has been resolved:

s390/bpf: Fix bpf_arch_text_poke() with new_addr == NULL again

Commit 7ded842b356d ("s390/bpf: Fix bpf_plt pointer arithmetic") has accidentally removed the critical piece of commit c730fce7c70c ("s390/bpf: Fix bpf_arch_text_poke() with new_addr == NULL"), causing intermittent kernel panics in e.g. perf's on_switch() prog to reappear.

Restore the fix and add a comment.

Threat Intelligence Overview

EPSS Score
0.2%
Top 94% exploitable
Prevalence
Low
Linux is ubiquitous but this defect affects only s390 (IBM Z) kernel builds
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

28
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)NVD

cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.9:rc7:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.16:rc6:*:*:*:*:*:*

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy