Linux: Double Free
CVE-2024-58055 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 7cb72dc08ed8da60fd6d1f6adf13bf0e6ee0f694, 38229c35a6d7875697dfb293356407330cfcd23e, bbb7f49839b57d66ccaf7b5752d9b63d3031dd0a 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.26% chance of exploitation within 30 days, which is low compared with other CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update Linux to 7cb72dc08ed8da60fd6d1f6adf13bf0e6ee0f694 or 38229c35a6d7875697dfb293356407330cfcd23e or bbb7f49839b57d66ccaf7b5752d9b63d3031dd0a or f0c33e7d387ccbb6870e73a43c558fefede06614, whichever matches your release line, or a later version.
- Update Linux Kernel to 5.4.291 or 5.10.235 or 5.15.179 or 6.1.129, whichever matches your release line, or a later version.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Linux | Linux | cff834c16d23d614388aab1b86d19eb67b3f80c4 up to, but not including, 7cb72dc08ed8da60fd6d1f6adf13bf0e6ee0f694; cff834c16d23d614388aab1b86d19eb67b3f80c4 up to, but not including, 38229c35a6d7875697dfb293356407330cfcd23e; cff834c16d23d614388aab1b86d19eb67b3f80c4 up to, but not including, bbb7f49839b57d66ccaf7b5752d9b63d3031dd0a; cff834c16d23d614388aab1b86d19eb67b3f80c4 up to, but not including, f0c33e7d387ccbb6870e73a43c558fefede06614; cff834c16d23d614388aab1b86d19eb67b3f80c4 up to, but not including, 16907219ad6763f401700e1b57b2da4f3e07f047; cff834c16d23d614388aab1b86d19eb67b3f80c4 up to, but not including, 929b69810eec132b284ffd19047a85d961df9e4d; cff834c16d23d614388aab1b86d19eb67b3f80c4 up to, but not including, e6693595bd1b55af62d057a4136a89d5c2ddf0e9; cff834c16d23d614388aab1b86d19eb67b3f80c4 up to, but not including, c225d006a31949d673e646d585d9569bc28feeb9; and 1 more ranges | 7cb72dc08ed8da60fd6d1f6adf13bf0e6ee0f694, 38229c35a6d7875697dfb293356407330cfcd23e, bbb7f49839b57d66ccaf7b5752d9b63d3031dd0a, f0c33e7d387ccbb6870e73a43c558fefede06614, 16907219ad6763f401700e1b57b2da4f3e07f047, 929b69810eec132b284ffd19047a85d961df9e4d |
| Linux | Linux Kernel | 4.6 up to, but not including, 5.4.291; 5.5 up to, but not including, 5.10.235; 5.11 up to, but not including, 5.15.179; 5.16 up to, but not including, 6.1.129; 6.2 up to, but not including, 6.6.76; 6.7 up to, but not including, 6.12.13; 6.13 up to, but not including, 6.13.2 | 5.4.291, 5.10.235, 5.15.179, 6.1.129, 6.6.76, 6.12.13 |
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 NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.8 | High | NVD |
| CVSS 3.1 | 7.8 | High | CISA (ADP) |
Official description
In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_tcm: Don't free command immediately Don't prematurely free the command. Wait for the status completion of the sense status. It can be freed then. Otherwise we will double-free the command.
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: total).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- git.kernel.org/stable/c/16907219ad6763f401700e1b57b2da4f3e07f047
- git.kernel.org/stable/c/38229c35a6d7875697dfb293356407330cfcd23e
- git.kernel.org/stable/c/7cb72dc08ed8da60fd6d1f6adf13bf0e6ee0f694
- git.kernel.org/stable/c/929b69810eec132b284ffd19047a85d961df9e4d
- git.kernel.org/stable/c/bbb7f49839b57d66ccaf7b5752d9b63d3031dd0a
- git.kernel.org/stable/c/c225d006a31949d673e646d585d9569bc28feeb9
- git.kernel.org/stable/c/e6693595bd1b55af62d057a4136a89d5c2ddf0e9
- git.kernel.org/stable/c/f0c33e7d387ccbb6870e73a43c558fefede06614
Other references
Recent Double Free vulnerabilities
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
Spotted an error? Tell us.