CyberSecBulletin
CVE-2024-50159NVD status: Modified

Linux: Double Free

CVE-2024-50159 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 6d91d07913aee90556362d648d6a28a1eda419dc, fb324fdaf546bf14bc4c17e0037bca6cb952b121, 39b13dce1a91cdfc3bec9238f9e89094551bd428 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.22% 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 6d91d07913aee90556362d648d6a28a1eda419dc or fb324fdaf546bf14bc4c17e0037bca6cb952b121 or 39b13dce1a91cdfc3bec9238f9e89094551bd428, whichever matches your release line, or a later version.
  2. Update Linux Kernel to 6.6.59 or 6.11.6, whichever matches your release line, or a later version.

Affected products and versions

VendorProductAffected versionsFixed in
LinuxLinuxc3d4aed763ce4a39f8ed36c7b7cd9a6a35971329 up to, but not including, 6d91d07913aee90556362d648d6a28a1eda419dc; c3d4aed763ce4a39f8ed36c7b7cd9a6a35971329 up to, but not including, fb324fdaf546bf14bc4c17e0037bca6cb952b121; c3d4aed763ce4a39f8ed36c7b7cd9a6a35971329 up to, but not including, 39b13dce1a91cdfc3bec9238f9e89094551bd428; 6.36d91d07913aee90556362d648d6a28a1eda419dc, fb324fdaf546bf14bc4c17e0037bca6cb952b121, 39b13dce1a91cdfc3bec9238f9e89094551bd428
LinuxLinux Kernel6.3 up to, but not including, 6.6.59; 6.7 up to, but not including, 6.11.6; 6.126.6.59, 6.11.6

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.0HighCNA
CVSS 3.17.8HighNVD

Official description

In the Linux kernel, the following vulnerability has been resolved: firmware: arm_scmi: Fix the double free in scmi_debugfs_common_setup() Clang static checker(scan-build) throws below warning: | drivers/firmware/arm_scmi/driver.c:line 2915, column 2 | Attempt to free released memory. When devm_add_action_or_reset() fails, scmi_debugfs_common_cleanup() will run twice which causes double free of 'dbg->name'. Remove the redundant scmi_debugfs_common_cleanup() to fix this problem.

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. Record last changed materially (score, affected products, status or references).

References

Recent Double Free vulnerabilities

Spotted an error? Tell us.