VDB

CVE-2024-42142

CVE-2024-42142 PUBLISHED

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

Reported by linux · Published July 30, 2024

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 products

VendorProductVersions
LinuxLinux1749c4c51c16e3e078faae0a876d01bafb187a74, 1749c4c51c16e3e078faae0a876d01bafb187a74, 1749c4c51c16e3e078faae0a876d01bafb187a74
LinuxLinux5.18, 0, 6.1.98
LinuxLinux1749c4c51c16e3e078faae0a876d01bafb187a74, 6.1.98, 6.6.39
linuxlinux_kernel5.18, 5.18, 5.18

Timeline

  • Jul 29, 2024 CVE Published
  • Jul 30, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (8 in total, the first dated here)
  • Jan 6, 2026 Security Advisory (355 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (237 in total, the first dated here)
  • Nov 19, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-42142
vulnetix vdb fixes CVE-2024-42142

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-42142/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›