{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2024-38590",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-06-18T19:36:34.930Z",
        "datePublished": "2024-06-19T13:45:41.928Z",
        "dateUpdated": "2026-08-05T11:33:02.219Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T11:33:02.219Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H",
                        "baseScore": 7.1,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "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()` → `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 — 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 — kernel log flooding, lockup/panic, and log disclosure — 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 — rkey/immediate data, local and remote QPN, source MAC, VLAN — 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."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/infiniband/hw/hns/hns_roce_hw_v2.c"
                    ],
                    "versions": [
                        {
                            "version": "7c044adca272768d821921f11d3da4587dcec68a",
                            "lessThan": "45b31be4dd22827903df15c548b97b416790139b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7c044adca272768d821921f11d3da4587dcec68a",
                            "lessThan": "cc699b7eb2bc963c12ffcd37f80f45330d2924bd",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7c044adca272768d821921f11d3da4587dcec68a",
                            "lessThan": "17f3741c65c4a042ae8ba094068b07a4b77e213c",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7c044adca272768d821921f11d3da4587dcec68a",
                            "lessThan": "6f541a89ced8305da459e3ab0006e7528cf7da7b",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7c044adca272768d821921f11d3da4587dcec68a",
                            "lessThan": "817a10a6df9354e67561922d2b7fce48dfbebc55",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7c044adca272768d821921f11d3da4587dcec68a",
                            "lessThan": "06cf121346bbd3d83a5eea05bb87666c6b279990",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "7c044adca272768d821921f11d3da4587dcec68a",
                            "lessThan": "349e859952285ab9689779fb46de163f13f18f43",
                            "status": "affected",
                            "versionType": "git"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/infiniband/hw/hns/hns_roce_hw_v2.c"
                    ],
                    "versions": [
                        {
                            "version": "5.8",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.8",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.219",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.161",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.93",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.33",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.8.12",
                            "lessThanOrEqual": "6.8.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.9.3",
                            "lessThanOrEqual": "6.9.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.10",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "5.10.219"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "5.15.161"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "6.1.93"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "6.6.33"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "6.8.12"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "6.9.3"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.8",
                                    "versionEndExcluding": "6.10"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/45b31be4dd22827903df15c548b97b416790139b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/cc699b7eb2bc963c12ffcd37f80f45330d2924bd"
                },
                {
                    "url": "https://git.kernel.org/stable/c/17f3741c65c4a042ae8ba094068b07a4b77e213c"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6f541a89ced8305da459e3ab0006e7528cf7da7b"
                },
                {
                    "url": "https://git.kernel.org/stable/c/817a10a6df9354e67561922d2b7fce48dfbebc55"
                },
                {
                    "url": "https://git.kernel.org/stable/c/06cf121346bbd3d83a5eea05bb87666c6b279990"
                },
                {
                    "url": "https://git.kernel.org/stable/c/349e859952285ab9689779fb46de163f13f18f43"
                }
            ],
            "title": "RDMA/hns: Modify the print level of CQE error",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-06-20T15:39:58.504819Z",
                                "id": "CVE-2024-38590",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-06-20T15:40:07.688Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T04:12:25.931Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://git.kernel.org/stable/c/45b31be4dd22827903df15c548b97b416790139b",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/cc699b7eb2bc963c12ffcd37f80f45330d2924bd",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/17f3741c65c4a042ae8ba094068b07a4b77e213c",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/6f541a89ced8305da459e3ab0006e7528cf7da7b",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/817a10a6df9354e67561922d2b7fce48dfbebc55",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/06cf121346bbd3d83a5eea05bb87666c6b279990",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/349e859952285ab9689779fb46de163f13f18f43",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}