{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-48883",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-07-16T11:38:08.924Z",
        "datePublished": "2024-08-21T06:10:14.763Z",
        "dateUpdated": "2026-08-05T08:52:47.276Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T08:52:47.276Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: IPoIB, Block PKEY interfaces with less rx queues than parent\n\nA user is able to configure an arbitrary number of rx queues when\ncreating an interface via netlink. This doesn't work for child PKEY\ninterfaces because the child interface uses the parent receive channels.\n\nAlthough the child shares the parent's receive channels, the number of\nrx queues is important for the channel_stats array: the parent's rx\nchannel index is used to access the child's channel_stats. So the array\nhas to be at least as large as the parent's rx queue size for the\ncounting to work correctly and to prevent out of bound accesses.\n\nThis patch checks for the mentioned scenario and returns an error when\ntrying to create the interface. The error is propagated to the user."
                }
            ],
            "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 - Exploitation requires creating an mlx5 IPoIB PKEY child via local rtnl/netlink (IFLA_NUM_RX_QUEUES) or sysfs; remote IB packets alone do not create the undersized channel_stats array.\nAC:L - The attacker fully controls the child's rx queue count at creation time, and any later RX on a parent channel whose index exceeds that size deterministically OOBs in mlx5i_complete_rx_cqe with no race or uncontrolled layout required.\nPR:L - The primary path is RTM_NEWLINK, gated by netlink_net_capable(CAP_NET_ADMIN) in the netns user_ns, which an unprivileged user can obtain via user+network namespaces (and containers with NET_ADMIN on an assigned IPoIB parent).\nUI:N - The attacker creates and brings up the undersized PKEY interface themselves; no separate victim action is required.\nS:U - Impact is heap corruption inside the host kernel's mlx5e IPoIB RX path under the same OS authority, not a VM escape, IOMMU bypass, or other cross-boundary breakout.\nC:H - Parent RQ index indexes past the child's channel_stats pointer array (heap OOB), which is memory corruption leverageable for kernel information disclosure per OOB-write guidance.\nI:H - The OOB pointer is used to increment stats counters (csum_complete/csum_none), an out-of-bounds heap write enabling arbitrary-write / control-flow hijacking primitives.\nA:H - Invalid or NULL channel_stats entries cause kernel oops/panic on RX completion, which is a full availability impact."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c"
                    ],
                    "versions": [
                        {
                            "version": "be98737a4faa3a0dc1781ced5bbf5c47865e29d7",
                            "lessThan": "5844a46f09f768da866d6b0ffbf1a9073266bf24",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "be98737a4faa3a0dc1781ced5bbf5c47865e29d7",
                            "lessThan": "31c70bfe58ef09fe36327ddcced9143a16e9e83d",
                            "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/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c"
                    ],
                    "versions": [
                        {
                            "version": "5.17",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.17",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.7",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.2",
                            "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.17",
                                    "versionEndExcluding": "6.1.7"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.17",
                                    "versionEndExcluding": "6.2"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/5844a46f09f768da866d6b0ffbf1a9073266bf24"
                },
                {
                    "url": "https://git.kernel.org/stable/c/31c70bfe58ef09fe36327ddcced9143a16e9e83d"
                }
            ],
            "title": "net/mlx5e: IPoIB, Block PKEY interfaces with less rx queues than parent",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2022-48883",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2024-09-10T16:04:49.165689Z"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-09-12T17:32:52.439Z"
                }
            }
        ]
    }
}