{
  "id": "CVE-2025-38710",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38710",
  "published_at": "2025-09-04T15:33:00.629Z",
  "title": "gfs2: Validate i_depth for exhash directories",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\ngfs2: Validate i_depth for exhash directories\n\nA fuzzer test introduced corruption that ends up with a depth of 0 in\ndir_e_read(), causing an undefined shift by 32 at:\n\n  index = hash \u003e\u003e (32 - dip-\u003ei_depth);\n\nAs calculated in an open-coded way in dir_make_exhash(), the minimum\ndepth for an exhash directory is ilog2(sdp-\u003esd_hash_ptrs) and 0 is\ninvalid as sdp-\u003esd_hash_ptrs is fixed as sdp-\u003ebsize / 16 at mount time.\n\nSo we can avoid the undefined behaviour by checking for depth values\nlower than the minimum in gfs2_dinode_in(). Values greater than the\nmaximum are already being checked for there.\n\nAlso switch the calculation in dir_make_exhash() to use ilog2() to\nclarify how the depth is calculated.\n\nTested with the syzkaller repro.c and xfstests '-g quick'.",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 9a0045088d888c9c539c8c626a366cb52c0fbdab, \u003c 076e992752e4b24178918f748d75597c80a408d2",
          "\u003e= 9a0045088d888c9c539c8c626a366cb52c0fbdab, \u003c 366183911b153e9b8cf758e1414e1154d7569337",
          "\u003e= 9a0045088d888c9c539c8c626a366cb52c0fbdab, \u003c 112bb60cd0e254a369e95aa9941a694ffeca089f",
          "\u003e= 9a0045088d888c9c539c8c626a366cb52c0fbdab, \u003c cddea0c721106ea480371412d8de21705eb27376",
          "\u003e= 9a0045088d888c9c539c8c626a366cb52c0fbdab, \u003c 53a0249d68a210c16e961b83adfa82f94ee0a53d",
          "\u003e= 9a0045088d888c9c539c8c626a366cb52c0fbdab, \u003c b5f46951e62377b6e406fadc18bc3c5bdf1632a7",
          "\u003e= 9a0045088d888c9c539c8c626a366cb52c0fbdab, \u003c 9680c58675b82348ab84d387e4fa727f7587e1a0",
          "\u003e= 9a0045088d888c9c539c8c626a366cb52c0fbdab, \u003c 557c024ca7250bb65ae60f16c02074106c2f197b"
        ],
        "fixed_in": [
          "076e992752e4b24178918f748d75597c80a408d2",
          "366183911b153e9b8cf758e1414e1154d7569337",
          "112bb60cd0e254a369e95aa9941a694ffeca089f",
          "cddea0c721106ea480371412d8de21705eb27376",
          "53a0249d68a210c16e961b83adfa82f94ee0a53d",
          "b5f46951e62377b6e406fadc18bc3c5bdf1632a7",
          "9680c58675b82348ab84d387e4fa727f7587e1a0",
          "557c024ca7250bb65ae60f16c02074106c2f197b"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "2.6.26"
        ],
        "fixed_in": [
          "0",
          "5.10.258",
          "5.15.209",
          "6.1.175",
          "6.6.134",
          "6.12.43",
          "6.15.11",
          "6.16.2",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 076e992752e4b24178918f748d75597c80a408d2 or 366183911b153e9b8cf758e1414e1154d7569337 or 112bb60cd0e254a369e95aa9941a694ffeca089f or cddea0c721106ea480371412d8de21705eb27376 or 53a0249d68a210c16e961b83adfa82f94ee0a53d or b5f46951e62377b6e406fadc18bc3c5bdf1632a7 or 9680c58675b82348ab84d387e4fa727f7587e1a0 or 557c024ca7250bb65ae60f16c02074106c2f197b or later.",
      "Upgrade Linux to 0 or 5.10.258 or 5.15.209 or 6.1.175 or 6.6.134 or 6.12.43 or 6.15.11 or 6.16.2 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
