{
  "id": "CVE-2025-21650",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21650",
  "published_at": "2025-01-19T10:18:07.976Z",
  "title": "net: hns3: fixed hclge_fetch_pf_reg accesses bar space out of bounds issue",
  "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\nnet: hns3: fixed hclge_fetch_pf_reg accesses bar space out of bounds issue\n\nThe TQP BAR space is divided into two segments. TQPs 0-1023 and TQPs\n1024-1279 are in different BAR space addresses. However,\nhclge_fetch_pf_reg does not distinguish the tqp space information when\nreading the tqp space information. When the number of TQPs is greater\nthan 1024, access bar space overwriting occurs.\nThe problem of different segments has been considered during the\ninitialization of tqp.io_base. Therefore, tqp.io_base is directly used\nwhen the queue is read in hclge_fetch_pf_reg.\n\nThe error message:\n\nUnable to handle kernel paging request at virtual address ffff800037200000\npc : hclge_fetch_pf_reg+0x138/0x250 [hclge]\nlr : hclge_get_regs+0x84/0x1d0 [hclge]\nCall trace:\n hclge_fetch_pf_reg+0x138/0x250 [hclge]\n hclge_get_regs+0x84/0x1d0 [hclge]\n hns3_get_regs+0x2c/0x50 [hns3]\n ethtool_get_regs+0xf4/0x270\n dev_ethtool+0x674/0x8a0\n dev_ioctl+0x270/0x36c\n sock_do_ioctl+0x110/0x2a0\n sock_ioctl+0x2ac/0x530\n __arm64_sys_ioctl+0xa8/0x100\n invoke_syscall+0x4c/0x124\n el0_svc_common.constprop.0+0x140/0x15c\n do_el0_svc+0x30/0xd0\n el0_svc+0x1c/0x2c\n el0_sync_handler+0xb0/0xb4\n el0_sync+0x168/0x180",
  "cwe": "CWE-787",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.13:rc6:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.8,
    "cna": 7.1,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 939ccd107ffcade20c9c7055a2e7ae0fd724fb72, \u003c a85246635466752b9af72188e4a839541120d952",
          "\u003e= 939ccd107ffcade20c9c7055a2e7ae0fd724fb72, \u003c 0575baa733fc4219f230aef22d5bc35d922f1e9a",
          "\u003e= 939ccd107ffcade20c9c7055a2e7ae0fd724fb72, \u003c 7997ddd46c54408bcba5e37fe18b4d832e45d4d4",
          "df34972a33d268a7113c119fe4e4b07a6819aa0c",
          "2b1fff96a297034f03466cfecda9824adafe16ed",
          "\u003e= 6.4.16, \u003c 6.5",
          "\u003e= 6.5.3, \u003c 6.6"
        ],
        "fixed_in": [
          "a85246635466752b9af72188e4a839541120d952",
          "0575baa733fc4219f230aef22d5bc35d922f1e9a",
          "7997ddd46c54408bcba5e37fe18b4d832e45d4d4",
          "6.5",
          "6.6"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.6"
        ],
        "fixed_in": [
          "0",
          "6.6.160",
          "6.12.10",
          "6.13"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to a85246635466752b9af72188e4a839541120d952 or 0575baa733fc4219f230aef22d5bc35d922f1e9a or 7997ddd46c54408bcba5e37fe18b4d832e45d4d4 or 6.5 or 6.6 or later.",
      "Upgrade Linux to 0 or 6.6.160 or 6.12.10 or 6.13 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
