Lucene search

K
cveLinuxCVE-2022-48883
HistoryAug 21, 2024 - 7:15 a.m.

CVE-2022-48883

2024-08-2107:15:04
Linux
web.nvd.nist.gov
25
linux kernel
net/mlx5e
vulnerability
patched
ipoib
block pkey interfaces
rx queues
netlink
child pkey interfaces

AI Score

6.7

Confidence

High

EPSS

0

Percentile

9.5%

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 channel_stats array: the parent’s rx
channel index is used to access the child’s channel_stats. 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.

Affected configurations

Vulners
Node
linuxlinux_kernelRange5.176.1.7
OR
linuxlinux_kernelRange6.2.0
VendorProductVersionCPE
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

CNA 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": "be98737a4faa",
        "lessThan": "5844a46f09f7",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "be98737a4faa",
        "lessThan": "31c70bfe58ef",
        "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": "custom"
      },
      {
        "version": "6.1.7",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.2",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

AI Score

6.7

Confidence

High

EPSS

0

Percentile

9.5%