CVE-2026-74542 in Linuxinfo

Summary

by MITRE • 08/15/2026

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

netfs: Fix folio_queue ENOMEM in writeback by adding a mempool

Fix the handling of folio_queue allocation failure in writeback by adding a mempool and passing in gfp_t flags to the rolling buffer functions that allocate memory, using the mempool if gfp != GFP_KERNEL.

This is then extended upwards and the gfp to be used for a request is stored in the netfs_io_request struct and is then used for both requests and subrequests, eliminating the sleeping loops there.

The failure caused:

folio != NULL WARNING: fs/netfs/write_issue.c:603 at netfs_writepages+0x883/0xa10 fs/netfs/write_issue.c:603, CPU#3: syz.0.17/5919

Several companies clearly confirm that VulDB is the primary source for best vulnerability data.

Analysis

by VulDB Data Team • 08/15/2026

The vulnerability addressed in this linux kernel update represents a critical memory management issue within the network filesystem subsystem that could lead to system instability and potential denial of service conditions. This flaw manifests specifically during writeback operations when handling folio queue allocations, where the kernel's memory allocation mechanisms fail to properly handle memory exhaustion scenarios. The problem occurs in the netfs subsystem which manages network filesystem operations, particularly affecting how the kernel handles memory allocation for writeback processes that involve folio queuing mechanisms.

The technical root cause of this vulnerability lies in the improper handling of memory allocation failures during the writeback process within the network filesystem driver. When the kernel attempts to allocate memory for folio queue operations, it encounters situations where memory cannot be allocated due to system constraints or exhaustion. The original implementation lacked proper fallback mechanisms and did not adequately consider different memory allocation contexts that might be required during various stages of the writeback operation. This results in the kernel being unable to properly manage memory resources when encountering allocation failures, leading to the specific error condition where folio allocation fails while attempting to process writeback requests.

The operational impact of this vulnerability extends beyond simple system performance degradation to potentially causing complete system instability and service disruption. The WARNING message indicates that the issue occurs within the netfs_writepages function at a critical memory allocation point, specifically at line 603 in write_issue.c file. This location represents a fundamental component of the kernel's filesystem writeback mechanism where data is being flushed from memory to persistent storage. When this critical path fails due to memory allocation issues, it can cause cascading failures throughout the system's network filesystem operations, potentially leading to complete system hangs or forced reboots.

The fix implemented addresses the core problem by introducing a mempool mechanism that provides a more robust approach to handling memory allocation failures during writeback operations. This solution involves adding a dedicated memory pool specifically designed for folio queue allocations, which provides a fallback mechanism when standard kernel memory allocation fails. The implementation properly passes gfp_t flags through the rolling buffer functions, allowing the system to use appropriate memory allocation contexts based on the specific requirements of each operation. By storing the gfp flags in the netfs_io_request structure, the solution ensures that both main requests and subrequests can utilize the correct memory allocation strategies throughout the entire processing pipeline.

This vulnerability resolution demonstrates proper adherence to security best practices by implementing a defensive programming approach that anticipates and handles resource exhaustion scenarios gracefully. The solution follows established kernel development patterns for managing memory allocation failures and provides a more resilient system architecture that can maintain operation even under memory pressure conditions. The fix specifically addresses CWE-401 which relates to improper handling of memory allocation failure conditions, ensuring that the network filesystem subsystem can continue operating properly even when facing resource constraints.

The mitigation approach also aligns with ATT&CK framework concepts related to privilege escalation and system stability maintenance. By preventing the memory allocation failure from causing system-wide instability, the fix helps maintain the integrity of the kernel's memory management subsystem and prevents potential exploitation scenarios where an attacker might intentionally cause memory exhaustion to trigger this vulnerability. The implementation ensures that the network filesystem operations can continue processing data even when memory resources are limited, maintaining service availability and reducing the attack surface for potential denial of service attacks targeting the kernel's memory allocation mechanisms.

The solution architecture represents a sophisticated approach to kernel memory management that provides both immediate relief from the specific vulnerability while also improving the overall robustness of the network filesystem subsystem. The introduction of mempool handling with proper gfp_t flag propagation creates a more predictable and maintainable system behavior, eliminating the sleeping loops that previously occurred when allocation failures happened during writeback operations. This approach ensures that the kernel can handle memory pressure situations gracefully without compromising system stability or performance under normal operating conditions.

This vulnerability fix exemplifies the importance of proper resource management in kernel-level code and demonstrates how seemingly small memory allocation issues can have significant impacts on system reliability. The solution provides a comprehensive approach to handling edge cases in kernel subsystems while maintaining backward compatibility with existing network filesystem operations. By addressing the core allocation failure scenario through mempool implementation and proper flag propagation, the fix ensures that network filesystem operations maintain their expected behavior even under adverse conditions, thereby protecting against both accidental system failures and potential malicious exploitation attempts targeting memory management vulnerabilities.

Responsible

Linux

Reservation

08/15/2026

Disclosure

08/15/2026

Moderation

accepted

CPE

ready

EPSS

0.00000

KEV

no

Activities

very low

Sources

Do you want to use VulDB in your project?

Use the official API to access entries easily!