# CVE-2026-74542: netfs: Fix folio_queue ENOMEM in writeback by adding a mempool

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2026-08-15T12:27:52.741Z
- Modified: 2026-10-21T13:19:46.490Z
- Assigned by: Linux

## Description

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

(As written by CVE List.)

## Affected

- Linux Linux: from cd0277ed0c188dd40e7744e89299af7b78831ca4 before b343252d6f536203dd0660f676190dcbf6d2ecdc; from cd0277ed0c188dd40e7744e89299af7b78831ca4 before 15ed8a9b7c63e9171f5139a6aaa1ffb61809861f; from cd0277ed0c188dd40e7744e89299af7b78831ca4 before 3f6d7f8a5416d852648d15a05e895f1195ee8a85; from cd0277ed0c188dd40e7744e89299af7b78831ca4 before 1d78d56c43ef3768183e8370e7367b162700e049; 6.12 (not affected: before 6.12; from 6.12.114 up to 6.12.*; from 6.18.57 up to 6.18.*; from 7.1.8 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/b343252d6f536203dd0660f676190dcbf6d2ecdc>
- <https://git.kernel.org/stable/c/15ed8a9b7c63e9171f5139a6aaa1ffb61809861f>
- <https://git.kernel.org/stable/c/3f6d7f8a5416d852648d15a05e895f1195ee8a85>
- <https://git.kernel.org/stable/c/1d78d56c43ef3768183e8370e7367b162700e049>

## Sources

- CVE List: [CVE-2026-74542](https://www.cve.org/CVERecord?id=CVE-2026-74542), CVE Terms of Use, modified 2026-10-21
- NVD: [CVE-2026-74542](https://nvd.nist.gov/vuln/detail/CVE-2026-74542), Public domain, modified 2026-10-21

---

Page: https://cve.day/CVE-2026-74542 · Whole record: https://cve.day/CVE-2026-74542.json · Rebuilt by cve.day 2026-11-25T22:59:33.250Z
