{
  "id": "CVE-2025-39810",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-39810",
  "published_at": "2025-09-16T13:00:12.677Z",
  "title": "bnxt_en: Fix memory corruption when FW resources change during ifdown",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cisa-adp",
    "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\nbnxt_en: Fix memory corruption when FW resources change during ifdown\n\nbnxt_set_dflt_rings() assumes that it is always called before any TC has\nbeen created.  So it doesn't take bp-\u003enum_tc into account and assumes\nthat it is always 0 or 1.\n\nIn the FW resource or capability change scenario, the FW will return\nflags in bnxt_hwrm_if_change() that will cause the driver to\nreinitialize and call bnxt_cancel_reservations().  This will lead to\nbnxt_init_dflt_ring_mode() calling bnxt_set_dflt_rings() and bp-\u003enum_tc\nmay be greater than 1.  This will cause bp-\u003etx_ring[] to be sized too\nsmall and cause memory corruption in bnxt_alloc_cp_rings().\n\nFix it by properly scaling the TX rings by bp-\u003enum_tc in the code\npaths mentioned above.  Add 2 helper functions to determine\nbp-\u003etx_nr_rings and bp-\u003etx_nr_rings_per_tc.",
  "cwe": "CWE-787",
  "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:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.8,
    "cna": 7.8,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= ec5d31e3c15d5233b491400133c67f78a320062c, \u003c c0082a8947cf1a543013346d10c1857f0c57db83",
          "\u003e= ec5d31e3c15d5233b491400133c67f78a320062c, \u003c dc797a4bbbcac6d19e6e2508e4df685755cd94a5",
          "\u003e= ec5d31e3c15d5233b491400133c67f78a320062c, \u003c d00e98977ef519280b075d783653e2c492fffbb6",
          "\u003e= ec5d31e3c15d5233b491400133c67f78a320062c, \u003c 9ab6a9950f152e094395d2e3967f889857daa185",
          "\u003e= ec5d31e3c15d5233b491400133c67f78a320062c, \u003c 2747328ba2714f1a7454208dbbc1dc0631990b4a"
        ],
        "fixed_in": [
          "c0082a8947cf1a543013346d10c1857f0c57db83",
          "dc797a4bbbcac6d19e6e2508e4df685755cd94a5",
          "d00e98977ef519280b075d783653e2c492fffbb6",
          "9ab6a9950f152e094395d2e3967f889857daa185",
          "2747328ba2714f1a7454208dbbc1dc0631990b4a"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.4"
        ],
        "fixed_in": [
          "0",
          "6.1.191",
          "6.6.160",
          "6.12.45",
          "6.16.5",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to c0082a8947cf1a543013346d10c1857f0c57db83 or dc797a4bbbcac6d19e6e2508e4df685755cd94a5 or d00e98977ef519280b075d783653e2c492fffbb6 or 9ab6a9950f152e094395d2e3967f889857daa185 or 2747328ba2714f1a7454208dbbc1dc0631990b4a or later.",
      "Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.45 or 6.16.5 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
