{
  "id": "CVE-2025-38382",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38382",
  "published_at": "2025-07-25T12:53:23.665Z",
  "title": "btrfs: fix iteration of extrefs during log replay",
  "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\nbtrfs: fix iteration of extrefs during log replay\n\nAt __inode_add_ref() when processing extrefs, if we jump into the next\nlabel we have an undefined value of victim_name.len, since we haven't\ninitialized it before we did the goto. This results in an invalid memory\naccess in the next iteration of the loop since victim_name.len was not\ninitialized to the length of the name of the current extref.\n\nFix this by initializing victim_name.len with the current extref's name\nlength.",
  "cwe": "CWE-908",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.16:rc4:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 1cf474cd474bc5d3ef63086ffd009a87a5b7bb2e, \u003c 539969fc472886a1d63565459514d47e27fef461",
          "\u003e= e43eec81c5167b655b72c781b0e75e62a05e415e, \u003c 2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171",
          "\u003e= e43eec81c5167b655b72c781b0e75e62a05e415e, \u003c 7ac790dc2ba00499a8d671d4a24de4d4ad27e234",
          "\u003e= e43eec81c5167b655b72c781b0e75e62a05e415e, \u003c aee57a0293dca675637e5504709f9f8fd8e871be",
          "\u003e= e43eec81c5167b655b72c781b0e75e62a05e415e, \u003c 54a7081ed168b72a8a2d6ef4ba3a1259705a2926",
          "\u003e= 6.1.57, \u003c 6.1.144"
        ],
        "fixed_in": [
          "539969fc472886a1d63565459514d47e27fef461",
          "2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171",
          "7ac790dc2ba00499a8d671d4a24de4d4ad27e234",
          "aee57a0293dca675637e5504709f9f8fd8e871be",
          "54a7081ed168b72a8a2d6ef4ba3a1259705a2926",
          "6.1.144"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.2"
        ],
        "fixed_in": [
          "0",
          "6.1.144",
          "6.6.97",
          "6.12.37",
          "6.15.6",
          "6.16"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 539969fc472886a1d63565459514d47e27fef461 or 2d11d274e2e1d7c79e2ca8461ce3ff3a95c11171 or 7ac790dc2ba00499a8d671d4a24de4d4ad27e234 or aee57a0293dca675637e5504709f9f8fd8e871be or 54a7081ed168b72a8a2d6ef4ba3a1259705a2926 or 6.1.144 or later.",
      "Upgrade Linux to 0 or 6.1.144 or 6.6.97 or 6.12.37 or 6.15.6 or 6.16 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
