CVE-2025-38549

MEDIUM

Linux Kernel - Use-After-Free in efivarfs_fs_info

Title source: llm
STIX 2.1

Description

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.

Scores

CVSS v3 5.5
EPSS 0.0013
EPSS Percentile 3.2%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Details

CWE
CWE-401
Status published
Products (12)
linux/Kernel 6.13.0 - 6.15.8linux
linux/Kernel 6.7.0 - 6.12.40linux
Linux/Linux < 6.7
Linux/Linux 5329aa5101f73c451bcd48deaf3f296685849d9c - 64e135f1eaba0bbb0cdee859af3328c68d5b9789
Linux/Linux 5329aa5101f73c451bcd48deaf3f296685849d9c - 816d36973467d1c9c08a48bdffe4675e219a2e84
Linux/Linux 5329aa5101f73c451bcd48deaf3f296685849d9c - e9fabe7036bb8be6071f39dc38605508f5f57b20
Linux/Linux 6.12.40 - 6.12.*
Linux/Linux 6.15.8 - 6.15.*
Linux/Linux 6.16
Linux/Linux 6.7
... and 2 more
Published Aug 16, 2025
Tracked Since Feb 18, 2026