Bug 2301507 (CVE-2024-42142) - CVE-2024-42142 kernel: net/mlx5: E-switch, Create ingress ACL when needed
Summary: CVE-2024-42142 kernel: net/mlx5: E-switch, Create ingress ACL when needed
Keywords:
Status: NEW
Alias: CVE-2024-42142
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2302002
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-30 08:37 UTC by OSIDB Bzimport
Modified: 2024-09-23 14:38 UTC (History)
4 users (show)

Fixed In Version: kernel 6.1.98, kernel 6.6.39, kernel 6.9.9, kernel 6.10
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2024-07-30 08:37:59 UTC
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.

Comment 1 Mauro Matteo Cascella 2024-07-31 10:33:16 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2024073031-CVE-2024-42142-a3a2@gregkh/T

Comment 2 Mauro Matteo Cascella 2024-07-31 10:33:35 UTC
Created kernel tracking bugs for this issue:

Affects: fedora-all [bug 2302002]


Note You need to log in before you can comment on or make changes to this bug.