{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-99736",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.431Z",
        "datePublished": "2026-11-20T05:51:09.778Z",
        "dateUpdated": "2026-11-23T08:06:44.744Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-23T08:06:44.744Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmm/shmem: fix accounting of swapin-error markers\n\nA failed swap read replaces the swap entry with a swapin-error marker in\nthe page-cache and subtracts its pages from \"alloced\" and \"swapped\";\nhowever, it leaves their block charge in place.\n\nRemoving the marker during truncate then subtracts from \"swapped\" again.\nThis can underflow the counters or make swapped reach zero while other\npages remain swapped out, causing swapoff to loop without finding them.\n\nWhen installing the marker, subtract only from \"swapped\" and let\nshmem_recalc_inode() reduce \"alloced\" and release the block charge.\n\nMake shmem_free_swap() report successful removal separately from the\nnumber of swap pages freed, so removing a swapin-error marker does not\nsubtract from \"swapped\" again.\n\nIt's a bit confusing, but replacing a swapped out page by a swapin-error\nmarker in shmem_set_folio_swapin_error() behaves as follows:\n\nInitially:\n\talloced=1, swapped=1, nrpages=0\nCalling shmem_recalc_inode(inode, 0, -1)\n\t-> swapped = 0\n\t-> freed =  1 - 0 - 0 = 1\n\t-> alloced -= freed\n\t-> alloced=0, swapped=0, block charge released"
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "mm/shmem.c"
                    ],
                    "versions": [
                        {
                            "version": "6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61",
                            "lessThan": "00e3efd5d74d18447438edfd2532cd4100fd5756",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61",
                            "lessThan": "5e09340badaf982a2cb73e41da715fcdd0e2eb7f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61",
                            "lessThan": "77ad4ac35977d081f2b69f1c73ae3b210124b1fc",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61",
                            "lessThan": "f49d40a699bdaf68bbb307f1fa207512520ce982",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61",
                            "lessThan": "d4bc03eaeef281c460370dfd57e1a671b787edd4",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "6cec2b95dadf77cdc1256fae1c5dfd4a2b467e61",
                            "lessThan": "66ce68a249f4ac56cd6968aa6d8ded20fb4b7d09",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "mm/shmem.c"
                    ],
                    "versions": [
                        {
                            "version": "5.19",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.19",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.193",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.163",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.12.119",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.65",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.5",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc2",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.19",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.19",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.19",
                                    "versionEndExcluding": "6.12.119"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.19",
                                    "versionEndExcluding": "6.18.65"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.19",
                                    "versionEndExcluding": "7.3.5"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.19",
                                    "versionEndExcluding": "7.4-rc2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/00e3efd5d74d18447438edfd2532cd4100fd5756"
                },
                {
                    "url": "https://git.kernel.org/stable/c/5e09340badaf982a2cb73e41da715fcdd0e2eb7f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/77ad4ac35977d081f2b69f1c73ae3b210124b1fc"
                },
                {
                    "url": "https://git.kernel.org/stable/c/f49d40a699bdaf68bbb307f1fa207512520ce982"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d4bc03eaeef281c460370dfd57e1a671b787edd4"
                },
                {
                    "url": "https://git.kernel.org/stable/c/66ce68a249f4ac56cd6968aa6d8ded20fb4b7d09"
                }
            ],
            "title": "mm/shmem: fix accounting of swapin-error markers",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}