Double Free in Linux

CVE-2024-50159

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.

Vulnerability class: Double Free

Published · last modified .

CVSS v3 metric

CVSS v3 base score 7.0 (High). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS 0.002, 13.1th percentile (last changed ); unchanged over 30 days. About EPSS.

Affected products

  • Linux — versions c3d4aed763ce4a39f8ed36c7b7cd9a6a35971329, 6.3, 0
  • Linux Kernel — versions 6.12

Weakness classification (CWE)

References