{
  "id": "CVE-2025-38058",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38058",
  "published_at": "2025-06-18T09:33:38.022Z",
  "title": "__legitimize_mnt(): check for MNT_SYNC_UMOUNT should be under mount_lock",
  "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\n__legitimize_mnt(): check for MNT_SYNC_UMOUNT should be under mount_lock\n\n... or we risk stealing final mntput from sync umount - raising mnt_count\nafter umount(2) has verified that victim is not busy, but before it\nhas set MNT_SYNC_UMOUNT; in that case __legitimize_mnt() doesn't see\nthat it's safe to quietly undo mnt_count increment and leaves dropping\nthe reference to caller, where it'll be a full-blown mntput().\n\nCheck under mount_lock is needed; leaving the current one done before\ntaking that makes no sense - it's nowhere near common enough to bother\nwith.",
  "cwe": "CWE-667",
  "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.15:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.15:rc5:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 48a066e72d970a3e225a9c18690d570c736fc455, \u003c 628fb00195ce21a90cf9e4e3d105cd9e58f77b40",
          "\u003e= 48a066e72d970a3e225a9c18690d570c736fc455, \u003c b89eb56a378b7b2c1176787fc228d0a57172bdd5",
          "\u003e= 48a066e72d970a3e225a9c18690d570c736fc455, \u003c f6d45fd92f62845cbd1eb5128fd8f0ed7d0c5a42",
          "\u003e= 48a066e72d970a3e225a9c18690d570c736fc455, \u003c 9b0915e72b3cf52474dcee0b24a2f99d93e604a3",
          "\u003e= 48a066e72d970a3e225a9c18690d570c736fc455, \u003c d8ece4ced3b051e656c77180df2e69e19e24edc1",
          "\u003e= 48a066e72d970a3e225a9c18690d570c736fc455, \u003c 8cafd7266fa02e0863bacbf872fe635c0b9725eb",
          "\u003e= 48a066e72d970a3e225a9c18690d570c736fc455, \u003c b55996939c71a3e1a38f3cdc6a8859797efc9083",
          "\u003e= 48a066e72d970a3e225a9c18690d570c736fc455, \u003c 250cf3693060a5f803c5f1ddc082bb06b16112a9"
        ],
        "fixed_in": [
          "628fb00195ce21a90cf9e4e3d105cd9e58f77b40",
          "b89eb56a378b7b2c1176787fc228d0a57172bdd5",
          "f6d45fd92f62845cbd1eb5128fd8f0ed7d0c5a42",
          "9b0915e72b3cf52474dcee0b24a2f99d93e604a3",
          "d8ece4ced3b051e656c77180df2e69e19e24edc1",
          "8cafd7266fa02e0863bacbf872fe635c0b9725eb",
          "b55996939c71a3e1a38f3cdc6a8859797efc9083",
          "250cf3693060a5f803c5f1ddc082bb06b16112a9"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.13"
        ],
        "fixed_in": [
          "0",
          "5.4.294",
          "5.10.238",
          "5.15.185",
          "6.1.141",
          "6.6.93",
          "6.12.31",
          "6.14.9",
          "6.15"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 628fb00195ce21a90cf9e4e3d105cd9e58f77b40 or b89eb56a378b7b2c1176787fc228d0a57172bdd5 or f6d45fd92f62845cbd1eb5128fd8f0ed7d0c5a42 or 9b0915e72b3cf52474dcee0b24a2f99d93e604a3 or d8ece4ced3b051e656c77180df2e69e19e24edc1 or 8cafd7266fa02e0863bacbf872fe635c0b9725eb or b55996939c71a3e1a38f3cdc6a8859797efc9083 or 250cf3693060a5f803c5f1ddc082bb06b16112a9 or later.",
      "Upgrade Linux to 0 or 5.4.294 or 5.10.238 or 5.15.185 or 6.1.141 or 6.6.93 or 6.12.31 or 6.14.9 or 6.15 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
