Skip to main content

Linux Kernel EUVDEUVD-2026-24762

| CVE-2026-31437 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-04-22 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. Recon
    Gain local low-privilege shell access
  2. Delivery
    Access or trigger mount of 9P filesystem
  3. Exploit
    Initiate unbuffered write to 9P mount
  4. Install
    Induce get_user_pages() -EFAULT failure
  5. C2
    Kernel enters netfs retry path
  6. Execute
    NULL stream->prepare_write dereference at direct_write.c:189
  7. Impact
    Kernel panic (denial of service)

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

Local access with at minimum low-privilege credentials is required (CVSS AV:L/PR:L - unauthenticated remote exploitation is not possible). The system must have a network filesystem mounted that uses the Linux netfs layer but does not implement the prepare_write stream operation; 9P (Plan 9 Filesystem Protocol, kernel module v9fs) is the explicitly named example. The vulnerability fires only when get_user_pages() fails with -EFAULT during an unbuffered write, causing NETFS_SREQ_NEED_RETRY to be set on the subrequest. Systems that do not mount 9P or equivalent filesystems are not exploitable regardless of kernel version. Exploitation is further limited by the requirement for local shell access - this is not exploitable via network services or web-facing attack surfaces.

Impact

The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, score 5.5) restricts the attack surface to local authenticated users - remote exploitation is not possible. The impact is confined to availability (kernel crash); there is no confidentiality or integrity impact, limiting the blast radius. Low attack complexity (AC:L) means the crash is reliably reproducible once the prerequisite conditions are met, but those conditions - local access plus a mounted 9P or similarly incomplete-operation filesystem - substantially narrow the exposed population. The EPSS score of 0.02% (4th percentile) is consistent with the local-only vector and the specificity of the trigger condition. The vulnerability is absent from CISA KEV and no POC has been observed. Real-world priority is low for general-purpose systems; it is elevated only in multi-tenant environments where unprivileged users have local shell access and can interact with 9P mounts (e.g., container runtimes, virtualization stacks using Plan 9 for host-guest file sharing).

Exploit ScenarioDerived

An attacker with a local shell account on a system running a 9P-mounted filesystem (common in QEMU/KVM VMs using virtio-9p for host-guest sharing) initiates a write to a file on that mount while simultaneously applying memory pressure or using mmap tricks to cause get_user_pages() to return -EFAULT. The netfs retry path fires, calls the NULL stream->prepare_write pointer, and the kernel panics with a NULL pointer dereference - crashing the VM or host process. No public exploit code has been identified at time of analysis.

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

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

Alert me

AnalysisAIv1 – May 20, 2026

NULL pointer dereference in the Linux kernel's netfs subsystem crashes the kernel when retrying unbuffered writes on filesystems that omit the prepare_write stream operation, such as 9P. A local low-privilege user who can write to such a mounted filesystem and induce a get_user_pages() -EFAULT failure can trigger a kernel panic, causing a denial of service. No public exploit has been identified at time of analysis, and the EPSS score of 0.02% (4th percentile) reflects negligible observed exploitation probability; the vulnerability is not listed in CISA KEV.

RemediationAI

Vendor-released patch is available via the upstream Linux stable tree. Apply the fix commits: 7a5482f5ce891decbf36f2e6fab1e9fc4a76a684 (https://git.kernel.org/stable/c/7a5482f5ce891decbf36f2e6fab1e9fc4a76a684), a4d1b4ba9754bac3efebd06f583a44a7af52c0ab (https://git.kernel.org/stable/c/a4d1b4ba9754bac3efebd06f583a44a7af52c0ab), and e9075e420a1eb3b52c60f3b95893a55e77419ce8 (https://git.kernel.org/stable/c/e9075e420a1eb3b52c60f3b95893a55e77419ce8), or upgrade to Linux 6.18.21 or Linux 6.19.11 or later. As a compensating control where patching is not immediately feasible, unmounting or prohibiting 9P (v9fs) filesystem mounts eliminates the specific trigger path - this can be enforced via mount policy or by removing the v9fs kernel module (modprobe -r 9p) on systems that do not require it, with the trade-off of breaking host-guest file sharing in QEMU/KVM or WSL2 environments that depend on virtio-9p or Plan 9. Kernel updates require a system reboot.

Affected VersionsENISA

Linux 6.18.17 <6.18.21
Linux a0b4c7a49137ed21279f354eb59f49ddae8dffc2 <e9075e420a1eb3b52c60f3b95893a55e77419ce8
Linux 72d08d2839649d1c5efbe375751f4473fa4486af <a4d1b4ba9754bac3efebd06f583a44a7af52c0ab
Linux 0c29f6d63122a0168d67cb8ecde5b4cf7fe4acb0 <7a5482f5ce891decbf36f2e6fab1e9fc4a76a684
Linux 6.19.7 <6.19.11

Affected Packages

euvd linux fix: 6.18.21, 6.19.11

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

The affected code lives in the Linux kernel's netfs layer at fs/netfs/direct_write.c:189. The netfs subsystem provides a unified I/O framework for network-attached filesystems (e.g., NFS, 9P, Ceph). Filesystems are not required to implement the prepare_write stream operation; the 9P filesystem is explicitly cited as leaving stream->prepare_write NULL. In the retry path of netfs_unbuffered_write(), when a subrequest is flagged NETFS_SREQ_NEED_RETRY after a get_user_pages() -EFAULT, the code unconditionally calls stream->prepare_write() without a NULL guard - a pattern already correctly guarded in write_retry.c but missing here. The root cause class is CWE-476 (NULL Pointer Dereference). Affected CPE: cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*.

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
SUSE MEDIUM
Red Hat 5.5 MEDIUM

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

Lifecycle Timeline

4
CVSS changed
May 19, 2026 - 22:22 NVD
5.5 (MEDIUM)
Patch released
Apr 23, 2026 - 16:17 nvd
Patch available
Patch available
Apr 22, 2026 - 16:02 EUVD
CVE Published
Apr 22, 2026 - 14:16 nvd
N/A

DescriptionCVE.org

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

netfs: Fix NULL pointer dereference in netfs_unbuffered_write() on retry

When a write subrequest is marked NETFS_SREQ_NEED_RETRY, the retry path in netfs_unbuffered_write() unconditionally calls stream->prepare_write() without checking if it is NULL.

Filesystems such as 9P do not set the prepare_write operation, so stream->prepare_write remains NULL. When get_user_pages() fails with -EFAULT and the subrequest is flagged for retry, this results in a NULL pointer dereference at fs/netfs/direct_write.c:189.

Fix this by mirroring the pattern already used in write_retry.c: if stream->prepare_write is NULL, skip renegotiation and directly reissue the subrequest via netfs_reissue_write(), which handles iterator reset, IN_PROGRESS flag, stats update and reissue internally.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Data Quality
5 sources
Confidence: Medium

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.0%
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.

Related Vulnerabilities in Linux Kernel netfs Read Retry Fixes

View all 2

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

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