{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2024-38590",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2024-38590"
  ],
  "published": "2024-06-19T13:46:33Z",
  "summary": "RDMA/hns: Modify the print level of CQE error",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/hns: Modify the print level of CQE error\n\nToo much print may lead to a panic in kernel. Change ibdev_err() to\nibdev_err_ratelimited(), and change the printing level of cqe dump\nto debug level.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.93",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2024-38590"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/45b31be4dd22827903df15c548b97b416790139b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/cc699b7eb2bc963c12ffcd37f80f45330d2924bd"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/17f3741c65c4a042ae8ba094068b07a4b77e213c"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/6f541a89ced8305da459e3ab0006e7528cf7da7b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/817a10a6df9354e67561922d2b7fce48dfbebc55"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/06cf121346bbd3d83a5eea05bb87666c6b279990"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/349e859952285ab9689779fb46de163f13f18f43"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-05T11:52:36Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.1,
      "cvss_v3_severity": "High",
      "scenario": "AV:A - hns_roce is a RoCE HCA, and the printing path is driven by error completions that a peer on the same RDMA/Ethernet fabric can generate against kernel ULP CQs (NFS/RDMA server, SMB Direct, nvmet-rdma, SMC-R) polled via `__ib_process_cq()` \u2192 `hns_roce_v2_poll_cq()`. RoCE is confined to a lossless L2/L3 datacenter segment rather than the open Internet, so the attacker must be on the adjacent fabric.\nAC:L - The attacker fully controls the trigger \u2014 repeatedly opening RDMA connections or issuing requests with invalid rkeys deterministically produces non-flush error CQEs, each of which emits an unratelimited KERN_ERR line plus a hex dump. No memory-layout or timing condition outside the attacker's control is involved.\nPR:N - RDMA target services (NFS/RDMA, SMB Direct, nvmet-rdma, SMC-R) accept connections from any peer on the fabric, and connection-setup/teardown transport errors occur before any application-level authentication. The alternative local path only needs an unprivileged user with the world-accessible /dev/infiniband/uverbs* device.\nUI:N - The flood is produced entirely by attacker-initiated RDMA traffic (or attacker-issued poll_cq calls); no action by any local user or administrator is needed.\nS:U - The impact \u2014 kernel log flooding, lockup/panic, and log disclosure \u2014 stays within the kernel's own security authority on the affected host; no VM, IOMMU, or sandbox boundary is crossed.\nC:L - The KERN_ERR `print_hex_dump()` of the raw CQE exposes connection metadata \u2014 rkey/immediate data, local and remote QPN, source MAC, VLAN \u2014 to the console and dmesg, where unprivileged local readers see it when dmesg_restrict is off. The leak is real but bounded to 32/64 bytes of completion data, not arbitrary kernel memory.\nI:N - No memory corruption or data modification occurs; the change only alters log verbosity and rate.\nA:H - The commit states outright that \"too much print may lead to a panic in kernel\"; the unratelimited printk plus per-CQE hex dump executes under `spin_lock_irqsave(&hr_cq->lock)`, so a burst of error completions keeps a CPU with interrupts disabled writing to a slow console, producing soft/hard-lockup watchdog panics and console/log saturation."
    }
  }
}
