{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2021-46963",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-02-27T18:42:55.942Z",
        "datePublished": "2024-02-27T18:47:01.783Z",
        "dateUpdated": "2026-08-05T08:45:15.980Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T08:45:15.980Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nscsi: qla2xxx: Fix crash in qla2xxx_mqueuecommand()\n\n    RIP: 0010:kmem_cache_free+0xfa/0x1b0\n    Call Trace:\n       qla2xxx_mqueuecommand+0x2b5/0x2c0 [qla2xxx]\n       scsi_queue_rq+0x5e2/0xa40\n       __blk_mq_try_issue_directly+0x128/0x1d0\n       blk_mq_request_issue_directly+0x4e/0xb0\n\nFix incorrect call to free srb in qla2xxx_mqueuecommand(), as srb is now\nallocated by upper layers. This fixes smatch warning of srb unintended\nfree."
                }
            ],
            "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 vulnerable path is qla2xxx_queuecommand → qla2xxx_mqueuecommand on outbound initiator I/O through the SCSI/block stack, reachable by local reads/writes to qla2xxx-backed devices or filesystems, not by processing remote Fibre Channel or network packets.\nAC:L - Once a qpair is offline (PCI EEH/FLR/reset recovery, a normal operational state on QLogic FC HBAs) or DIF I/O hits an unsupported qpair, any subsequent SCSI command deterministically takes the QLA_INTERFACE_ERROR path and performs the incorrect free with no race or layout dependency.\nPR:L - Any unprivileged local user who can issue I/O to a mounted filesystem or block device backed by a qla2xxx HBA reaches queuecommand; no capabilities or init-namespace root are required.\nUI:N - The attacker triggers the bug by performing their own I/O against already-attached qla2xxx storage; no separate victim mount, open, or confirmation is required.\nS:U - Impact is confined to the host kernel privilege domain (crash or heap corruption via the SRB mempool); there is no VM escape, IOMMU bypass, or other cross-authority boundary crossing.\nC:H - When the SRB mempool is below min_nr (common with outstanding async fabric SRBs), mempool_free stores the embedded scsi_cmd_priv pointer; after scsi_done recycles the command this becomes a use-after-free that enables arbitrary kernel memory disclosure via heap reuse.\nI:H - The same mempool-poisoning UAF returns a dangling/aliased srb_t to later qla2xxx_get_qpair_sp callers for fabric/IOCB work, yielding heap corruption and control-flow hijack primitives suitable for privilege escalation.\nA:H - The reported failure is a kernel crash in kmem_cache_free from qla2xxx_mqueuecommand when the full mempool path frees the non-slab embedded SRB, which is full host availability impact."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/scsi/qla2xxx/qla_os.c"
                    ],
                    "versions": [
                        {
                            "version": "64a8c5018a4b21b04a756a56c495ef47c14e92d9",
                            "lessThan": "c5ab9b67d8b061de74e2ca51bf787ee599bd7f89",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "dea6ee7173039d489977c9ed92e3749154615db4",
                            "lessThan": "77509a238547863040a42d57c72403f7d4c89a8f",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "af2a0c51b1205327f55a7e82e530403ae1d42cbb",
                            "lessThan": "702cdaa2c6283c135ef16d52e0e4e3c1005aa538",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "af2a0c51b1205327f55a7e82e530403ae1d42cbb",
                            "lessThan": "80ef24175df2cba3860d0369d1c662b49ee2de56",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "af2a0c51b1205327f55a7e82e530403ae1d42cbb",
                            "lessThan": "a73208e3244127ef9f2cdf24e4adb947aaa32053",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "af2a0c51b1205327f55a7e82e530403ae1d42cbb",
                            "lessThan": "6641df81ab799f28a5d564f860233dd26cca0d93",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4a1cc2f71bc57cf8dee6f58e7d2355a43aabb312",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4.19.90",
                            "lessThan": "4.19.191",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.4",
                            "lessThan": "5.4.118",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.3.17",
                            "lessThan": "5.4",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/scsi/qla2xxx/qla_os.c"
                    ],
                    "versions": [
                        {
                            "version": "5.5",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.5",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "4.19.191",
                            "lessThanOrEqual": "4.19.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.118",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.36",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.11.20",
                            "lessThanOrEqual": "5.11.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.12.3",
                            "lessThanOrEqual": "5.12.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.13",
                            "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": "4.19.90",
                                    "versionEndExcluding": "4.19.191"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4.4",
                                    "versionEndExcluding": "5.4.118"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "5.10.36"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "5.11.20"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "5.12.3"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.5",
                                    "versionEndExcluding": "5.13"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.3.17"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/c5ab9b67d8b061de74e2ca51bf787ee599bd7f89"
                },
                {
                    "url": "https://git.kernel.org/stable/c/77509a238547863040a42d57c72403f7d4c89a8f"
                },
                {
                    "url": "https://git.kernel.org/stable/c/702cdaa2c6283c135ef16d52e0e4e3c1005aa538"
                },
                {
                    "url": "https://git.kernel.org/stable/c/80ef24175df2cba3860d0369d1c662b49ee2de56"
                },
                {
                    "url": "https://git.kernel.org/stable/c/a73208e3244127ef9f2cdf24e4adb947aaa32053"
                },
                {
                    "url": "https://git.kernel.org/stable/c/6641df81ab799f28a5d564f860233dd26cca0d93"
                }
            ],
            "title": "scsi: qla2xxx: Fix crash in qla2xxx_mqueuecommand()",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2021-46963",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2024-02-27T20:13:28.391773Z"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-07-05T17:22:03.103Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-04T05:17:42.900Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://git.kernel.org/stable/c/c5ab9b67d8b061de74e2ca51bf787ee599bd7f89",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/77509a238547863040a42d57c72403f7d4c89a8f",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/702cdaa2c6283c135ef16d52e0e4e3c1005aa538",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/80ef24175df2cba3860d0369d1c662b49ee2de56",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/a73208e3244127ef9f2cdf24e4adb947aaa32053",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/6641df81ab799f28a5d564f860233dd26cca0d93",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}