{
  "id": "CVE-2025-39872",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-39872",
  "published_at": "2025-09-23T06:00:45.528Z",
  "title": "hsr: hold rcu and dev lock for hsr_get_port_ndev",
  "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\nhsr: hold rcu and dev lock for hsr_get_port_ndev\n\nhsr_get_port_ndev calls hsr_for_each_port, which need to hold rcu lock.\nOn the other hand, before return the port device, we need to hold the\ndevice reference to avoid UaF in the caller function.",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc5:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= ef964411c8ca775967355d855abc56aeaca3c867, \u003c 9433ba79c2ec3ec7c9a711748701549339c3438c",
          "\u003e= 9c10dd8eed74de9e8adeb820939f8745cd566d4a, \u003c 68a6729afd3e8e9a2a32538642ce92b96ccf9b1d",
          "\u003e= 9c10dd8eed74de9e8adeb820939f8745cd566d4a, \u003c 847748fc66d08a89135a74e29362a66ba4e3ab15",
          "\u003e= 6.12.63, \u003c 6.12.64"
        ],
        "fixed_in": [
          "9433ba79c2ec3ec7c9a711748701549339c3438c",
          "68a6729afd3e8e9a2a32538642ce92b96ccf9b1d",
          "847748fc66d08a89135a74e29362a66ba4e3ab15",
          "6.12.64"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.14"
        ],
        "fixed_in": [
          "0",
          "6.12.64",
          "6.16.8",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 9433ba79c2ec3ec7c9a711748701549339c3438c or 68a6729afd3e8e9a2a32538642ce92b96ccf9b1d or 847748fc66d08a89135a74e29362a66ba4e3ab15 or 6.12.64 or later.",
      "Upgrade Linux to 0 or 6.12.64 or 6.16.8 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
