CyberSecBulletin
CVE-2024-58055NVD status: Modified

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.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Update Linux to 7cb72dc08ed8da60fd6d1f6adf13bf0e6ee0f694 or 38229c35a6d7875697dfb293356407330cfcd23e or bbb7f49839b57d66ccaf7b5752d9b63d3031dd0a or f0c33e7d387ccbb6870e73a43c558fefede06614, whichever matches your release line, or a later version.
  2. 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

VendorProductAffected versionsFixed in
LinuxLinuxcff834c16d23d614388aab1b86d19eb67b3f80c4 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 ranges7cb72dc08ed8da60fd6d1f6adf13bf0e6ee0f694, 38229c35a6d7875697dfb293356407330cfcd23e, bbb7f49839b57d66ccaf7b5752d9b63d3031dd0a, f0c33e7d387ccbb6870e73a43c558fefede06614, 16907219ad6763f401700e1b57b2da4f3e07f047, 929b69810eec132b284ffd19047a85d961df9e4d
LinuxLinux Kernel4.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.25.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 systemScoreSeverityScored by
CVSS 3.17.8HighNVD
CVSS 3.17.8HighCISA (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.

More Double Free vulnerabilities (CWE-415)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
  3. Record last changed materially (score, affected products, status or references).

References

Recent Double Free vulnerabilities

Spotted an error? Tell us.