Not a U.S. government website. NDD is an independent vulnerability database by Volerion and is not affiliated with or endorsed by NIST or NVD.
VOLERION
Volerion Security Research

NOT DEFERRED DATABASE

VULNERABILITIES

CVE-2024-35960 Details

Description

In the Linux kernel, the following vulnerability has been resolved: net/mlx5: Properly link new fs rules into the tree Previously, add_rule_fg would only add newly created rules from the handle into the tree when they had a refcount of 1. On the other hand, create_flow_handle tries hard to find and reference already existing identical rules instead of creating new ones. These two behaviors can result in a situation where create_flow_handle 1) creates a new rule and references it, then 2) in a subsequent step during the same handle creation references it again, resulting in a rule with a refcount of 2 that is not linked into the tree, will have a NULL parent and root and will result in a crash when the flow group is deleted because del_sw_hw_rule, invoked on rule deletion, assumes node->parent is != NULL. This happened in the wild, due to another bug related to incorrect handling of duplicate pkt_reformat ids, which lead to the code in create_flow_handle incorrectly referencing a just-added rule in the same flow handle, resulting in the problem described above. Full details are at [1]. This patch changes add_rule_fg to add new rules without parents into the tree, properly initializing them and avoiding the crash. This makes it more consistent with how rules are added to an FTE in create_flow_handle.

Metrics

CVSS 3.x Severity and Vector Strings:

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.

URLSource(s)Tag(s)
https://cert-portal.siemens.com/productcert/html/ssa-265688.html siemens-SADP
https://cert-portal.siemens.com/productcert/html/ssa-613116.html siemens-SADP
https://git.kernel.org/stable/c/1263b0b26077b1183c3c45a0a2479573a351d423 kernel.orgPatch
https://git.kernel.org/stable/c/2e8dc5cffc844dacfa79f056dea88002312f253f kernel.orgPatch
https://git.kernel.org/stable/c/3d90ca9145f6b97b38d0c2b6b30f6ca6af9c1801 kernel.orgPatch

see all 20 references

Weakness Enumeration

CWE-IDCWE NameSource
CWE-476NULL Pointer DereferenceCISA-ADP

Affected Products

ProductVersions
linux linux kernel
>= 4.10, < 4.19.313
>= 4.20, < 5.4.275
>= 5.5, < 5.10.216
>= 5.11, < 5.15.156
>= 5.16, < 6.1.87

CPE

  • cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9:rc2:*:*:*:*:*:*
  • cpe:2.3:o:linux:linux_kernel:6.9:rc3:*:*:*:*:*:*

Remediation

  • No remediation found in references.
debian debian linux
10.0

CPE

  • cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*

Remediation

  • No remediation found in references.

Change History

15 change records found show changes


QUICK INFO

CVE Dictionary Entry:
CVE-2024-35960
NVD Published Date:
May 20, 2024
NVD Last Modified:
Oct 15, 2026
Source:
kernel.org
CVE-2024-35960 Details - Not Deferred