Linux: Double Free
CVE-2024-35835 is a high-severity double free vulnerability in Linux, with a CVSS 3.1 base score of 7.8 out of 10. It can be exploited with local access to the system by an attacker with a low-privileged account, without any action from a user. The record lists versions e3d3ed8c152971dbe64c92c9ecb98fdb52abb629, 2501afe6c4c9829d03abe9a368b83d9ea1b611b7, cf116d9c3c2aebd653c2dfab5b10c278e9ec3ee5 as the first without the flaw, so updating Linux to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.63% chance of exploitation within 30 days, higher than 51% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update Linux to e3d3ed8c152971dbe64c92c9ecb98fdb52abb629 or 2501afe6c4c9829d03abe9a368b83d9ea1b611b7 or cf116d9c3c2aebd653c2dfab5b10c278e9ec3ee5 or c57ca114eb00e03274dd38108d07a3750fa3c056, whichever matches your release line, or a later version.
- Update Linux Kernel to 4.19.307 or 5.4.269 or 5.10.210 or 5.15.149, whichever matches your release line, or a later version.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Linux | Linux | 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c up to, but not including, e3d3ed8c152971dbe64c92c9ecb98fdb52abb629; 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c up to, but not including, 2501afe6c4c9829d03abe9a368b83d9ea1b611b7; 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c up to, but not including, cf116d9c3c2aebd653c2dfab5b10c278e9ec3ee5; 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c up to, but not including, c57ca114eb00e03274dd38108d07a3750fa3c056; 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c up to, but not including, 42876db001bbea7558e8676d1019f08f9390addb; 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c up to, but not including, b21db3f1ab7967a81d6bbd328d28fe5a4c07a8a7; 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c up to, but not including, 66cc521a739ccd5da057a1cb3d6346c6d0e7619b; 1cabe6b0965ec067ac60e8f182f16d479a3b9a5c up to, but not including, 3c6d5189246f590e4e1f167991558bdb72a4738b; and 1 more ranges | e3d3ed8c152971dbe64c92c9ecb98fdb52abb629, 2501afe6c4c9829d03abe9a368b83d9ea1b611b7, cf116d9c3c2aebd653c2dfab5b10c278e9ec3ee5, c57ca114eb00e03274dd38108d07a3750fa3c056, 42876db001bbea7558e8676d1019f08f9390addb, b21db3f1ab7967a81d6bbd328d28fe5a4c07a8a7 |
| Linux | Linux Kernel | 4.7 up to, but not including, 4.19.307; 4.20 up to, but not including, 5.4.269; 5.5 up to, but not including, 5.10.210; 5.11 up to, but not including, 5.15.149; 5.16 up to, but not including, 6.1.76; 6.2 up to, but not including, 6.6.15; 6.7 up to, but not including, 6.7.3; 6.8 | 4.19.307, 5.4.269, 5.10.210, 5.15.149, 6.1.76, 6.6.15 |
| Debian | Debian Linux | 10.0 | Not stated |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- LocalThe attacker needs local access or must trick a user into running something.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by CNA.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.8 | High | CNA |
| CVSS 3.1 | 5.3 | Medium | CISA (ADP) |
Official 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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Double Free
The product calls free() twice on the same memory address.
How developers prevent this class of flaw
- Choose a language that provides automatic memory management.
- Ensure that each allocation is freed only once. After freeing a chunk, set the pointer to NULL to ensure the pointer cannot be freed again. In complicated error conditions, be sure that clean-up routines respect the state of allocation properly. If the language is object oriented, ensure that object destructors delete each chunk of memory only once.
- Use a static analysis tool to find double free instances.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- git.kernel.org/stable/c/2501afe6c4c9829d03abe9a368b83d9ea1b611b7
- git.kernel.org/stable/c/3c6d5189246f590e4e1f167991558bdb72a4738b
- git.kernel.org/stable/c/42876db001bbea7558e8676d1019f08f9390addb
- git.kernel.org/stable/c/66cc521a739ccd5da057a1cb3d6346c6d0e7619b
- git.kernel.org/stable/c/b21db3f1ab7967a81d6bbd328d28fe5a4c07a8a7
- git.kernel.org/stable/c/c57ca114eb00e03274dd38108d07a3750fa3c056
- git.kernel.org/stable/c/cf116d9c3c2aebd653c2dfab5b10c278e9ec3ee5
- git.kernel.org/stable/c/e3d3ed8c152971dbe64c92c9ecb98fdb52abb629
Third-party and government advisories
- lists.debian.org/debian-lts-announce/2024/06/msg00017.htmlMailing List, Third Party Advisory
- lists.debian.org/debian-lts-announce/2024/06/msg00020.htmlMailing List, Third Party Advisory
Recent Double Free vulnerabilities
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
- 8.8 High severity
Spotted an error? Tell us.