VDB

CVE-2025-38549

CVE-2025-38549 PUBLISHED

efivarfs: Fix memory leak of efivarfs_fs_info in fs_context error paths

Reported by linux · Published August 16, 2025

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.

EPSS 0.18% · 7.1th percentile

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel6.12-libbpf-staticAmazon Linux1:6.12.40-63.114.amzn2023
kernel6.12-libbpfAmazon Linux1:6.12.40-63.114.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.40-63.114.amzn2023
bpftool6.12Amazon Linux1:6.12.40-63.114.amzn2023
kernel6.12-develAmazon Linux1:6.12.40-63.114.amzn2023
perf6.12Amazon Linux1:6.12.40-63.114.amzn2023
kernel-livepatch-6.12.40-63.114Amazon Linux1:1.0-0.amzn2023
kernel6.12Amazon Linux1:6.12.40-63.114.amzn2023
python3-perf6.12Amazon Linux1:6.12.40-63.114.amzn2023
kernel6.12-modules-extraAmazon Linux1:6.12.40-63.114.amzn2023
kernel6.12-libbpf-develAmazon Linux1:6.12.40-63.114.amzn2023
kernel6.12-headersAmazon Linux1:6.12.40-63.114.amzn2023

1 more packages have a fixed version. See every fix in Lookup.

Risk scores

EPSS Score
0.18%
7.1th percentile

Affected products

VendorProductVersions
LinuxLinux5329aa5101f73c451bcd48deaf3f296685849d9c, 5329aa5101f73c451bcd48deaf3f296685849d9c, 5329aa5101f73c451bcd48deaf3f296685849d9c
LinuxLinux6.7, 0, 6.12.40
amazon:2023kernel6.12-libbpf-static0
amazon:2023kernel6.12-libbpf0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023bpftool6.120
amazon:2023kernel6.12-devel0
amazon:2023perf6.120
amazon:2023kernel-livepatch-6.12.40-63.1140
amazon:2023kernel6.120
amazon:2023python3-perf6.120
amazon:2023kernel6.12-modules-extra0
amazon:2023kernel6.12-libbpf-devel0
amazon:2023kernel6.12-headers0
linuxlinux_kernel6.7, 6.7, 6.7
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel6.12-tools0
LinuxLinux6.15.8, 6.16, 5329aa5101f73c451bcd48deaf3f296685849d9c

Timeline

  • Aug 8, 2025 CVE Published
  • Aug 16, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 12, 2025 PoC Published (32 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (155 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (163 in total, the first dated here)
  • May 11, 2026 CVE Updated
  • Jun 9, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-38549
vulnetix vdb fixes CVE-2025-38549

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-38549/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›