CVE-2026-31730: misc: fastrpc: possible double-free of cctx->remote_heap

Published May 1, 2026
·
Updated

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

misc: fastrpc: possible double-free of cctx->remoteheap

fastrpcinitcreatestaticprocess() may free cctx->remoteheap on the errmap path but does not clear the pointer. Later, fastrpcrpmsgremove() frees cctx->remoteheap again if it is non-NULL, which can lead to a double-free if the INITCREATESTATIC ioctl hits the error path and the rpmsg device is subsequently removed/unbound. Clear cctx->remoteheap 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.

Affected Software

11 affected components
Linux Linux kernel
Linux Linux kernel>=6.2<6.6.134
Linux Linux kernel>=6.7<6.12.81
Linux Linux kernel>=6.13<6.18.22
Linux Linux kernel>=6.19<6.19.12
Linux Linux kernel=7.0-rc1
Linux Linux kernel=7.0-rc2
Linux Linux kernel=7.0-rc3
Linux Linux kernel=7.0-rc4
Linux Linux kernel=7.0-rc5
Linux Linux kernel=7.0-rc6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    In fastrpc_init_create_static_process(), after freeing cctx->remote_heap on the INIT_CREATE_STATIC ioctl error path, clear the pointer (set cctx->remote_heap = NULL) so that the later cleanup (including fastrpc_rpmsg_remove() / err_map path) does not double-free it.

    Linux kernel (misc: fastrpc) cctx->remote_heap cleanup in error path = Set cctx->remote_heap to NULL after freeing it on the INIT_CREATE_STATIC ioctl error path

Event History

May 1, 2026
CVE Published
via MITRE·02:14 PM
Data Sourced
via MITRE·02:14 PM
DescriptionSeverity
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203