CVE-2026-31730
Awaiting Analysis Awaiting Analysis - Queue
Double-Free in Linux Kernel FastRPC

Publication date: 2026-05-01

Last updated on: 2026-05-01

Assigner: kernel.org

Description
In the Linux kernel, the following vulnerability has been resolved: misc: fastrpc: possible double-free of cctx->remote_heap fastrpc_init_create_static_process() may free cctx->remote_heap on the err_map path but does not clear the pointer. Later, fastrpc_rpmsg_remove() frees cctx->remote_heap again if it is non-NULL, which can lead to a double-free if the INIT_CREATE_STATIC ioctl hits the error path and the rpmsg device is subsequently removed/unbound. Clear cctx->remote_heap after freeing it in the error path to prevent the later cleanup from freeing it again. This issue was found by an in-house analysis workflow that extracts AST-based information and runs static checks, with LLM assistance for triage, and was confirmed by manual code review. No hardware testing was performed.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-05-01
Last Modified
2026-05-01
Generated
2026-05-07
AI Q&A
2026-05-01
EPSS Evaluated
2026-05-05
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
linux linux_kernel *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-UNKNOWN
Attack-Flow Graph
AI Powered Q&A
How can this vulnerability impact me? :

This vulnerability in the Linux kernel involves a possible double-free of the cctx->remote_heap pointer in the fastrpc component. A double-free can lead to undefined behavior such as memory corruption, crashes, or potential exploitation by attackers to execute arbitrary code or cause denial of service.


Can you explain this vulnerability to me?

This vulnerability exists in the Linux kernel's fastrpc component, where a double-free error can occur with the cctx->remote_heap pointer.

Specifically, the function fastrpc_init_create_static_process() may free the cctx->remote_heap pointer on an error path but does not clear the pointer afterward. Later, when fastrpc_rpmsg_remove() is called, it checks if cctx->remote_heap is non-NULL and frees it again, causing a double-free.

This double-free can happen if the INIT_CREATE_STATIC ioctl triggers the error path and the rpmsg device is later removed or unbound.

The fix involves clearing the cctx->remote_heap pointer after freeing it in the error path to prevent the second free.


What immediate steps should I take to mitigate this vulnerability?

The vulnerability involves a double-free issue in the Linux kernel's fastrpc component related to the cctx->remote_heap pointer.

To mitigate this vulnerability, you should update your Linux kernel to a version where this issue has been fixed. The fix involves clearing the cctx->remote_heap pointer after freeing it in the error path to prevent a double-free during later cleanup.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart