{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2021-47485",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-05-22T06:20:56.201Z",
        "datePublished": "2024-05-22T08:19:36.158Z",
        "dateUpdated": "2026-08-05T08:48:01.651Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T08:48:01.651Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nIB/qib: Protect from buffer overflow in struct qib_user_sdma_pkt fields\n\nOverflowing either addrlimit or bytes_togo can allow userspace to trigger\na buffer overflow of kernel memory. Check for overflows in all the places\ndoing math on user controlled buffers."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The bug is reached only via local writev/write_iter on the qib char device (/dev/ipath) after context assignment; it is not triggered by remote InfiniBand packet processing.\nAC:L - The attacker fully controls iovec lengths and PBC/header fields that drive the overflowing arithmetic, so the heap overflow can be triggered reliably once the QIB device is present and SDMA is running.\nPR:L - No capabilities are checked on the open/assign/writev path; access is only gated by /dev/ipath permissions, and this userspace SDMA interface is intended for unprivileged PSM/MPI processes on systems with the HCA.\nUI:N - The attacker opens the device and issues crafted write/writev calls themselves; no separate victim action is required.\nS:U - Impact is kernel memory corruption and privilege escalation on the same host authority, not a cross-boundary escape (VM/IOMMU/sandbox).\nC:H - A controllable kernel heap buffer overflow can be leveraged for arbitrary kernel memory disclosure.\nI:H - Kernel heap overflow of qib_user_sdma_pkt addr[]/adjacent memory enables arbitrary write and control-flow hijacking for full integrity compromise.\nA:H - The same heap corruption can cause kernel oops/panic or hang, fully impacting availability."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/infiniband/hw/qib/qib_user_sdma.c"
                    ],
                    "versions": [
                        {
                            "version": "f931551bafe1f10ded7f5282e2aa162c267a2e5d",
                            "lessThan": "bda41654b6e0c125a624ca35d6d20beb8015b5d0",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "f931551bafe1f10ded7f5282e2aa162c267a2e5d",
                            "lessThan": "3f57c3f67fd93b4da86aeffea1ca32c484d054ad",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "f931551bafe1f10ded7f5282e2aa162c267a2e5d",
                            "lessThan": "60833707b968d5ae02a75edb7886dcd4a957cf0d",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "f931551bafe1f10ded7f5282e2aa162c267a2e5d",
                            "lessThan": "73d2892148aa4397a885b4f4afcfc5b27a325c42",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "f931551bafe1f10ded7f5282e2aa162c267a2e5d",
                            "lessThan": "0f8cdfff06829a0b0348b6debc29ff6a61967724",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "f931551bafe1f10ded7f5282e2aa162c267a2e5d",
                            "lessThan": "c3e17e58f571f34c51aeb17274ed02c2ed5cf780",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "f931551bafe1f10ded7f5282e2aa162c267a2e5d",
                            "lessThan": "0d4395477741608d123dad51def9fe50b7ebe952",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "f931551bafe1f10ded7f5282e2aa162c267a2e5d",
                            "lessThan": "d39bf40e55e666b5905fdbd46a0dced030ce87be",
                            "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/qib/qib_user_sdma.c"
                    ],
                    "versions": [
                        {
                            "version": "2.6.35",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "2.6.35",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.4.292",
                            "lessThanOrEqual": "4.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.9.290",
                            "lessThanOrEqual": "4.9.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.14.255",
                            "lessThanOrEqual": "4.14.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.19.216",
                            "lessThanOrEqual": "4.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.157",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.77",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.14.16",
                            "lessThanOrEqual": "5.14.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15",
                            "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": "2.6.35",
                                    "versionEndExcluding": "4.4.292"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.35",
                                    "versionEndExcluding": "4.9.290"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.35",
                                    "versionEndExcluding": "4.14.255"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.35",
                                    "versionEndExcluding": "4.19.216"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.35",
                                    "versionEndExcluding": "5.4.157"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.35",
                                    "versionEndExcluding": "5.10.77"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.35",
                                    "versionEndExcluding": "5.14.16"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "2.6.35",
                                    "versionEndExcluding": "5.15"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/bda41654b6e0c125a624ca35d6d20beb8015b5d0"
                },
                {
                    "url": "https://git.kernel.org/stable/c/3f57c3f67fd93b4da86aeffea1ca32c484d054ad"
                },
                {
                    "url": "https://git.kernel.org/stable/c/60833707b968d5ae02a75edb7886dcd4a957cf0d"
                },
                {
                    "url": "https://git.kernel.org/stable/c/73d2892148aa4397a885b4f4afcfc5b27a325c42"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0f8cdfff06829a0b0348b6debc29ff6a61967724"
                },
                {
                    "url": "https://git.kernel.org/stable/c/c3e17e58f571f34c51aeb17274ed02c2ed5cf780"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0d4395477741608d123dad51def9fe50b7ebe952"
                },
                {
                    "url": "https://git.kernel.org/stable/c/d39bf40e55e666b5905fdbd46a0dced030ce87be"
                }
            ],
            "title": "IB/qib: Protect from buffer overflow in struct qib_user_sdma_pkt fields",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "title": "CISA ADP Vulnrichment",
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2021-47485",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2024-05-22T18:45:08.968768Z"
                            }
                        }
                    }
                ],
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-06-04T17:14:26.389Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-04T05:39:59.745Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://git.kernel.org/stable/c/bda41654b6e0c125a624ca35d6d20beb8015b5d0",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/3f57c3f67fd93b4da86aeffea1ca32c484d054ad",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/60833707b968d5ae02a75edb7886dcd4a957cf0d",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/73d2892148aa4397a885b4f4afcfc5b27a325c42",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/0f8cdfff06829a0b0348b6debc29ff6a61967724",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/c3e17e58f571f34c51aeb17274ed02c2ed5cf780",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/0d4395477741608d123dad51def9fe50b7ebe952",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/d39bf40e55e666b5905fdbd46a0dced030ce87be",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}