{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2022-48932",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-08-21T06:06:23.299Z",
        "datePublished": "2024-08-22T03:31:25.989Z",
        "dateUpdated": "2026-08-05T08:52:59.108Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T08:52:59.108Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: DR, Fix slab-out-of-bounds in mlx5_cmd_dr_create_fte\n\nWhen adding a rule with 32 destinations, we hit the following out-of-band\naccess issue:\n\n  BUG: KASAN: slab-out-of-bounds in mlx5_cmd_dr_create_fte+0x18ee/0x1e70\n\nThis patch fixes the issue by both increasing the allocated buffers to\naccommodate for the needed actions and by checking the number of actions\nto prevent this issue when a rule with too many actions is provided."
                }
            ],
            "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 when installing an mlx5 FDB software-steering flow rule (TC flower offload → mlx5_eswitch_add_offloaded_rule → mlx5_add_flow_rules → mlx5_cmd_dr_create_fte) via local netlink/TC, not by processing remote packets.\nAC:L - A rule with MLX5_MAX_FLOW_FWD_VPORTS (32) mirred destinations—explicitly supported and commonly paired with a flow counter—deterministically overflows the 32-slot fs_dr_actions/actions arrays; the attacker fully controls the rule and needs no race or uncontrollable layout.\nPR:L - Creating the offloaded TC flower rule requires CAP_NET_ADMIN, which is available to an unprivileged user via user+network namespaces (and to containers granted NET_ADMIN on representors in typical switchdev/NFV deployments), scoring PR:L per kernel guidance for tc/CAP_NET_ADMIN.\nUI:N - The attacker installs the multi-destination TC rule themselves; no separate victim action is required beyond the host already running mlx5 eswitch offloads with SMFS.\nS:U - Impact is slab corruption inside the host kernel’s mlx5 steering path under the same OS authority; this is not a VM escape, IOMMU bypass, or other cross-boundary breakout.\nC:H - The bug is a slab out-of-bounds write of an mlx5dr_action pointer past a kcalloc(32) array into adjacent kmalloc slab objects, which is memory corruption leverageable for kernel information disclosure.\nI:H - Out-of-bounds heap writes of kernel pointers corrupt adjacent slab objects and, per kernel guidance, yield arbitrary-write / control-flow hijacking primitives.\nA:H - The commit documents a KASAN slab-out-of-bounds fault in mlx5_cmd_dr_create_fte, and the resulting heap corruption can oops or panic the kernel."
                        }
                    ]
                }
            ],
            "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/steering/fs_dr.c"
                    ],
                    "versions": [
                        {
                            "version": "1ffd498901c1134a7cbecf5409e12c064c39cef9",
                            "lessThan": "4ad319cdfbe555b4ff67bc608736c46a6930c848",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1ffd498901c1134a7cbecf5409e12c064c39cef9",
                            "lessThan": "0aec12d97b2036af0946e3d582144739860ac07b",
                            "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/steering/fs_dr.c"
                    ],
                    "versions": [
                        {
                            "version": "5.16",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "5.16",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.16.12",
                            "lessThanOrEqual": "5.16.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.17",
                            "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.16",
                                    "versionEndExcluding": "5.16.12"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.16",
                                    "versionEndExcluding": "5.17"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/4ad319cdfbe555b4ff67bc608736c46a6930c848"
                },
                {
                    "url": "https://git.kernel.org/stable/c/0aec12d97b2036af0946e3d582144739860ac07b"
                }
            ],
            "title": "net/mlx5: DR, Fix slab-out-of-bounds in mlx5_cmd_dr_create_fte",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "id": "CVE-2022-48932",
                                "role": "CISA Coordinator",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "version": "2.0.3",
                                "timestamp": "2024-09-10T15:32:46.595523Z"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-09-12T17:33:09.982Z"
                }
            }
        ]
    }
}