CVE-2026-99557 (GCVE-0-2026-99557)

Vulnerability from cvelistv5 – Published: 2026-11-19 14:45 – Updated: 2026-11-19 14:45
VLAI
Title
ceph: fail readdir when the MDS reply carries no dirfrag
Summary
In the Linux kernel, the following vulnerability has been resolved: ceph: fail readdir when the MDS reply carries no dirfrag A ceph mount oopses in ceph_readdir() when the MDS answers a READDIR request with a reply whose extra blob is empty. parse_reply_info() skips reply blobs whose length is zero, so parse_reply_info_readdir() never runs, r_reply_info.dir_dir stays NULL, and the reply still parses as successful. ceph_mdsc_do_request() returns 0 and ceph_readdir() then reads rinfo->dir_dir->frag with no NULL check: /* extra */ ceph_decode_32_safe(&p, end, len, bad); if (len > 0) { ... err = parse_reply_info_extra(&p, p + len, req, features, s); ... } The oops on v7.3.0-rc4-00537-ga3ff15db6820, one getdents64(2) on the mount root after an ms_mode=legacy mount, trimmed: BUG: KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007] Oops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI CPU: 1 UID: 0 PID: 266 Comm: ls Tainted: G N 7.3.0-rc4-00537-ga3ff15db6820 #1 PREEMPT(lazy) RIP: 0010:ceph_readdir+0xbff/0x3ea0 Call Trace: <TASK> ? __pfx_ceph_readdir+0x10/0x10 wrap_directory_iterator+0xa2/0xe0 iterate_dir+0x1da/0x5d0 __x64_sys_getdents64+0x13b/0x2a0 do_syscall_64+0xdd/0x4a0 entry_SYSCALL_64_after_hwframe+0x77/0x7f </TASK> The unconditional frag read came in with 81c6aea5275ea ("ceph: handle frag mismatch between readdir request and reply"), so the bug is old. Treat a reply with no dirfrag as a protocol violation: warn once, drop the request and return -EIO, the same way ceph_readdir() already handles the two malformed-reply cases later in the function. Tested on v7.3.0-rc4-00537-ga3ff15db6820 (KASAN). Unpatched, the getdents64(2) above takes the machine down (oops=panic) on the first READDIR reply. With the patch it warns once and getdents64(2) returns -EIO, no oops, no hang. A conformant reply for an empty directory — dirfrag present, zero entries, FRAG_END|FRAG_COMPLETE — still lists "." and ".." and returns EOF on both kernels, so normal readdir behavior is unchanged. The oops is still present in v7.3-rc5 (72d3fcf802c45).
Severity
No CVSS data available.
Assigner
Linux CNA under the mitre root
CNA scorecard D 53/100 over 7143 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 81c6aea5275eae453719d7f3924da07e668265c5 , < 37d01a684e6087e264895ab34b829d2267ad607c (git)
Affected: 81c6aea5275eae453719d7f3924da07e668265c5 , < 49d7c1beac3810983869ed9260dcd444b6a51c8e (git)
Affected: 81c6aea5275eae453719d7f3924da07e668265c5 , < d129cfc783b5ff091f5edcccf8129608ec50c000 (git)
Affected: 81c6aea5275eae453719d7f3924da07e668265c5 , < 728c856d7da04fb79f7aa00e974ffb6f55e55995 (git)
guessed Create a notification for this product.
Linux Linux Affected: 3.13
Unaffected: 0 , < 3.13 (semver)
Unaffected: 6.12.117 , ≤ 6.12.* (semver)
Unaffected: 6.18.61 , ≤ 6.18.* (semver)
Unaffected: 7.3.2 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "fs/ceph/dir.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "37d01a684e6087e264895ab34b829d2267ad607c",
              "status": "affected",
              "version": "81c6aea5275eae453719d7f3924da07e668265c5",
              "versionType": "git"
            },
            {
              "lessThan": "49d7c1beac3810983869ed9260dcd444b6a51c8e",
              "status": "affected",
              "version": "81c6aea5275eae453719d7f3924da07e668265c5",
              "versionType": "git"
            },
            {
              "lessThan": "d129cfc783b5ff091f5edcccf8129608ec50c000",
              "status": "affected",
              "version": "81c6aea5275eae453719d7f3924da07e668265c5",
              "versionType": "git"
            },
            {
              "lessThan": "728c856d7da04fb79f7aa00e974ffb6f55e55995",
              "status": "affected",
              "version": "81c6aea5275eae453719d7f3924da07e668265c5",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "fs/ceph/dir.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "3.13"
            },
            {
              "lessThan": "3.13",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.117",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.61",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.117",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.61",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.2",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "3.13",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fail readdir when the MDS reply carries no dirfrag\n\nA ceph mount oopses in ceph_readdir() when the MDS answers a READDIR\nrequest with a reply whose extra blob is empty.  parse_reply_info()\nskips reply blobs whose length is zero, so parse_reply_info_readdir()\nnever runs, r_reply_info.dir_dir stays NULL, and the reply still\nparses as successful.  ceph_mdsc_do_request() returns 0 and\nceph_readdir() then reads rinfo-\u003edir_dir-\u003efrag with no NULL check:\n\n\t/* extra */\n\tceph_decode_32_safe(\u0026p, end, len, bad);\n\tif (len \u003e 0) {\n\t\t...\n\t\terr = parse_reply_info_extra(\u0026p, p + len, req, features, s);\n\t\t...\n\t}\n\nThe oops on v7.3.0-rc4-00537-ga3ff15db6820, one getdents64(2) on the\nmount root after an ms_mode=legacy mount, trimmed:\n\nBUG: KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]\nOops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI\nCPU: 1 UID: 0 PID: 266 Comm: ls Tainted: G                 N  7.3.0-rc4-00537-ga3ff15db6820 #1 PREEMPT(lazy)\nRIP: 0010:ceph_readdir+0xbff/0x3ea0\nCall Trace:\n \u003cTASK\u003e\n ? __pfx_ceph_readdir+0x10/0x10\n wrap_directory_iterator+0xa2/0xe0\n iterate_dir+0x1da/0x5d0\n __x64_sys_getdents64+0x13b/0x2a0\n do_syscall_64+0xdd/0x4a0\n entry_SYSCALL_64_after_hwframe+0x77/0x7f\n \u003c/TASK\u003e\n\nThe unconditional frag read came in with 81c6aea5275ea (\"ceph: handle\nfrag mismatch between readdir request and reply\"), so the bug is old.\n\nTreat a reply with no dirfrag as a protocol violation: warn once,\ndrop the request and return -EIO, the same way ceph_readdir() already\nhandles the two malformed-reply cases later in the function.\n\nTested on v7.3.0-rc4-00537-ga3ff15db6820 (KASAN).  Unpatched, the\ngetdents64(2) above takes the machine down (oops=panic) on the first\nREADDIR reply.  With the patch it warns once and getdents64(2)\nreturns -EIO, no oops, no hang.  A conformant reply for an empty\ndirectory \u2014 dirfrag present, zero entries, FRAG_END|FRAG_COMPLETE \u2014\nstill lists \".\" and \"..\" and returns EOF on both kernels, so normal\nreaddir behavior is unchanged.  The oops is still present in\nv7.3-rc5 (72d3fcf802c45)."
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-19T14:45:28.825Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/37d01a684e6087e264895ab34b829d2267ad607c"
        },
        {
          "url": "https://git.kernel.org/stable/c/49d7c1beac3810983869ed9260dcd444b6a51c8e"
        },
        {
          "url": "https://git.kernel.org/stable/c/d129cfc783b5ff091f5edcccf8129608ec50c000"
        },
        {
          "url": "https://git.kernel.org/stable/c/728c856d7da04fb79f7aa00e974ffb6f55e55995"
        }
      ],
      "title": "ceph: fail readdir when the MDS reply carries no dirfrag",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-99557",
    "datePublished": "2026-11-19T14:45:28.825Z",
    "dateReserved": "2026-09-25T10:25:14.421Z",
    "dateUpdated": "2026-11-19T14:45:28.825Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-99557",
      "date": "2026-11-20",
      "epss": "0.00157",
      "percentile": "0.04935"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "fs/ceph/dir.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "37d01a684e6087e264895ab34b829d2267ad607c",
                    "status": "affected",
                    "version": "81c6aea5275eae453719d7f3924da07e668265c5",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "49d7c1beac3810983869ed9260dcd444b6a51c8e",
                    "status": "affected",
                    "version": "81c6aea5275eae453719d7f3924da07e668265c5",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "d129cfc783b5ff091f5edcccf8129608ec50c000",
                    "status": "affected",
                    "version": "81c6aea5275eae453719d7f3924da07e668265c5",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "728c856d7da04fb79f7aa00e974ffb6f55e55995",
                    "status": "affected",
                    "version": "81c6aea5275eae453719d7f3924da07e668265c5",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "fs/ceph/dir.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "3.13"
                  },
                  {
                    "lessThan": "3.13",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.117",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.61",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.2",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nceph: fail readdir when the MDS reply carries no dirfrag\n\nA ceph mount oopses in ceph_readdir() when the MDS answers a READDIR\nrequest with a reply whose extra blob is empty.  parse_reply_info()\nskips reply blobs whose length is zero, so parse_reply_info_readdir()\nnever runs, r_reply_info.dir_dir stays NULL, and the reply still\nparses as successful.  ceph_mdsc_do_request() returns 0 and\nceph_readdir() then reads rinfo-\u003edir_dir-\u003efrag with no NULL check:\n\n\t/* extra */\n\tceph_decode_32_safe(\u0026p, end, len, bad);\n\tif (len \u003e 0) {\n\t\t...\n\t\terr = parse_reply_info_extra(\u0026p, p + len, req, features, s);\n\t\t...\n\t}\n\nThe oops on v7.3.0-rc4-00537-ga3ff15db6820, one getdents64(2) on the\nmount root after an ms_mode=legacy mount, trimmed:\n\nBUG: KASAN: null-ptr-deref in range [0x0000000000000000-0x0000000000000007]\nOops: general protection fault, probably for non-canonical address 0xdffffc0000000000: 0000 [#1] SMP KASAN NOPTI\nCPU: 1 UID: 0 PID: 266 Comm: ls Tainted: G                 N  7.3.0-rc4-00537-ga3ff15db6820 #1 PREEMPT(lazy)\nRIP: 0010:ceph_readdir+0xbff/0x3ea0\nCall Trace:\n \u003cTASK\u003e\n ? __pfx_ceph_readdir+0x10/0x10\n wrap_directory_iterator+0xa2/0xe0\n iterate_dir+0x1da/0x5d0\n __x64_sys_getdents64+0x13b/0x2a0\n do_syscall_64+0xdd/0x4a0\n entry_SYSCALL_64_after_hwframe+0x77/0x7f\n \u003c/TASK\u003e\n\nThe unconditional frag read came in with 81c6aea5275ea (\"ceph: handle\nfrag mismatch between readdir request and reply\"), so the bug is old.\n\nTreat a reply with no dirfrag as a protocol violation: warn once,\ndrop the request and return -EIO, the same way ceph_readdir() already\nhandles the two malformed-reply cases later in the function.\n\nTested on v7.3.0-rc4-00537-ga3ff15db6820 (KASAN).  Unpatched, the\ngetdents64(2) above takes the machine down (oops=panic) on the first\nREADDIR reply.  With the patch it warns once and getdents64(2)\nreturns -EIO, no oops, no hang.  A conformant reply for an empty\ndirectory \u2014 dirfrag present, zero entries, FRAG_END|FRAG_COMPLETE \u2014\nstill lists \".\" and \"..\" and returns EOF on both kernels, so normal\nreaddir behavior is unchanged.  The oops is still present in\nv7.3-rc5 (72d3fcf802c45)."
          }
        ],
        "id": "CVE-2026-99557",
        "lastModified": "2026-11-19T15:18:12.237",
        "metrics": {},
        "published": "2026-11-19T15:18:12.237",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/37d01a684e6087e264895ab34b829d2267ad607c"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/49d7c1beac3810983869ed9260dcd444b6a51c8e"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/728c856d7da04fb79f7aa00e974ffb6f55e55995"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/d129cfc783b5ff091f5edcccf8129608ec50c000"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-11-19T21:54:44+00:00",
      "cve": "CVE-2026-99557",
      "id": "CVE-2026-99557",
      "initial_release_date": "2026-11-19T14:45:28.825000+00:00",
      "product_status:known_affected": "190",
      "product_status:known_not_affected": "14",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: ceph: Denial of Service via null pointer dereference in ceph_readdir",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-99557.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.