{"id":"CVE-2026-31730","aliases":["CVE-2026-31730"],"related":[],"kind":"vulnerability","state":"published","title":"misc: fastrpc: possible double-free of cctx->remote_heap","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: fastrpc: possible double-free of cctx->remote_heap\n\nfastrpc_init_create_static_process() may free cctx->remote_heap on the\nerr_map path but does not clear the pointer. Later, fastrpc_rpmsg_remove()\nfrees cctx->remote_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->remote_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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: fastrpc: possible double-free of cctx->remote_heap\n\nfastrpc_init_create_static_process() may free cctx->remote_heap on the\nerr_map path but does not clear the pointer. Later, fastrpc_rpmsg_remove()\nfrees cctx->remote_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->remote_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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nmisc: fastrpc: posible doble liberación de cctx  ->  remote_heap\n\nfastrpc_init_create_static_process() puede liberar cctx  ->  remote_heap en la ruta err_map pero no borra el puntero. Más tarde, fastrpc_rpmsg_remove() libera cctx  ->  remote_heap de nuevo si no es NULL, lo que puede llevar a una doble liberación si el ioctl INIT_CREATE_STATIC alcanza la ruta de error y el dispositivo rpmsg es posteriormente eliminado/desvinculado.\nBorrar cctx  ->  remote_heap después de liberarlo en la ruta de error para evitar que la limpieza posterior lo libere de nuevo.\n\nEste problema fue encontrado por un flujo de trabajo de análisis interno que extrae información basada en AST y ejecuta comprobaciones estáticas, con asistencia de LLM para el triaje, y fue confirmado por una revisión manual del código.\nNo se realizaron pruebas de hardware.","source":"nvd"}],"published":"2026-05-01T14:14:29.522Z","modified":"2026-11-11T21:10:00.200Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"type":"git","introduced":"0871561055e666da421d779397efcc1e5e964cab","fixed":"4b8e527aca357a6488680713bd88007cf8f547fe","status":"affected"},{"type":"git","introduced":"0871561055e666da421d779397efcc1e5e964cab","fixed":"0bdee4118340c5a756220c1b29a7dab86bb0aa65","status":"affected"},{"type":"git","introduced":"0871561055e666da421d779397efcc1e5e964cab","fixed":"3a164f640953cc982804746e772d379171aff5c6","status":"affected"},{"type":"git","introduced":"0871561055e666da421d779397efcc1e5e964cab","fixed":"f67d368d26764a357691b2b3a33d3cb55b435bfc","status":"affected"},{"type":"git","introduced":"0871561055e666da421d779397efcc1e5e964cab","fixed":"ba2c83167b215da30fa2aae56b140198cf8d8408","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.2","status":"unaffected"},{"type":"semver","introduced":"6.6.134","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.81","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.22","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.12","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.2","fixed":"6.6.134"},{"status":"affected","introduced":"6.7","fixed":"6.12.81"},{"status":"affected","introduced":"6.13","fixed":"6.18.22"},{"status":"affected","introduced":"6.19","fixed":"6.19.12"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/4b8e527aca357a6488680713bd88007cf8f547fe","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0bdee4118340c5a756220c1b29a7dab86bb0aa65","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3a164f640953cc982804746e772d379171aff5c6","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f67d368d26764a357691b2b3a33d3cb55b435bfc","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ba2c83167b215da30fa2aae56b140198cf8d8408","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31730","url":"https://www.cve.org/CVERecord?id=CVE-2026-31730","licence":"CVE Terms of Use","modified":"2026-08-05T12:24:51.799Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31730","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31730","licence":"Public domain","modified":"2026-11-11T21:10:00.200Z"}],"updatedAt":"2026-11-25T22:59:20.356Z","epss":{"score":0.00134,"percentile":0.03088,"date":"2026-12-01T12:00:22.000Z"}}