# CVE-2024-35835: net/mlx5e: fix a double-free in arfs_create_groups

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Published: 2024-05-17T14:02:23.469Z
- Modified: 2026-08-05T11:30:13.382Z
- Weaknesses: CWE-415
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5e: fix a double-free in arfs_create_groups

When `in` allocated by kvzalloc fails, arfs_create_groups will free
ft->g and return an error. However, arfs_create_table, the only caller of
arfs_create_groups, will hold this error and call to
mlx5e_destroy_flow_table, in which the ft->g will be freed again.

(As written by CVE List.)

## Affected

- Linux Linux: from 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c before e3d3ed8c152971dbe64c92c9ecb98fdb52abb629; from 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c before 2501afe6c4c9829d03abe9a368b83d9ea1b611b7; from 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c before cf116d9c3c2aebd653c2dfab5b10c278e9ec3ee5; from 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c before c57ca114eb00e03274dd38108d07a3750fa3c056; from 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c before 42876db001bbea7558e8676d1019f08f9390addb; from 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c before b21db3f1ab7967a81d6bbd328d28fe5a4c07a8a7; from 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c before 66cc521a739ccd5da057a1cb3d6346c6d0e7619b; from 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c before 3c6d5189246f590e4e1f167991558bdb72a4738b; 4.7 (not affected: before 4.7; from 4.19.307 up to 4.19.*; from 5.4.269 up to 5.4.*; from 5.10.210 up to 5.10.*; from 5.15.149 up to 5.15.*; from 6.1.76 up to 6.1.*; from 6.6.15 up to 6.6.*; from 6.7.3 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 4.7 before 4.19.307; from 4.20 before 5.4.269; from 5.5 before 5.10.210; from 5.11 before 5.15.149; from 5.16 before 6.1.76; from 6.2 before 6.6.15; from 6.7 before 6.7.3; 6.8
- debian debian_linux: 10.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- CISA-ADP: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## References

- <https://git.kernel.org/stable/c/e3d3ed8c152971dbe64c92c9ecb98fdb52abb629> (patch)
- <https://git.kernel.org/stable/c/2501afe6c4c9829d03abe9a368b83d9ea1b611b7> (patch)
- <https://git.kernel.org/stable/c/cf116d9c3c2aebd653c2dfab5b10c278e9ec3ee5> (patch)
- <https://git.kernel.org/stable/c/c57ca114eb00e03274dd38108d07a3750fa3c056> (patch)
- <https://git.kernel.org/stable/c/42876db001bbea7558e8676d1019f08f9390addb> (patch)
- <https://git.kernel.org/stable/c/b21db3f1ab7967a81d6bbd328d28fe5a4c07a8a7> (patch)
- <https://git.kernel.org/stable/c/66cc521a739ccd5da057a1cb3d6346c6d0e7619b> (patch)
- <https://git.kernel.org/stable/c/3c6d5189246f590e4e1f167991558bdb72a4738b> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2024-35835](https://www.cve.org/CVERecord?id=CVE-2024-35835), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-35835](https://nvd.nist.gov/vuln/detail/CVE-2024-35835), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-35835 · Whole record: https://cve.day/CVE-2024-35835.json · Rebuilt by cve.day 2026-11-25T22:58:40.533Z
