PT-2025-47717 · Linux+4 · Linux Kernel+4
Published
2025-10-26
·
Updated
2026-03-13
·
CVE-2025-40209
CVSS v2.0
4.6
Medium
| Vector | AV:L/AC:L/Au:S/C:N/I:N/A:C |
Name of the Vulnerable Software and Affected Versions
Linux kernel (affected versions not specified)
Description
A memory leak exists in the btrfs file system within the Linux kernel, specifically in the
btrfs add qgroup relation function. This occurs when the function is called with invalid qgroup levels where the source level is greater than or equal to the destination level. In such cases, the function returns an error without freeing a preallocated qgroup list structure. The caller unconditionally sets the pointer to NULL after the call, preventing cleanup, leading to a memory leak. This can be repeatedly triggered by a user with access to a writable btrfs mount, potentially exhausting kernel memory. The vulnerable code pattern is present in btrfs ioctl qgroup assign(). The leak involves 64 bytes per failed operation.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Memory Leak
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Debian
Linuxmint
Linux Kernel
Ubuntu
Btrfs