Lucene search

K
cveLinuxCVE-2024-42142
HistoryJul 30, 2024 - 8:15 a.m.

CVE-2024-42142

2024-07-3008:15:05
Linux
web.nvd.nist.gov
31
linux kernel
cve-2024-42142
ingress acl
net/mlx5
vulnerability
resolved

AI Score

6.6

Confidence

High

EPSS

0

Percentile

16.2%

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

net/mlx5: E-switch, Create ingress ACL when needed

Currently, ingress acl is used for three features. It is created only
when vport metadata match and prio tag are enabled. But active-backup
lag mode also uses it. It is independent of vport metadata match and
prio tag. And vport metadata match can be disabled using the
following devlink command:

devlink dev param set pci/0000:08:00.0 name esw_port_metadata \

value false cmode runtime

If ingress acl is not created, will hit panic when creating drop rule
for active-backup lag mode. If always create it, there will be about
5% performance degradation.

Fix it by creating ingress acl when needed. If esw_port_metadata is
true, ingress acl exists, then create drop rule using existing
ingress acl. If esw_port_metadata is false, create ingress acl and
then create drop rule.

Affected configurations

Vulners
Node
linuxlinux_kernelRange5.186.1.98
OR
linuxlinux_kernelRange6.2.06.6.39
OR
linuxlinux_kernelRange6.7.06.9.9
OR
linuxlinux_kernelRange6.10.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/esw/acl/ingress_ofld.c"
    ],
    "versions": [
      {
        "version": "1749c4c51c16",
        "lessThan": "bc3ff8d3c050",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1749c4c51c16",
        "lessThan": "3e3551f87029",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1749c4c51c16",
        "lessThan": "83bc1a129f7f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1749c4c51c16",
        "lessThan": "b20c2fb45470",
        "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/esw/acl/ingress_ofld.c"
    ],
    "versions": [
      {
        "version": "5.18",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.18",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.98",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.39",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.9",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

AI Score

6.6

Confidence

High

EPSS

0

Percentile

16.2%