netfs: Fix folio_queue ENOMEM in writeback by adding a mempool
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
CVE-2026-74542
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2026-74542
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "cd0277ed0c188dd40e7744e89299af7b78831ca4",
"lessThan": "b343252d6f536203dd0660f676190dcbf6d2ecdc",
"versionType": "git"
},
{
"status": "affected",
"version": "cd0277ed0c188dd40e7744e89299af7b78831ca4",
"lessThan": "15ed8a9b7c63e9171f5139a6aaa1ffb61809861f",
"versionType": "git"
},
{
"status": "affected",
"version": "cd0277ed0c188dd40e7744e89299af7b78831ca4",
"lessThan": "3f6d7f8a5416d852648d15a05e895f1195ee8a85",
"versionType": "git"
},
{
"status": "affected",
"version": "cd0277ed0c188dd40e7744e89299af7b78831ca4",
"lessThan": "1d78d56c43ef3768183e8370e7367b162700e049",
"versionType": "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"
],
"defaultStatus": "unaffected"
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "6.12"
},
{
"status": "unaffected",
"version": "0",
"lessThan": "6.12",
"versionType": "semver"
},
{
"status": "unaffected",
"version": "6.12.114",
"versionType": "semver",
"lessThanOrEqual": "6.12.*"
},
{
"status": "unaffected",
"version": "6.18.57",
"versionType": "semver",
"lessThanOrEqual": "6.18.*"
},
{
"status": "unaffected",
"version": "7.1.8",
"versionType": "semver",
"lessThanOrEqual": "7.1.*"
},
{
"status": "unaffected",
"version": "7.2",
"versionType": "original_commit_for_fix",
"lessThanOrEqual": "*"
}
],
"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"
],
"defaultStatus": "affected"
}
]- Related CVEs
- CVE-2026-74542
Source reference:
/cveMetadata/cveId
Publisher severity
No explicit severity was provided.
- Event
- #46572 · Revision 1
- Added to Heist Feed
- Publisher date