# CVE-2024-35835: net/mlx5e: fix a double-free in arfs\_create\_groups

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 1.00% (percentile 62, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2024-05-17T14:02:23.469Z
- **Modified:** 2026-08-05T11:30:13.382Z

## Who should check

- Anyone running Linux \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< e3d3ed8c152971dbe64c92c9ecb98fdb52abb629; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< 2501afe6c4c9829d03abe9a368b83d9ea1b611b7; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< cf116d9c3c2aebd653c2dfab5b10c278e9ec3ee5; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< c57ca114eb00e03274dd38108d07a3750fa3c056; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< 42876db001bbea7558e8676d1019f08f9390addb; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< b21db3f1ab7967a81d6bbd328d28fe5a4c07a8a7; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< 66cc521a739ccd5da057a1cb3d6346c6d0e7619b; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< 3c6d5189246f590e4e1f167991558bdb72a4738b
- Anyone running Linux 4.7

## 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.

## Affected and fixed versions

- Linux: \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< e3d3ed8c152971dbe64c92c9ecb98fdb52abb629; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< 2501afe6c4c9829d03abe9a368b83d9ea1b611b7; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< cf116d9c3c2aebd653c2dfab5b10c278e9ec3ee5; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< c57ca114eb00e03274dd38108d07a3750fa3c056; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< 42876db001bbea7558e8676d1019f08f9390addb; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< b21db3f1ab7967a81d6bbd328d28fe5a4c07a8a7; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< 66cc521a739ccd5da057a1cb3d6346c6d0e7619b; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< 3c6d5189246f590e4e1f167991558bdb72a4738b (cvelist)
- Linux: 4.7 (cvelist)

## Mitigation

- Upgrade Linux to 3c6d5189246f590e4e1f167991558bdb72a4738b or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-35835. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35835.md
Affected: Linux >= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, < e3d3ed8c152971dbe64c92c9ecb98fdb52abb629; >= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, < 2501afe6c4c9829d03abe9a368b83d9ea1b611b7; >= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, < cf116d9c3c2aebd653c2dfab5b10c278e9ec3ee5; >= 1cabe6b0965ec067ac60e8f…
Fixed in: Linux 2501afe6c4c9829d03abe9a368b83d9ea1b611b7, Linux 42876db001bbea7558e8676d1019f08f9390addb, Linux 66cc521a739ccd5da057a1cb3d6346c6d0e7619b, Linux 3c6d5189246f590e4e1f167991558bdb72a4738b

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-35835 being exploited?

There is no confirmed exploitation: CVE-2024-35835 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.00% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-35835?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-35835?

Linux \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< e3d3ed8c152971dbe64c92c9ecb98fdb52abb629; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< 2501afe6c4c9829d03abe9a368b83d9ea1b611b7; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< cf116d9c3c2aebd653c2dfab5b10c278e9ec3ee5; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< c57ca114eb00e03274dd38108d07a3750fa3c056; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< 42876db001bbea7558e8676d1019f08f9390addb; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< b21db3f1ab7967a81d6bbd328d28fe5a4c07a8a7; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< 66cc521a739ccd5da057a1cb3d6346c6d0e7619b; \>= 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c, \< 3c6d5189246f590e4e1f167991558bdb72a4738b; Linux 4.7.

### Is there a fix for CVE-2024-35835?

Yes. Fixed in Linux 2501afe6c4c9829d03abe9a368b83d9ea1b611b7, Linux 42876db001bbea7558e8676d1019f08f9390addb, Linux 66cc521a739ccd5da057a1cb3d6346c6d0e7619b, Linux 3c6d5189246f590e4e1f167991558bdb72a4738b. Upgrade Linux to 3c6d5189246f590e4e1f167991558bdb72a4738b or later.

### How do I check if I'm affected by CVE-2024-35835?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-35835>

HTML: <https://flawdb.com/CVE-2024-35835> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-35835>
