Skip to content
Heist/ feed
Back to feed
UnratedFix available

fs: autofs: fix memory leak in autofs_fill_super()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: fs: autofs: fix memory leak in autofs_fill_super() In autofs_fill_super(), we create a new inode using autofs_new_ino(), however, if we fail to create root_inode, (that is, root_inode failure path), we return -ENOMEM without freeing the new inode(ino) that we created causing a memory leak. Fix this by adding autofs_free_ino() to free the inode we created in root_inode failure path before returning ENOMEM.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.111, 6.18.53, 7.2.7
CVEs
CVE-2026-97606
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 18:46 UTC · Revision 1

Source evidence

fs: autofs: fix memory leak in autofs_fill_super()

core-osv · Original source

Published 25 Sept 2026, 10:22 UTC

In the Linux kernel, the following vulnerability has been resolved: fs: autofs: fix memory leak in autofs_fill_super() In autofs_fill_super(), we create a new inode using autofs_new_ino(), however, if we fail to create root_inode, (that is, root_inode failure path), we return -ENOMEM without freeing the new inode(ino) that we created causing a memory leak. Fix this by adding autofs_free_ino() to free the inode we created in root_inode failure path before returning ENOMEM.

osv:CVE-2026-97606

Kernel

Fixed versions: 6.12.111, 6.18.53, 7.2.7

Complete source record
{
  "id": "7b0a8767c9a9679cd61e82dd579c47e3933d9c47e9b949dbf75e3fee0adff099",
  "url": "https://osv.dev/vulnerability/CVE-2026-97606",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "fs: autofs: fix memory leak in autofs_fill_super()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: fs: autofs: fix memory leak in autofs_fill_super() In autofs_fill_super(), we create a new inode using autofs_new_ino(), however, if we fail to create root_inode, (that is, root_inode failure path), we return -ENOMEM without freeing the new inode(ino) that we created causing a memory leak. Fix this by adding autofs_free_ino() to free the inode we created in root_inode failure path before returning ENOMEM.",
    "evidence": "osv:CVE-2026-97606",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.111",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.53",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.2.7",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-97606",
      "aliases": [
        "CVE-2026-97606"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "66917f85db6002ed09cd24186258892fcfca64b6"
                },
                {
                  "fixed": "4262b91e08e74cb5209ea737c554cf983d332382"
                },
                {
                  "fixed": "9933ad1c4ff67680cd59c47f6d2e81b533bcd467"
                },
                {
                  "fixed": "6259b5d9bdc45fdb3158406b28c27fa074823159"
                },
                {
                  "fixed": "5ab54837fce04a1c9923d0bfd3d5de51fdc768b3"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97606.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.111"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.53"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.19.0"
                },
                {
                  "fixed": "7.2.7"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-97606.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:22.234444529Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/4262b91e08e74cb5209ea737c554cf983d332382",
        "https://git.kernel.org/stable/c/5ab54837fce04a1c9923d0bfd3d5de51fdc768b3",
        "https://git.kernel.org/stable/c/6259b5d9bdc45fdb3158406b28c27fa074823159",
        "https://git.kernel.org/stable/c/9933ad1c4ff67680cd59c47f6d2e81b533bcd467",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/97xxx/CVE-2026-97606.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-97606",
        "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/2026/97xxx/CVE-2026-97606.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-97606",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 488722,
  "published_at": "2026-09-25T10:22:17.835+00:00"
}