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

CVE-2023-52667
HIGH 7.8

At a glance

Source
NVD
EPSS
EPSS 0.27 % · percentile 19 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

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().

Weaknesses (CWE)

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary)
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 0f575c20bf0686caf3d82d6c626c2e1e4a4c36e6 < 72a729868592752b5a294d27453da264106983b1 ; affected 0f575c20bf0686caf3d82d6c626c2e1e4a4c36e6 < b2fa86b2aceb4bc9ada51cea90f61546d7512cbe ; affected 0f575c20bf0686caf3d82d6c626c2e1e4a4c36e6 < 2897c981ee63e1be5e530b1042484626a10b26d8 ; affected 0f575c20bf0686caf3d82d6c626c2e1e4a4c36e6 < 65a4ade8a6d205979292e88beeb6a626ddbd4779 ; affected 0f575c20bf0686caf3d82d6c626c2e1e4a4c36e6 < aef855df7e1bbd5aa4484851561211500b22707e
Linux · Linuxaffected 5.13 ; unaffected 0 < 5.13 ; unaffected 5.15.149 ≤ 5.15.* ; unaffected 6.1.76 ≤ 6.1.* ; unaffected 6.6.15 ≤ 6.6.* ; unaffected 6.7.3 ≤ 6.7.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD