{"id":"CVE-2026-31730","summary":"misc: fastrpc: possible double-free of cctx-\u003eremote_heap","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: fastrpc: possible double-free of cctx-\u003eremote_heap\n\nfastrpc_init_create_static_process() may free cctx-\u003eremote_heap on the\nerr_map path but does not clear the pointer. Later, fastrpc_rpmsg_remove()\nfrees cctx-\u003eremote_heap again if it is non-NULL, which can lead to a\ndouble-free if the INIT_CREATE_STATIC ioctl hits the error path and the rpmsg\ndevice is subsequently removed/unbound.\nClear cctx-\u003eremote_heap after freeing it in the error path to prevent the\nlater cleanup from freeing it again.\n\nThis issue was found by an in-house analysis workflow that extracts AST-based\ninformation and runs static checks, with LLM assistance for triage, and was\nconfirmed by manual code review.\nNo hardware testing was performed.","modified":"2026-05-18T05:58:44.301656767Z","published":"2026-05-01T14:14:29.522Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31730.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0bdee4118340c5a756220c1b29a7dab86bb0aa65"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3a164f640953cc982804746e772d379171aff5c6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4b8e527aca357a6488680713bd88007cf8f547fe"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ba2c83167b215da30fa2aae56b140198cf8d8408"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f67d368d26764a357691b2b3a33d3cb55b435bfc"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31730.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31730"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0871561055e666da421d779397efcc1e5e964cab"},{"fixed":"4b8e527aca357a6488680713bd88007cf8f547fe"},{"fixed":"0bdee4118340c5a756220c1b29a7dab86bb0aa65"},{"fixed":"3a164f640953cc982804746e772d379171aff5c6"},{"fixed":"f67d368d26764a357691b2b3a33d3cb55b435bfc"},{"fixed":"ba2c83167b215da30fa2aae56b140198cf8d8408"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31730.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.134"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.81"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.22"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"6.19.12"}]}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2026-31730.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}