Skip to content
Heist/ feed
Back to feed
UnratedFix available

efivarfs: Fix memory leak of efivarfs_fs_info in fs_context error paths

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: efivarfs: Fix memory leak of efivarfs_fs_info in fs_context error paths When processing mount options, efivarfs allocates efivarfs_fs_info (sfi) early in fs_context initialization. However, sfi is associated with the superblock and typically freed when the superblock is destroyed. If the fs_context is released (final put) before fill_super is called—such as on error paths or during reconfiguration—the sfi structure would leak, as ownership never transfers to the superblock. Implement the .free callback in efivarfs_context_ops to ensure any allocated sfi is properly freed if the fs_context is torn down before fill_super, preventing this memory leak.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.40, 6.15.8
CVEs
CVE-2025-38549
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 19:57 UTC · Revision 1

Source evidence

efivarfs: Fix memory leak of efivarfs_fs_info in fs_context error paths

core-osv · Original source

Published 16 Aug 2025, 11:34 UTC

In the Linux kernel, the following vulnerability has been resolved: efivarfs: Fix memory leak of efivarfs_fs_info in fs_context error paths When processing mount options, efivarfs allocates efivarfs_fs_info (sfi) early in fs_context initialization. However, sfi is associated with the superblock and typically freed when the superblock is destroyed. If the fs_context is released (final put) before fill_super is called—such as on error paths or during reconfiguration—the sfi structure would leak, as ownership never transfers to the superblock. Implement the .free callback in efivarfs_context_ops to ensure any allocated sfi is properly freed if the fs_context is torn down before fill_super, preventing this memory leak.

osv:CVE-2025-38549

Kernel

Fixed versions: 6.12.40, 6.15.8

Complete source record
{
  "id": "c1bc9b57224f487b015ae69260e76ecdaa876e15b31774f72f4084dc4ed7a1d2",
  "url": "https://osv.dev/vulnerability/CVE-2025-38549",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "efivarfs: Fix memory leak of efivarfs_fs_info in fs_context error paths",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: efivarfs: Fix memory leak of efivarfs_fs_info in fs_context error paths When processing mount options, efivarfs allocates efivarfs_fs_info (sfi) early in fs_context initialization. However, sfi is associated with the superblock and typically freed when the superblock is destroyed. If the fs_context is released (final put) before fill_super is called—such as on error paths or during reconfiguration—the sfi structure would leak, as ownership never transfers to the superblock. Implement the .free callback in efivarfs_context_ops to ensure any allocated sfi is properly freed if the fs_context is torn down before fill_super, preventing this memory leak.",
    "evidence": "osv:CVE-2025-38549",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.40",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.15.8",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-38549",
      "aliases": [
        "CVE-2025-38549"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5329aa5101f73c451bcd48deaf3f296685849d9c"
                },
                {
                  "fixed": "816d36973467d1c9c08a48bdffe4675e219a2e84"
                },
                {
                  "fixed": "e9fabe7036bb8be6071f39dc38605508f5f57b20"
                },
                {
                  "fixed": "64e135f1eaba0bbb0cdee859af3328c68d5b9789"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38549.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.40"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.15.8"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38549.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:31.917325181Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/64e135f1eaba0bbb0cdee859af3328c68d5b9789",
        "https://git.kernel.org/stable/c/816d36973467d1c9c08a48bdffe4675e219a2e84",
        "https://git.kernel.org/stable/c/e9fabe7036bb8be6071f39dc38605508f5f57b20",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38549.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-38549",
        "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/38xxx/CVE-2025-38549.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-38549",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 498847,
  "published_at": "2025-08-16T11:34:17.699+00:00"
}