CVE-2026-31437
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
22/04/2026
Last modified:
19/05/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
netfs: Fix NULL pointer dereference in netfs_unbuffered_write() on retry<br />
<br />
When a write subrequest is marked NETFS_SREQ_NEED_RETRY, the retry path<br />
in netfs_unbuffered_write() unconditionally calls stream->prepare_write()<br />
without checking if it is NULL.<br />
<br />
Filesystems such as 9P do not set the prepare_write operation, so<br />
stream->prepare_write remains NULL. When get_user_pages() fails with<br />
-EFAULT and the subrequest is flagged for retry, this results in a NULL<br />
pointer dereference at fs/netfs/direct_write.c:189.<br />
<br />
Fix this by mirroring the pattern already used in write_retry.c: if<br />
stream->prepare_write is NULL, skip renegotiation and directly reissue<br />
the subrequest via netfs_reissue_write(), which handles iterator reset,<br />
IN_PROGRESS flag, stats update and reissue internally.
Impact
Base Score 3.x
5.50
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.18.17 (including) | 6.18.21 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.19.7 (including) | 6.19.11 (excluding) |
To consult the complete list of CPE names with products and versions, see this page



