CVE-2026-31437
Last modified
CVE-2026-31437 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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.. EPSS estimates a 0.12% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 6.18.17, < 6.18.21 |
| Linux | Linux Kernel | >= 6.19.7, < 6.19.11 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-31437?
How severe is CVE-2026-31437?
How do I fix CVE-2026-31437?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-31431In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-31432In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2026-31433In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2026-31434In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31435In the Linux kernel, the following vulnerability has been re…8.8
- CVE-2026-31436In the Linux kernel, the following vulnerability has been re…9.8
- CVE-2026-31438In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31439In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-3144IBM API Connect 12.1.0.0 through 12.1.0.3 uses default crede…9.8
- CVE-2026-31440In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31441In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-31442In the Linux kernel, the following vulnerability has been re…7.8
Are you affected by CVE-2026-31437?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
