Menu

Star on GitHub · 3.4k

CVE-2024-42142

5.5 · MEDIUM

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.

Published Jul 30, 2024EPSS 0.22%

Overview

CVE-2024-42142 is a medium-severity vulnerability. It was published on July 30, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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.

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-42142?

CVE-2024-42142 is a medium-severity vulnerability. It was published on July 30, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-42142?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-42142?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-42142?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-42142 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2024

View all
Watch the demo →