{
  "id": "CVE-2025-39788",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-39788",
  "published_at": "2025-09-11T16:56:37.173Z",
  "title": "scsi: ufs: exynos: Fix programming of HCI_UTRL_NEXUS_TYPE",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "nvd",
    "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\nscsi: ufs: exynos: Fix programming of HCI_UTRL_NEXUS_TYPE\n\nOn Google gs101, the number of UTP transfer request slots (nutrs) is 32,\nand in this case the driver ends up programming the UTRL_NEXUS_TYPE\nincorrectly as 0.\n\nThis is because the left hand side of the shift is 1, which is of type\nint, i.e. 31 bits wide. Shifting by more than that width results in\nundefined behaviour.\n\nFix this by switching to the BIT() macro, which applies correct type\ncasting as required. This ensures the correct value is written to\nUTRL_NEXUS_TYPE (0xffffffff on gs101), and it also fixes a UBSAN shift\nwarning:\n\n    UBSAN: shift-out-of-bounds in drivers/ufs/host/ufs-exynos.c:1113:21\n    shift exponent 32 is too large for 32-bit type 'int'\n\nFor consistency, apply the same change to the nutmrs / UTMRL_NEXUS_TYPE\nwrite.",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 55f4b1f73631a0817717fe6e98517de51b4c3527, \u003c 01510a9e8222f11cce064410f3c2fcf0756c0a08",
          "\u003e= 55f4b1f73631a0817717fe6e98517de51b4c3527, \u003c 098b2c8ee208c77126839047b9e6e1925bb35baa",
          "\u003e= 55f4b1f73631a0817717fe6e98517de51b4c3527, \u003c c1f025da8f370a015e412b55cbcc583f91de8316",
          "\u003e= 55f4b1f73631a0817717fe6e98517de51b4c3527, \u003c 6d53b2a134da77eb7fe65c5c7c7a3c193539a78a",
          "\u003e= 55f4b1f73631a0817717fe6e98517de51b4c3527, \u003c dc8fb963742f1a38d284946638f9358bdaa0ddee",
          "\u003e= 55f4b1f73631a0817717fe6e98517de51b4c3527, \u003c 5b9f1ef293428ea9c0871d96fcec2a87c4445832",
          "\u003e= 55f4b1f73631a0817717fe6e98517de51b4c3527, \u003c 01aad16c2257ab8ff33b152b972c9f2e1af47912"
        ],
        "fixed_in": [
          "01510a9e8222f11cce064410f3c2fcf0756c0a08",
          "098b2c8ee208c77126839047b9e6e1925bb35baa",
          "c1f025da8f370a015e412b55cbcc583f91de8316",
          "6d53b2a134da77eb7fe65c5c7c7a3c193539a78a",
          "dc8fb963742f1a38d284946638f9358bdaa0ddee",
          "5b9f1ef293428ea9c0871d96fcec2a87c4445832",
          "01aad16c2257ab8ff33b152b972c9f2e1af47912"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.9"
        ],
        "fixed_in": [
          "0",
          "5.10.241",
          "5.15.190",
          "6.1.149",
          "6.6.103",
          "6.12.44",
          "6.16.4",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 01510a9e8222f11cce064410f3c2fcf0756c0a08 or 098b2c8ee208c77126839047b9e6e1925bb35baa or c1f025da8f370a015e412b55cbcc583f91de8316 or 6d53b2a134da77eb7fe65c5c7c7a3c193539a78a or dc8fb963742f1a38d284946638f9358bdaa0ddee or 5b9f1ef293428ea9c0871d96fcec2a87c4445832 or 01aad16c2257ab8ff33b152b972c9f2e1af47912 or later.",
      "Upgrade Linux to 0 or 5.10.241 or 5.15.190 or 6.1.149 or 6.6.103 or 6.12.44 or 6.16.4 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
