{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-99895",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.443Z",
        "datePublished": "2026-11-30T13:18:03.568Z",
        "dateUpdated": "2026-12-01T05:44:08.869Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-12-01T05:44:08.869Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nlibceph: fix out-of-bounds reads from repeated CRUSH bucket entries\n\ndecode_choose_arg() assumes that its destination is zero-initialized.\nAlthough decode_choose_args() zeroes the argument array, it does not reject\na repeated bucket_index and can decode into an already populated entry.\n\nRepeating a bucket with weight_set_size=0 preserves its existing weight_set\npointer but clears the count. Placement then reads weight_set[-1].weights\nand dereferences the resulting pointer.\n\nA malformed monitor OSDMap triggers this during RBD placement:\n\n  BUG: KASAN: slab-out-of-bounds in crush_bucket_choose+0xdd1/0xf90\n  Read of size 8 at addr ffff88800290df70 by task init/75\n\nReject populated arguments before decoding another entry, so the error\npath can free their original allocations."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H",
                        "baseScore": 9.1,
                        "baseSeverity": "CRITICAL"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:N - The repeated bucket_index with weight_set_size=0 is carried inside the CRUSH map of a CEPH_MSG_OSD_MAP message, sent over the client's TCP messenger connection by a monitor or OSD. The path is mon_dispatch()/osd_dispatch() -> ceph_osdc_handle_map() -> handle_one_map() -> crush_decode() -> decode_choose_args() -> decode_choose_arg().\nAC:L - The sender writes the whole map: a straw2 bucket on the rule path and a choose_args entry at index -1, which do_crush() uses for every pool. The entry lists the bucket twice, the second time with weight_set_size=0. get_choose_arg_weights() then clamps position to -1 on every calc_target(). Grooming the neighbouring slab object with its own u32 arrays is the attacker's own work, and no race is involved.\nPR:N - ceph_osdc_handle_map() checks only ceph_check_fsid(), which adopts the message's fsid if the client has none yet. mon dispatch passes CEPH_MSG_OSD_MAP on without checking authentication state. A malicious or compromised monitor or OSD therefore needs no account or privilege on the client host.\nUI:N - The map can be pushed without a request. handle_one_map() -> scan_requests() -> recalc_linger_target() -> calc_target() -> do_crush() runs for the linger request behind the always-registered RBD header watch. The read therefore fires on map receipt, with no victim I/O or other action.\nS:U - The out-of-bounds read and the wild-pointer dereference happen in the client kernel's own CRUSH mapper, bucket_straw2_choose(). They stay inside the kernel's security authority and cross no VM, IOMMU or sandbox boundary.\nC:H - bucket_straw2_choose() reads the 8-byte weight_set[-1].weights pointer from the adjacent slab object, then reads h.size u32 values through it. If the neighbour is groomed, that pointer is attacker-chosen. Because the values drive the straw2 argmax, the OSD the client contacts acts as a repeatable oracle on memory at an arbitrary address: more than a few bytes.\nI:N - Nothing is written. A repeated entry only overwrites arg->ids or arg->weight_set and leaks the old allocations. free_choose_arg_map() loops over weight_set_size=0, so there is no double free. The mapper returns an in-bounds bucket->h.items[high] from the attacker's own map.\nA:H - The leftover weight_set[-1].weights value is garbage, such as a SLUB free pointer or attacker u32 data. Dereferencing it faults in crush_bucket_choose() inside calc_target() while osdc->lock is held for write. That oopses the client, stalls all Ceph I/O and panics with panic_on_oops, and the sender can resend the map on every reconnect."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/ceph/osdmap.c"
                    ],
                    "versions": [
                        {
                            "version": "c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5",
                            "lessThan": "b0aaa76def75180f640a734759ea896259750ded",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5",
                            "lessThan": "4fde92e1589dfb637e242f6ad70f905975ce7504",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5",
                            "lessThan": "5ed5fa697e0e5b4731f5307157ecd0b01de4fd56",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5",
                            "lessThan": "6e1de78661794fc9f546766696faeee99285a079",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5",
                            "lessThan": "367803db119e3f1aadb59869c43dbb2002d206c6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5",
                            "lessThan": "e1cf4b41bfbe86f06f272e4c9e87e383d62014fa",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5",
                            "lessThan": "3ac5e7f512efbadfffd2d13888dc23c43754a5dd",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5",
                            "lessThan": "569a9bb1e5615c2b88b8d76f03a4ab82e65a673e",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "net/ceph/osdmap.c"
                    ],
                    "versions": [
                        {
                            "version": "4.13",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "4.13",
                            "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": "4.13",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "4.13",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/b0aaa76def75180f640a734759ea896259750ded"
                },
                {
                    "url": "https://git.kernel.org/stable/c/4fde92e1589dfb637e242f6ad70f905975ce7504"
                },
                {
                    "url": "https://git.kernel.org/stable/c/5ed5fa697e0e5b4731f5307157ecd0b01de4fd56"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6e1de78661794fc9f546766696faeee99285a079"
                },
                {
                    "url": "https://git.kernel.org/stable/c/367803db119e3f1aadb59869c43dbb2002d206c6"
                },
                {
                    "url": "https://git.kernel.org/stable/c/e1cf4b41bfbe86f06f272e4c9e87e383d62014fa"
                },
                {
                    "url": "https://git.kernel.org/stable/c/3ac5e7f512efbadfffd2d13888dc23c43754a5dd"
                },
                {
                    "url": "https://git.kernel.org/stable/c/569a9bb1e5615c2b88b8d76f03a4ab82e65a673e"
                }
            ],
            "title": "libceph: fix out-of-bounds reads from repeated CRUSH bucket entries",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}