mm/mincore: handle non-swap entries before !CONFIG_SWAP guard
In the Linux kernel, the following vulnerability has been resolved: mm/mincore: handle non-swap entries before !CONFIG_SWAP guard mincore_swap() also fields migration/hwpoison entries (and shmem swapin-error entries), which can exist on !CONFIG_SWAP builds when CONFIG_MIGRATION or CONFIG_MEMORY_FAILURE is enabled. The !IS_ENABLED(CONFIG_SWAP) guard ran before the non-swap-entry early return, so mincore_pte_range() can spuriously WARN and report these pages nonresident on !CONFIG_SWAP kernels. Move the guard below the non-swap-entry check so only true swap entries trip the WARN, and migration/hwpoison entries take the existing "uptodate / non-shmem" path.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.18.36, 7.0.13
- CVEs
- CVE-2026-53333
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 00:59 UTC · Revision 1
Source evidence
mm/mincore: handle non-swap entries before !CONFIG_SWAP guard
core-osv · Original sourcePublished 1 Jul 2026, 13:32 UTC
In the Linux kernel, the following vulnerability has been resolved: mm/mincore: handle non-swap entries before !CONFIG_SWAP guard mincore_swap() also fields migration/hwpoison entries (and shmem swapin-error entries), which can exist on !CONFIG_SWAP builds when CONFIG_MIGRATION or CONFIG_MEMORY_FAILURE is enabled. The !IS_ENABLED(CONFIG_SWAP) guard ran before the non-swap-entry early return, so mincore_pte_range() can spuriously WARN and report these pages nonresident on !CONFIG_SWAP kernels. Move the guard below the non-swap-entry check so only true swap entries trip the WARN, and migration/hwpoison entries take the existing "uptodate / non-shmem" path.
osv:CVE-2026-53333
Kernel
Fixed versions: 6.18.36, 7.0.13
Complete source record
{
"id": "ee5ad0cf0ff8adbc820d02c2616926126b79cf61cbce3b79a745ee1325467a53",
"url": "https://osv.dev/vulnerability/CVE-2026-53333",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "mm/mincore: handle non-swap entries before !CONFIG_SWAP guard",
"summary": "In the Linux kernel, the following vulnerability has been resolved: mm/mincore: handle non-swap entries before !CONFIG_SWAP guard mincore_swap() also fields migration/hwpoison entries (and shmem swapin-error entries), which can exist on !CONFIG_SWAP builds when CONFIG_MIGRATION or CONFIG_MEMORY_FAILURE is enabled. The !IS_ENABLED(CONFIG_SWAP) guard ran before the non-swap-entry early return, so mincore_pte_range() can spuriously WARN and report these pages nonresident on !CONFIG_SWAP kernels. Move the guard below the non-swap-entry check so only true swap entries trip the WARN, and migration/hwpoison entries take the existing \"uptodate / non-shmem\" path.",
"evidence": "osv:CVE-2026-53333",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.18.36",
"evidence": "/affected/1/ranges"
},
{
"value": "7.0.13",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-53333",
"aliases": [
"CVE-2026-53333"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "1f2052755c152940c336918bd73d13d5468f548b"
},
{
"fixed": "a8f91ddf67f669f547bb9fb559738da6f8ee2cf3"
},
{
"fixed": "3481d4372ae34243f7025925314385b852c50f7e"
},
{
"fixed": "0c25b8734367574e21aeb8468c2e522713134da7"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53333.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.18.0"
},
{
"fixed": "6.18.36"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "7.0.13"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53333.json"
}
}
],
"modified": "2026-10-28T02:30:41.387390036Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0c25b8734367574e21aeb8468c2e522713134da7",
"https://git.kernel.org/stable/c/3481d4372ae34243f7025925314385b852c50f7e",
"https://git.kernel.org/stable/c/a8f91ddf67f669f547bb9fb559738da6f8ee2cf3",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53333.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-53333",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53333.json"
}
},
"related_cves": [
{
"value": "CVE-2026-53333",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 508819,
"published_at": "2026-07-01T13:32:16.852+00:00"
}