Skip to content
CVE PROGRAM SOURCE RECORD7.8 High

CVE-2023-52667

net/mlx5e: fix a potential double-free in fs_any_create_groups

Description

In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: fix a potential double-free in fs_any_create_groups When kcalloc() for ft->g succeeds but kvzalloc() for in fails, fs_any_create_groups() will free ft->g. However, its caller fs_any_create_table() will free ft->g again through calling mlx5e_destroy_flow_table(), which will lead to a double-free. Fix this by setting ft->g to NULL in fs_any_create_groups().

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 0f575c20bf0686caf3d82d6c626c2e1e4a4c36e6 to < 72a729868592752b5a294d27453da264106983b1affected
  • 0f575c20bf0686caf3d82d6c626c2e1e4a4c36e6 to < b2fa86b2aceb4bc9ada51cea90f61546d7512cbeaffected
  • 0f575c20bf0686caf3d82d6c626c2e1e4a4c36e6 to < 2897c981ee63e1be5e530b1042484626a10b26d8affected
  • 0f575c20bf0686caf3d82d6c626c2e1e4a4c36e6 to < 65a4ade8a6d205979292e88beeb6a626ddbd4779affected
  • 0f575c20bf0686caf3d82d6c626c2e1e4a4c36e6 to < aef855df7e1bbd5aa4484851561211500b22707eaffected

Linux Linux

Default version status: affected

  • 5.13affected
  • 0 to < 5.13unaffected
  • 5.15.149 to ≤ 5.15.*unaffected
  • 6.1.76 to ≤ 6.1.*unaffected
  • 6.6.15 to ≤ 6.6.*unaffected
  • 6.7.3 to ≤ 6.7.*unaffected
  • 6.8 to ≤ *unaffected

References