Double Free in Linux

CVE-2024-46741

In the Linux kernel, the following vulnerability has been resolved:

misc: fastrpc: Fix double free of 'buf' in error path

smatch warning:
drivers/misc/fastrpc.c:1926 fastrpc_req_mmap() error: double free of 'buf'

In fastrpc_req_mmap() error path, the fastrpc buffer is freed in
fastrpc_req_munmap_impl() if unmap is successful.

But in the end, there is an unconditional call to fastrpc_buf_free().
So the above case triggers the double free of fastrpc buf.

Vulnerability class: Double Free

Published · last modified .

CVSS v3 metric

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

EPSS exploit prediction

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

Affected products

  • Linux — versions 72fa6f7820c4cf96c5f7aabc4e54bdf52d1e2ac2, 6.2, 6.6.51
  • Linux Kernel — versions 6.11

Weakness classification (CWE)

References