{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-99893",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2026-09-25T10:25:14.442Z",
        "datePublished": "2026-11-30T13:18:02.436Z",
        "dateUpdated": "2026-11-30T13:18:02.436Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-11-30T13:18:02.436Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nceph: clamp MDS reply result code to the errno range\n\nceph_mdsc_wait_request() returns the reply head result code of the MDS\nrequest to its callers as a plain int errno.  The value is a\nserver-controlled u32 and nothing checks that it actually is an errno;\nseveral callers pass it straight to ERR_PTR(), e.g.\nceph_finish_lookup() on the atomic open path:\n\n\terr = ceph_mdsc_wait_request(...)\t/* e.g. +0x50fc00 */\n\t...\n\tif (err)\n\t\tdentry = ERR_PTR(err);\n\nIS_ERR() only recognizes the [-MAX_ERRNO, -1] window, so an\nout-of-range value is not caught anywhere and survives as a \"struct\ndentry *\".  On the open path the positive error travels\nceph_finish_lookup() -> ceph_atomic_open() -> ERR_PTR() in\nfs/namei.c's atomic_open() wrapper -> step_into(), which dereferences\nit as a dentry and oopses (mainline 7.3-rc3-135-g4982d3552a3b, the\nvalue in R12 is the server-supplied result):\n\nBUG: KASAN: probably user-memory-access in range\n[0x000000000050fc00-0x000000000050fc07]\nRIP: 0010:step_into_slowpath+0x3e3/0xe60\nR12: 000000000050fc00\nCall Trace:\n <TASK>\n ? __pfx_ceph_atomic_open+0x10/0x10\n path_openat+0xf41/0x2440\n do_file_open+0x228/0x480\n do_sys_openat2+0x103/0x1d0\n __x64_sys_openat+0x141/0x200\n do_syscall_64+0xe8/0x4f0\n entry_SYSCALL_64_after_hwframe+0x77/0x79\n </TASK>\n\n(0xdffffc00000a1f80 in the full report is the KASAN shadow of 0x50fc00;\nwithout KASAN the raw value is read.)  Values with the top bit set fare\nno better: 0xd8000000 sign-extends through the int conversion into the\nkernel address range and takes a page fault instead.\n\nClamp the result at the single read and return -EIO for anything\noutside the errno range, which is what a malformed reply means there.\nnet/9p does the same to server errno values with safe_errno().  This\nis the path the reported crash takes; the other readers of\nhead->result, including the ceph_async_create_cb() and\nceph_async_unlink_cb() callbacks, are not covered by this patch.\n\nEach of the six crashing opens was run on a build of\n7.3-rc3-135-g4982d3552a3bf with only this change applied: it crashes\nthe unpatched kernel on the first openat() (verified on the same\ntree without the patch), and with the patch the open fails cleanly\nwithout an oops.  A few hundred normal file operations on the\npatched kernel also completed without a crash; valid errno values\npass through unchanged."
                }
            ],
            "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": "2f2dc053404febedc9c273452d9d518fb31fde72",
                            "lessThan": "efefac988d721fb2d5999e0c7a134acbb96ea584",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2f2dc053404febedc9c273452d9d518fb31fde72",
                            "lessThan": "819afa8919e26e4af00cf88eb802a4f57090c05d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2f2dc053404febedc9c273452d9d518fb31fde72",
                            "lessThan": "dab55228e6c1efaa14f10ff58813617994715854",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2f2dc053404febedc9c273452d9d518fb31fde72",
                            "lessThan": "1249c83d8c2613717f7bc54a67edb1cabfa985f6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2f2dc053404febedc9c273452d9d518fb31fde72",
                            "lessThan": "1456fa7445322e5f1924e02aeb61ebc6ea08d696",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2f2dc053404febedc9c273452d9d518fb31fde72",
                            "lessThan": "5f4eda68e31881d82d017a1bd51d774fd342f23b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2f2dc053404febedc9c273452d9d518fb31fde72",
                            "lessThan": "6eaba9183c3504790b545dfe87f7d551d2da999f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "2f2dc053404febedc9c273452d9d518fb31fde72",
                            "lessThan": "ec8d583469ed64b4973192a21b5a41c33219721f",
                            "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": "2.6.34",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "2.6.34",
                            "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": "2.6.34",
                                    "versionEndExcluding": "5.10.275"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.34",
                                    "versionEndExcluding": "5.15.226"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.34",
                                    "versionEndExcluding": "6.1.193"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.34",
                                    "versionEndExcluding": "6.6.163"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.34",
                                    "versionEndExcluding": "6.12.117"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.34",
                                    "versionEndExcluding": "6.18.63"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.34",
                                    "versionEndExcluding": "7.3.4"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.34",
                                    "versionEndExcluding": "7.4-rc1"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/efefac988d721fb2d5999e0c7a134acbb96ea584"
                },
                {
                    "url": "https://git.kernel.org/stable/c/819afa8919e26e4af00cf88eb802a4f57090c05d"
                },
                {
                    "url": "https://git.kernel.org/stable/c/dab55228e6c1efaa14f10ff58813617994715854"
                },
                {
                    "url": "https://git.kernel.org/stable/c/1249c83d8c2613717f7bc54a67edb1cabfa985f6"
                },
                {
                    "url": "https://git.kernel.org/stable/c/1456fa7445322e5f1924e02aeb61ebc6ea08d696"
                },
                {
                    "url": "https://git.kernel.org/stable/c/5f4eda68e31881d82d017a1bd51d774fd342f23b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6eaba9183c3504790b545dfe87f7d551d2da999f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/ec8d583469ed64b4973192a21b5a41c33219721f"
                }
            ],
            "title": "ceph: clamp MDS reply result code to the errno range",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        }
    }
}