Skip to content
Heist/ feed
Back to feed
UnratedFix available

misc: fastrpc: fix possible map leak in fastrpc_put_args

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.156, 6.12.53, 6.17.3, 6.6.112
CVEs
CVE-2025-40036
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 04:54 UTC · Revision 1

Source evidence

misc: fastrpc: fix possible map leak in fastrpc_put_args

core-osv · Original source

Published 28 Oct 2025, 11:48 UTC

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.

osv:CVE-2025-40036

Kernel

Fixed versions: 6.1.156, 6.6.112, 6.12.53, 6.17.3

Complete source record
{
  "id": "615f8d9c82a96b36ce9f0b3e3ac0a1734f56df7a4c6b6e00403cf005ba60699b",
  "url": "https://osv.dev/vulnerability/CVE-2025-40036",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "misc: fastrpc: fix possible map leak in fastrpc_put_args",
    "summary": "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.",
    "evidence": "osv:CVE-2025-40036",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.156",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.112",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.53",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.17.3",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-40036",
      "aliases": [
        "CVE-2025-40036"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "c68cfb718c8f97b7f7a50ed66be5feb42d0c8988"
                },
                {
                  "fixed": "a085658264d0c8d4f795d4631f77d7289a021de9"
                },
                {
                  "fixed": "3ad42dc66445df6977cf4be0c06f1a655299ce6c"
                },
                {
                  "fixed": "78d33a041555db03903e8037fd053ed74fbd88cb"
                },
                {
                  "fixed": "c000f65f0ac93d9f9cc69a230d372f6ca93e4879"
                },
                {
                  "fixed": "da1ba64176e0138f2bfa96f9e43e8c3640d01e1e"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40036.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.1.0"
                },
                {
                  "fixed": "6.1.156"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.112"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.53"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.17.3"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40036.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:25.893822380Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/3ad42dc66445df6977cf4be0c06f1a655299ce6c",
        "https://git.kernel.org/stable/c/78d33a041555db03903e8037fd053ed74fbd88cb",
        "https://git.kernel.org/stable/c/a085658264d0c8d4f795d4631f77d7289a021de9",
        "https://git.kernel.org/stable/c/c000f65f0ac93d9f9cc69a230d372f6ca93e4879",
        "https://git.kernel.org/stable/c/da1ba64176e0138f2bfa96f9e43e8c3640d01e1e",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40036.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-40036",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40036.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-40036",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 492592,
  "published_at": "2025-10-28T11:48:17.63+00:00"
}