{
  "id": "CVE-2025-37911",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-37911",
  "published_at": "2025-05-20T15:21:43.278Z",
  "title": "bnxt_en: Fix out-of-bound memcpy() during ethtool -w",
  "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\nbnxt_en: Fix out-of-bound memcpy() during ethtool -w\n\nWhen retrieving the FW coredump using ethtool, it can sometimes cause\nmemory corruption:\n\nBUG: KFENCE: memory corruption in __bnxt_get_coredump+0x3ef/0x670 [bnxt_en]\nCorrupted memory at 0x000000008f0f30e8 [ ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ] (in kfence-#45):\n__bnxt_get_coredump+0x3ef/0x670 [bnxt_en]\nethtool_get_dump_data+0xdc/0x1a0\n__dev_ethtool+0xa1e/0x1af0\ndev_ethtool+0xa8/0x170\ndev_ioctl+0x1b5/0x580\nsock_do_ioctl+0xab/0xf0\nsock_ioctl+0x1ce/0x2e0\n__x64_sys_ioctl+0x87/0xc0\ndo_syscall_64+0x5c/0xf0\nentry_SYSCALL_64_after_hwframe+0x78/0x80\n\n...\n\nThis happens when copying the coredump segment list in\nbnxt_hwrm_dbg_dma_data() with the HWRM_DBG_COREDUMP_LIST FW command.\nThe info-\u003edest_buf buffer is allocated based on the number of coredump\nsegments returned by the FW.  The segment list is then DMA'ed by\nthe FW and the length of the DMA is returned by FW.  The driver then\ncopies this DMA'ed segment list to info-\u003edest_buf.\n\nIn some cases, this DMA length may exceed the info-\u003edest_buf length\nand cause the above BUG condition.  Fix it by capping the copy\nlength to not exceed the length of info-\u003edest_buf.  The extra\nDMA data contains no useful information.\n\nThis code path is shared for the HWRM_DBG_COREDUMP_LIST and the\nHWRM_DBG_COREDUMP_RETRIEVE FW commands.  The buffering is different\nfor these 2 FW commands.  To simplify the logic, we need to move\nthe line to adjust the buffer length for HWRM_DBG_COREDUMP_RETRIEVE\nup, so that the new check to cap the copy length will work for both\ncommands.",
  "cwe": "CWE-125",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.5:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.5:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.5:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.5:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.5:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:5.5:rc7:*:*:*:*:*:*",
    "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:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= c74751f4c39232c31214ec6a3bc1c7e62f5c728b, \u003c 69b10dd23ab826d0c7f2d9ab311842251978d0c1",
          "\u003e= c74751f4c39232c31214ec6a3bc1c7e62f5c728b, \u003c 43292b83424158fa6ec458799f3cb9c54d18c484",
          "\u003e= c74751f4c39232c31214ec6a3bc1c7e62f5c728b, \u003c 4d69864915a3a052538e4ba76cd6fd77cfc64ebe",
          "\u003e= c74751f4c39232c31214ec6a3bc1c7e62f5c728b, \u003c 44807af79efd0d78fa36383dd865ddfe7992c0a6",
          "\u003e= c74751f4c39232c31214ec6a3bc1c7e62f5c728b, \u003c 44d81a9ebf0cad92512e0ffdf7412bfe20db66ec",
          "\u003e= c74751f4c39232c31214ec6a3bc1c7e62f5c728b, \u003c 6b87bd94f34370bbf1dfa59352bed8efab5bf419",
          "4bf973a1f84aefb64750bdb3afe72d54de3199d7",
          "a76837dd731b68cc3b5690470bc9efa2a8e3801a",
          "\u003e= 4.19.95, \u003c 4.20",
          "\u003e= 5.4.8, \u003c 5.5"
        ],
        "fixed_in": [
          "69b10dd23ab826d0c7f2d9ab311842251978d0c1",
          "43292b83424158fa6ec458799f3cb9c54d18c484",
          "4d69864915a3a052538e4ba76cd6fd77cfc64ebe",
          "44807af79efd0d78fa36383dd865ddfe7992c0a6",
          "44d81a9ebf0cad92512e0ffdf7412bfe20db66ec",
          "6b87bd94f34370bbf1dfa59352bed8efab5bf419",
          "4.20",
          "5.5"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "5.5"
        ],
        "fixed_in": [
          "0",
          "5.15.182",
          "6.1.138",
          "6.6.90",
          "6.12.28",
          "6.14.6",
          "6.15"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 69b10dd23ab826d0c7f2d9ab311842251978d0c1 or 43292b83424158fa6ec458799f3cb9c54d18c484 or 4d69864915a3a052538e4ba76cd6fd77cfc64ebe or 44807af79efd0d78fa36383dd865ddfe7992c0a6 or 44d81a9ebf0cad92512e0ffdf7412bfe20db66ec or 6b87bd94f34370bbf1dfa59352bed8efab5bf419 or 4.20 or 5.5 or later.",
      "Upgrade Linux to 0 or 5.15.182 or 6.1.138 or 6.6.90 or 6.12.28 or 6.14.6 or 6.15 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
