CVE-2025-38549
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-libbpf-static | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
| kernel6.12-libbpf | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
| kernel6.12-modules-extra-common | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
| bpftool6.12 | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
| kernel6.12-devel | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
| kernel-livepatch-6.12.40-63.114 | Amazon Linux | 1:1.0-0.amzn2023 |
| kernel6.12 | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
| python3-perf6.12 | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
| kernel6.12-libbpf-devel | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
| kernel6.12-headers | Amazon Linux | 1:6.12.40-63.114.amzn2023 |
1 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 5329aa5101f73c451bcd48deaf3f296685849d9c, 5329aa5101f73c451bcd48deaf3f296685849d9c, 5329aa5101f73c451bcd48deaf3f296685849d9c |
| Linux | Linux | 6.7, 0, 6.12.40 |
| amazon:2023 | kernel6.12-libbpf-static | 0 |
| amazon:2023 | kernel6.12-libbpf | 0 |
| amazon:2023 | kernel6.12-modules-extra-common | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.12-devel | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.12.40-63.114 | 0 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel6.12-libbpf-devel | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| linux | linux_kernel | 6.7, 6.7, 6.7 |
| amazon:2023 | kernel6.12-tools-devel | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| Linux | Linux | 6.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