# CVE-2025-40036: misc: fastrpc: fix possible map leak in fastrpc_put_args

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2025-10-28T11:48:17.630Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## Description

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

misc: fastrpc: fix possible map leak in fastrpc_put_args

copy_to_user() failure would cause an early return without cleaning up
the fdlist, which has been updated by the DSP. This could lead to map
leak. Fix this by redirecting to a cleanup path on failure, ensuring
that all mapped buffers are properly released before returning.

(As written by CVE List.)

## Affected

- Linux Linux: from c68cfb718c8f97b7f7a50ed66be5feb42d0c8988 before a085658264d0c8d4f795d4631f77d7289a021de9; from c68cfb718c8f97b7f7a50ed66be5feb42d0c8988 before 3ad42dc66445df6977cf4be0c06f1a655299ce6c; from c68cfb718c8f97b7f7a50ed66be5feb42d0c8988 before 78d33a041555db03903e8037fd053ed74fbd88cb; from c68cfb718c8f97b7f7a50ed66be5feb42d0c8988 before c000f65f0ac93d9f9cc69a230d372f6ca93e4879; from c68cfb718c8f97b7f7a50ed66be5feb42d0c8988 before da1ba64176e0138f2bfa96f9e43e8c3640d01e1e; 5.1 (not affected: before 5.1; from 6.1.156 up to 6.1.*; from 6.6.112 up to 6.6.*; from 6.12.53 up to 6.12.*; from 6.17.3 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/a085658264d0c8d4f795d4631f77d7289a021de9>
- <https://git.kernel.org/stable/c/3ad42dc66445df6977cf4be0c06f1a655299ce6c>
- <https://git.kernel.org/stable/c/78d33a041555db03903e8037fd053ed74fbd88cb>
- <https://git.kernel.org/stable/c/c000f65f0ac93d9f9cc69a230d372f6ca93e4879>
- <https://git.kernel.org/stable/c/da1ba64176e0138f2bfa96f9e43e8c3640d01e1e>

## Sources

- CVE List: [CVE-2025-40036](https://www.cve.org/CVERecord?id=CVE-2025-40036), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-40036](https://nvd.nist.gov/vuln/detail/CVE-2025-40036), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40036 · Whole record: https://cve.day/CVE-2025-40036.json · Rebuilt by cve.day 2026-11-25T22:59:06.927Z
