{
  "id": "CVE-2025-39949",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-39949",
  "published_at": "2025-10-04T07:31:10.164Z",
  "title": "qed: Don't collect too many protection override GRC elements",
  "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\nqed: Don't collect too many protection override GRC elements\n\nIn the protection override dump path, the firmware can return far too\nmany GRC elements, resulting in attempting to write past the end of the\npreviously-kmalloc'ed dump buffer.\n\nThis will result in a kernel panic with reason:\n\n BUG: unable to handle kernel paging request at ADDRESS\n\nwhere \"ADDRESS\" is just past the end of the protection override dump\nbuffer. The start address of the buffer is:\n p_hwfn-\u003ecdev-\u003edbg_features[DBG_FEATURE_PROTECTION_OVERRIDE].dump_buf\nand the size of the buffer is buf_size in the same data structure.\n\nThe panic can be arrived at from either the qede Ethernet driver path:\n\n    [exception RIP: qed_grc_dump_addr_range+0x108]\n qed_protection_override_dump at ffffffffc02662ed [qed]\n qed_dbg_protection_override_dump at ffffffffc0267792 [qed]\n qed_dbg_feature at ffffffffc026aa8f [qed]\n qed_dbg_all_data at ffffffffc026b211 [qed]\n qed_fw_fatal_reporter_dump at ffffffffc027298a [qed]\n devlink_health_do_dump at ffffffff82497f61\n devlink_health_report at ffffffff8249cf29\n qed_report_fatal_error at ffffffffc0272baf [qed]\n qede_sp_task at ffffffffc045ed32 [qede]\n process_one_work at ffffffff81d19783\n\nor the qedf storage driver path:\n\n    [exception RIP: qed_grc_dump_addr_range+0x108]\n qed_protection_override_dump at ffffffffc068b2ed [qed]\n qed_dbg_protection_override_dump at ffffffffc068c792 [qed]\n qed_dbg_feature at ffffffffc068fa8f [qed]\n qed_dbg_all_data at ffffffffc0690211 [qed]\n qed_fw_fatal_reporter_dump at ffffffffc069798a [qed]\n devlink_health_do_dump at ffffffff8aa95e51\n devlink_health_report at ffffffff8aa9ae19\n qed_report_fatal_error at ffffffffc0697baf [qed]\n qed_hw_err_notify at ffffffffc06d32d7 [qed]\n qed_spq_post at ffffffffc06b1011 [qed]\n qed_fcoe_destroy_conn at ffffffffc06b2e91 [qed]\n qedf_cleanup_fcport at ffffffffc05e7597 [qedf]\n qedf_rport_event_handler at ffffffffc05e7bf7 [qedf]\n fc_rport_work at ffffffffc02da715 [libfc]\n process_one_work at ffffffff8a319663\n\nResolve this by clamping the firmware's return value to the maximum\nnumber of legal elements the firmware should return.",
  "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:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc6:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 5.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= d52c89f120de849575f6b2e5948038f2be12ce6f, \u003c 25672c620421fa2105703a94a29a03487245e6d6",
          "\u003e= d52c89f120de849575f6b2e5948038f2be12ce6f, \u003c e0e24571a7b2f8c8f06e25d3417253ebbdbc8d5c",
          "\u003e= d52c89f120de849575f6b2e5948038f2be12ce6f, \u003c 8141910869596b7a3a5d9b46107da2191d523f82",
          "\u003e= d52c89f120de849575f6b2e5948038f2be12ce6f, \u003c ea53e6a47e148b490b1c652fc65d2de5a086df76",
          "\u003e= d52c89f120de849575f6b2e5948038f2be12ce6f, \u003c 660b2a8f5a306a28c7efc1b4990ecc4912a68f87",
          "\u003e= d52c89f120de849575f6b2e5948038f2be12ce6f, \u003c 70affe82e38fd3dc76b9c68b5a1989f11e7fa0f3",
          "\u003e= d52c89f120de849575f6b2e5948038f2be12ce6f, \u003c 56c0a2a9ddc2f5b5078c5fb0f81ab76bbc3d4c37"
        ],
        "fixed_in": [
          "25672c620421fa2105703a94a29a03487245e6d6",
          "e0e24571a7b2f8c8f06e25d3417253ebbdbc8d5c",
          "8141910869596b7a3a5d9b46107da2191d523f82",
          "ea53e6a47e148b490b1c652fc65d2de5a086df76",
          "660b2a8f5a306a28c7efc1b4990ecc4912a68f87",
          "70affe82e38fd3dc76b9c68b5a1989f11e7fa0f3",
          "56c0a2a9ddc2f5b5078c5fb0f81ab76bbc3d4c37"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "4.18"
        ],
        "fixed_in": [
          "0",
          "5.10.245",
          "5.15.194",
          "6.1.154",
          "6.6.108",
          "6.12.49",
          "6.16.9",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 25672c620421fa2105703a94a29a03487245e6d6 or e0e24571a7b2f8c8f06e25d3417253ebbdbc8d5c or 8141910869596b7a3a5d9b46107da2191d523f82 or ea53e6a47e148b490b1c652fc65d2de5a086df76 or 660b2a8f5a306a28c7efc1b4990ecc4912a68f87 or 70affe82e38fd3dc76b9c68b5a1989f11e7fa0f3 or 56c0a2a9ddc2f5b5078c5fb0f81ab76bbc3d4c37 or later.",
      "Upgrade Linux to 0 or 5.10.245 or 5.15.194 or 6.1.154 or 6.6.108 or 6.12.49 or 6.16.9 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
