{"id":"CVE-2026-74542","state":"PUBLISHED","title":"netfs: Fix folio_queue ENOMEM in writeback by adding a mempool","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfs: Fix folio_queue ENOMEM in writeback by adding a mempool\n\nFix the handling of folio_queue allocation failure in writeback by adding a\nmempool and passing in gfp_t flags to the rolling buffer functions that\nallocate memory, using the mempool if gfp != GFP_KERNEL.\n\nThis is then extended upwards and the gfp to be used for a request is stored\nin the netfs_io_request struct and is then used for both requests and\nsubrequests, eliminating the sleeping loops there.\n\nThe failure caused:\n\n    folio != NULL\n    WARNING: fs/netfs/write_issue.c:603 at netfs_writepages+0x883/0xa10 fs/netfs/write_issue.c:603, CPU#3: syz.0.17/5919","publishedAt":"2026-08-15T12:27:52.741Z","updatedAt":"2026-10-21T12:45:52.776Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"cd0277ed0c188dd40e7744e89299af7b78831ca4","status":"affected","lessThan":"b343252d6f536203dd0660f676190dcbf6d2ecdc","versionType":"git"},{"version":"cd0277ed0c188dd40e7744e89299af7b78831ca4","status":"affected","lessThan":"15ed8a9b7c63e9171f5139a6aaa1ffb61809861f","versionType":"git"},{"version":"cd0277ed0c188dd40e7744e89299af7b78831ca4","status":"affected","lessThan":"3f6d7f8a5416d852648d15a05e895f1195ee8a85","versionType":"git"},{"version":"cd0277ed0c188dd40e7744e89299af7b78831ca4","status":"affected","lessThan":"1d78d56c43ef3768183e8370e7367b162700e049","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/netfs/buffered_read.c","fs/netfs/internal.h","fs/netfs/main.c","fs/netfs/objects.c","fs/netfs/read_pgpriv2.c","fs/netfs/rolling_buffer.c","fs/netfs/write_issue.c","include/linux/netfs.h","include/linux/rolling_buffer.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.8","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/netfs/buffered_read.c","fs/netfs/internal.h","fs/netfs/main.c","fs/netfs/objects.c","fs/netfs/read_pgpriv2.c","fs/netfs/rolling_buffer.c","fs/netfs/write_issue.c","include/linux/netfs.h","include/linux/rolling_buffer.h"]}],"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"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:58.252Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/74xxx/CVE-2026-74542.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-74542","state":"PUBLISHED","datePublished":"2026-08-15T12:27:52.741Z","dateUpdated":"2026-10-21T12:45:52.776Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-15T05:44:03.914Z"},"containers":{"cna":{"title":"netfs: Fix folio_queue ENOMEM in writeback by adding a mempool","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnetfs: Fix folio_queue ENOMEM in writeback by adding a mempool\n\nFix the handling of folio_queue allocation failure in writeback by adding a\nmempool and passing in gfp_t flags to the rolling buffer functions that\nallocate memory, using the mempool if gfp != GFP_KERNEL.\n\nThis is then extended upwards and the gfp to be used for a request is stored\nin the netfs_io_request struct and is then used for both requests and\nsubrequests, eliminating the sleeping loops there.\n\nThe failure caused:\n\n    folio != NULL\n    WARNING: fs/netfs/write_issue.c:603 at netfs_writepages+0x883/0xa10 fs/netfs/write_issue.c:603, CPU#3: syz.0.17/5919"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"cd0277ed0c188dd40e7744e89299af7b78831ca4","status":"affected","lessThan":"b343252d6f536203dd0660f676190dcbf6d2ecdc","versionType":"git"},{"version":"cd0277ed0c188dd40e7744e89299af7b78831ca4","status":"affected","lessThan":"15ed8a9b7c63e9171f5139a6aaa1ffb61809861f","versionType":"git"},{"version":"cd0277ed0c188dd40e7744e89299af7b78831ca4","status":"affected","lessThan":"3f6d7f8a5416d852648d15a05e895f1195ee8a85","versionType":"git"},{"version":"cd0277ed0c188dd40e7744e89299af7b78831ca4","status":"affected","lessThan":"1d78d56c43ef3768183e8370e7367b162700e049","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/netfs/buffered_read.c","fs/netfs/internal.h","fs/netfs/main.c","fs/netfs/objects.c","fs/netfs/read_pgpriv2.c","fs/netfs/rolling_buffer.c","fs/netfs/write_issue.c","include/linux/netfs.h","include/linux/rolling_buffer.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.114","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.57","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.8","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/netfs/buffered_read.c","fs/netfs/internal.h","fs/netfs/main.c","fs/netfs/objects.c","fs/netfs/read_pgpriv2.c","fs/netfs/rolling_buffer.c","fs/netfs/write_issue.c","include/linux/netfs.h","include/linux/rolling_buffer.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/b343252d6f536203dd0660f676190dcbf6d2ecdc"},{"url":"https://git.kernel.org/stable/c/15ed8a9b7c63e9171f5139a6aaa1ffb61809861f"},{"url":"https://git.kernel.org/stable/c/3f6d7f8a5416d852648d15a05e895f1195ee8a85"},{"url":"https://git.kernel.org/stable/c/1d78d56c43ef3768183e8370e7367b162700e049"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-21T12:45:52.776Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.12.114"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.18.57"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.1.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}