CVE-2022-48883

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-48883
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-48883.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-48883
Downstream
Related
Published
2024-08-21T06:10:14Z
Modified
2025-10-21T08:13:54.594781Z
Summary
net/mlx5e: IPoIB, Block PKEY interfaces with less rx queues than parent
Details

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5e: IPoIB, Block PKEY interfaces with less rx queues than parent

A user is able to configure an arbitrary number of rx queues when creating an interface via netlink. This doesn't work for child PKEY interfaces because the child interface uses the parent receive channels.

Although the child shares the parent's receive channels, the number of rx queues is important for the channelstats array: the parent's rx channel index is used to access the child's channelstats. So the array has to be at least as large as the parent's rx queue size for the counting to work correctly and to prevent out of bound accesses.

This patch checks for the mentioned scenario and returns an error when trying to create the interface. The error is propagated to the user.

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
be98737a4faa3a0dc1781ced5bbf5c47865e29d7
Fixed
5844a46f09f768da866d6b0ffbf1a9073266bf24
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
be98737a4faa3a0dc1781ced5bbf5c47865e29d7
Fixed
31c70bfe58ef09fe36327ddcced9143a16e9e83d

Affected versions

v5.*

v5.16
v5.16-rc6
v5.16-rc7
v5.16-rc8
v5.17
v5.17-rc1
v5.17-rc2
v5.17-rc3
v5.17-rc4
v5.17-rc5
v5.17-rc6
v5.17-rc7
v5.17-rc8
v5.18
v5.18-rc1
v5.18-rc2
v5.18-rc3
v5.18-rc4
v5.18-rc5
v5.18-rc6
v5.18-rc7
v5.19
v5.19-rc1
v5.19-rc2
v5.19-rc3
v5.19-rc4
v5.19-rc5
v5.19-rc6
v5.19-rc7
v5.19-rc8

v6.*

v6.0
v6.0-rc1
v6.0-rc2
v6.0-rc3
v6.0-rc4
v6.0-rc5
v6.0-rc6
v6.0-rc7
v6.1
v6.1-rc1
v6.1-rc2
v6.1-rc3
v6.1-rc4
v6.1-rc5
v6.1-rc6
v6.1-rc7
v6.1-rc8
v6.1.1
v6.1.2
v6.1.3
v6.1.4
v6.1.5
v6.1.6
v6.2-rc1
v6.2-rc2

Database specific

vanir_signatures

[
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@31c70bfe58ef09fe36327ddcced9143a16e9e83d",
        "id": "CVE-2022-48883-1edd4f37",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "file": "drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c"
        },
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "299450089872454041931556647388787625384",
                "250559970039893155905465100344175314831",
                "138171279624830750397768338156788213837"
            ]
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5844a46f09f768da866d6b0ffbf1a9073266bf24",
        "id": "CVE-2022-48883-6fbb4b7e",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "function": "mlx5i_pkey_dev_init",
            "file": "drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c"
        },
        "signature_type": "Function",
        "digest": {
            "length": 347.0,
            "function_hash": "335464962376819851606764641088906379721"
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5844a46f09f768da866d6b0ffbf1a9073266bf24",
        "id": "CVE-2022-48883-9a34c818",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "file": "drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c"
        },
        "signature_type": "Line",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "299450089872454041931556647388787625384",
                "250559970039893155905465100344175314831",
                "138171279624830750397768338156788213837"
            ]
        }
    },
    {
        "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@31c70bfe58ef09fe36327ddcced9143a16e9e83d",
        "id": "CVE-2022-48883-e1f993fa",
        "deprecated": false,
        "signature_version": "v1",
        "target": {
            "function": "mlx5i_pkey_dev_init",
            "file": "drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c"
        },
        "signature_type": "Function",
        "digest": {
            "length": 347.0,
            "function_hash": "335464962376819851606764641088906379721"
        }
    }
]

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.17.0
Fixed
6.1.7