{
  "id": "CVE-2025-40068",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-40068",
  "published_at": "2025-10-28T11:48:37.636Z",
  "title": "fs: ntfs3: Fix integer overflow in run_unpack()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 8.4,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:N/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\nfs: ntfs3: Fix integer overflow in run_unpack()\n\nThe MFT record relative to the file being opened contains its runlist,\nan array containing information about the file's location on the physical\ndisk. Analysis of all Call Stack paths showed that the values of the\nrunlist array, from which LCNs are calculated, are not validated before\nrun_unpack function.\n\nThe run_unpack function decodes the compressed runlist data format\nfrom MFT attributes (for example, $DATA), converting them into a runs_tree\nstructure, which describes the mapping of virtual clusters (VCN) to\nlogical clusters (LCN). The NTFS3 subsystem also has a shortcut for\ndeleting files from MFT records - in this case, the RUN_DEALLOCATE\ncommand is sent to the run_unpack input, and the function logic\nprovides that all data transferred to the runlist about file or\ndirectory is deleted without creating a runs_tree structure.\n\nSubstituting the runlist in the $DATA attribute of the MFT record for an\narbitrary file can lead either to access to arbitrary data on the disk\nbypassing access checks to them (since the inode access check\noccurs above) or to destruction of arbitrary data on the disk.\n\nAdd overflow check for addition operation.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE.",
  "cvss_by_source": {
    "cna": 8.4
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \u003c f6b36cfd25cbadad63447c673743cf771090e756",
          "\u003e= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \u003c 3ac37e100385b59ac821a62118494442238aaac4",
          "\u003e= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \u003c a86c8b9d03f7101e1750233846fe989df6f0d631",
          "\u003e= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \u003c 9378cfe228c2c679564a4116bcb28c8e89dff989",
          "\u003e= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \u003c 5aa5799d162ad1b8e8b699d48b6218143c695a78",
          "\u003e= 4342306f0f0d5ff4315a204d315c1b51b914fca5, \u003c 736fc7bf5f68f6b74a0925b7e072c571838657d2"
        ],
        "fixed_in": [
          "f6b36cfd25cbadad63447c673743cf771090e756",
          "3ac37e100385b59ac821a62118494442238aaac4",
          "a86c8b9d03f7101e1750233846fe989df6f0d631",
          "9378cfe228c2c679564a4116bcb28c8e89dff989",
          "5aa5799d162ad1b8e8b699d48b6218143c695a78",
          "736fc7bf5f68f6b74a0925b7e072c571838657d2"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.15"
        ],
        "fixed_in": [
          "0",
          "5.15.195",
          "6.1.156",
          "6.6.112",
          "6.12.53",
          "6.17.3",
          "6.18"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to f6b36cfd25cbadad63447c673743cf771090e756 or 3ac37e100385b59ac821a62118494442238aaac4 or a86c8b9d03f7101e1750233846fe989df6f0d631 or 9378cfe228c2c679564a4116bcb28c8e89dff989 or 5aa5799d162ad1b8e8b699d48b6218143c695a78 or 736fc7bf5f68f6b74a0925b7e072c571838657d2 or later.",
      "Upgrade Linux to 0 or 5.15.195 or 6.1.156 or 6.6.112 or 6.12.53 or 6.17.3 or 6.18 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
