{
  "id": "CVE-2025-38657",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-38657",
  "published_at": "2025-08-22T16:01:00.512Z",
  "title": "wifi: rtw89: mcc: prevent shift wrapping in rtw89_core_mlsr_switch()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.3,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/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\nwifi: rtw89: mcc: prevent shift wrapping in rtw89_core_mlsr_switch()\n\nThe \"link_id\" value comes from the user via debugfs.  If it's larger\nthan BITS_PER_LONG then that would result in shift wrapping and\npotentially an out of bounds access later.  In fact, we can limit it\nto IEEE80211_MLD_MAX_NUM_LINKS (15).\n\nFortunately, only root can write to debugfs files so the security\nimpact is minimal.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:6.16:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.3,
    "nvd": 7.1
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 9dd85e739ce0765f022014c3e0713e1007d7ef60, \u003c 417cfa9cc44fbe6bceab786f9a4ee5a210f1288e",
          "\u003e= 9dd85e739ce0765f022014c3e0713e1007d7ef60, \u003c 53cf488927a0f79968f9c03c4d1e00d2a79731c3"
        ],
        "fixed_in": [
          "417cfa9cc44fbe6bceab786f9a4ee5a210f1288e",
          "53cf488927a0f79968f9c03c4d1e00d2a79731c3"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.16"
        ],
        "fixed_in": [
          "0",
          "6.16.1",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 417cfa9cc44fbe6bceab786f9a4ee5a210f1288e or 53cf488927a0f79968f9c03c4d1e00d2a79731c3 or later.",
      "Upgrade Linux to 0 or 6.16.1 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
