{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-99896",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.443Z",
        "datePublished": "2026-11-30T13:18:04.130Z",
        "dateUpdated": "2026-12-01T05:44:10.418Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-01T05:44:10.418Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fix 32-bit overflow in readdir reply count check\n\nparse_reply_info_readdir() checks how many entries are in a readdir\nreply by computing the end pointer of the decoded array. That pointer\naddition can wrap on 32-bit kernels and let an oversized count pass the\ncheck. For example, a count of 0x40000000 with 156-byte entries wraps\nto a zero offset, so the decoder can write past the preallocated buffer.\n\nCheck the count against the number of entries that fit in the allocation\nbefore publishing dir_nr. Reject oversized replies through the existing\nerror path."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
                        "baseScore": 8.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:N - The count comes off the wire as the __le32 num in the extra section of a CEPH_MSG_CLIENT_REPLY. A hostile or compromised MDS sends that reply over the Ceph messenger on TCP, and handle_reply -> parse_reply_info -> parse_reply_info_extra -> parse_reply_info_readdir decodes it.\nAC:L - On 32-bit kernels num=0x80000000 makes num*sizeof wrap to 0, so the dir_entries+num pointer check always passes. The MDS also sizes the buffer through the i_files/i_subdirs it reports. dir_nr is an int, so it becomes negative and destroy_reply_info skips its loop. No race and no forced crash.\nPR:N - The attacker is the MDS peer and needs no account or privilege on the client. After lookup_get_request() matches the tid and the session, handle_reply() parses the readdir payload with no further check on who sent it.\nUI:R - handle_reply only parses replies to a registered tid, and dir_entries is only allocated for a READDIR/LSSNAP issued by ceph_readdir. A victim must have mounted the attacker's or compromised cluster, and a process must call getdents on a directory. The MDS cannot push this reply unsolicited.\nS:U - The out-of-bounds write corrupts the client kernel's own lowmem pages next to the __get_free_pages buffer from ceph_alloc_readdir_reply_buffer. The impact stays inside the kernel that parses the reply, with no VM, IOMMU or sandbox boundary crossed.\nC:H - The write places pointers and attacker-chosen 32/64-bit fields from parse_reply_info_in (change_attr, btime, quota, lengths) into adjacent kernel pages, up to megabytes past the buffer. Corrupting neighbouring objects this way can be leveraged to read kernel memory.\nI:H - parse_reply_info_readdir keeps writing struct ceph_mds_reply_dir_entry records at dir_entries+i, past dir_buf_size, for as many entries as the MDS packs into a reply of up to 16 MiB. That is a controlled-length out-of-bounds write into adjacent physical pages, usable to hijack control flow.\nA:H - Overwriting the neighbouring lowmem pages (slab, page cache or other kernel objects) crashes the client kernel. A count like 0x40000000 also makes destroy_reply_info kfree garbage across the whole address space. On 64-bit the same oversized count hit WARN_ON(1)."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/ceph/mds_client.c"
                    ],
                    "versions": [
                        {
                            "version": "54008399dc0ce511a07b87f1af3d1f5c791982a4",
                            "lessThan": "f344a1d12dc3b37603e25091c77fe06b0ba92c84",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "54008399dc0ce511a07b87f1af3d1f5c791982a4",
                            "lessThan": "dc8d89acc5642304a86bf5bdf78d08ee4064c4ae",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "54008399dc0ce511a07b87f1af3d1f5c791982a4",
                            "lessThan": "020e6529e0ef945b22b08ca7cbfad1d676ac1e6f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "54008399dc0ce511a07b87f1af3d1f5c791982a4",
                            "lessThan": "254214600efb0be9815720661e16513861b752ef",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "54008399dc0ce511a07b87f1af3d1f5c791982a4",
                            "lessThan": "238c0053d5ba919e414fc26bdd91b2079e819d86",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "54008399dc0ce511a07b87f1af3d1f5c791982a4",
                            "lessThan": "813221c8bbc9ce0c22b8a190478f6718d9c69a31",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "54008399dc0ce511a07b87f1af3d1f5c791982a4",
                            "lessThan": "b898407535b1c5a9caa6b22aa35650e0a99d742e",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "54008399dc0ce511a07b87f1af3d1f5c791982a4",
                            "lessThan": "52913831ba56efceaafd80b501d68fa00f79bde6",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "fs/ceph/mds_client.c"
                    ],
                    "versions": [
                        {
                            "version": "3.15",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "3.15",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.275",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.226",
                            "lessThanOrEqual": "5.15.*",
                            "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.117",
                            "lessThanOrEqual": "6.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.18.63",
                            "lessThanOrEqual": "6.18.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.3.4",
                            "lessThanOrEqual": "7.3.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "7.4-rc1",
                            "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": "3.15",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.15",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.15",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.15",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.15",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.15",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.15",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "3.15",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/f344a1d12dc3b37603e25091c77fe06b0ba92c84"
                },
                {
                    "url": "https://git.kernel.org/stable/c/dc8d89acc5642304a86bf5bdf78d08ee4064c4ae"
                },
                {
                    "url": "https://git.kernel.org/stable/c/020e6529e0ef945b22b08ca7cbfad1d676ac1e6f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/254214600efb0be9815720661e16513861b752ef"
                },
                {
                    "url": "https://git.kernel.org/stable/c/238c0053d5ba919e414fc26bdd91b2079e819d86"
                },
                {
                    "url": "https://git.kernel.org/stable/c/813221c8bbc9ce0c22b8a190478f6718d9c69a31"
                },
                {
                    "url": "https://git.kernel.org/stable/c/b898407535b1c5a9caa6b22aa35650e0a99d742e"
                },
                {
                    "url": "https://git.kernel.org/stable/c/52913831ba56efceaafd80b501d68fa00f79bde6"
                }
            ],
            "title": "ceph: fix 32-bit overflow in readdir reply count check",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}