CVE-2025-71271

hfsplus: ensure sb->s_fs_info is always cleaned up

Published May 6, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

hfsplus: ensure sb->s_fs_info is always cleaned up

When hfsplus was converted to the new mount api a bug was introduced by
changing the allocation pattern of sb->s_fs_info. If setup_bdev_super()
fails after a new superblock has been allocated by sget_fc(), but before
hfsplus_fill_super() takes ownership of the filesystem-specific s_fs_info
data it was leaked.

Fix this by freeing sb->s_fs_info in hfsplus_kill_super().

Analysis

AI-generated

Technical impact

A flaw in the Linux kernel’s HFS+ filesystem module causes a memory leak when a superblock is allocated but subsequent initialization fails. The kernel fails to free the filesystem‑specific data structure sb->s_fs_info, leaving it allocated and unwieldy. Repeated failures of mounting an HFS+ filesystem with the new mount API can therefore accumulate unused memory, which may ultimately exhaust system memory and degrade or halt kernel scheduling, resulting in a denial of service. The weakness is represented by CWE‑763 (Resource Leak).

Affected Systems

The vulnerability affects all Linux kernel builds that include the default HFS+ filesystem module. No specific kernel version is specified, so any kernel running a version that has not yet been patched to free sb->s_fs_info during superblock cleanup is potentially impacted. This includes common vendor distributions that ship their own kernel copies.

Risk and Exploitability

The CVSS score of 5.5 indicates medium severity. The EPSS score of 0.00022 indicates a very low probability of exploitation, and the issue is not listed in CISA KEV. Based on the description, it is inferred that the attack vector is local privileged, requiring the attacker to execute a mount operation for an HFS+ filesystem using the new API. The vulnerability can be triggered by failed mount attempts, which could arise from malicious software purposely causing such failures or from automatic mounting of removable media with corrupted or unsupported HFS+ partitions. The exploit conditions do not require network access or remote code execution, but repeated failures can lead to resource exhaustion and service degradation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to a patched version where the hfsplus_kill_super() function frees sb->s_fs_info during superblock cleanup.
  • Reboot or reload the kernel to ensure the updated HFS+ module is in active use.
  • If an immediate kernel update is not possible, restrict the use of the HFS+ mount command to trusted administrators and monitor system memory usage for signs of leaking resources.
  • Disable automatic mounting of HFS+ filesystems if they are not needed in the environment.

Generated by OpenCVE AI on May 12, 2026 at 23:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
Type Values Removed Values Added
Weaknesses CWE-400
CWE-404
Type Values Removed Values Added
Weaknesses CWE-763
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-400
CWE-404
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: hfsplus: ensure sb->s_fs_info is always cleaned up When hfsplus was converted to the new mount api a bug was introduced by changing the allocation pattern of sb->s_fs_info. If setup_bdev_super() fails after a new superblock has been allocated by sget_fc(), but before hfsplus_fill_super() takes ownership of the filesystem-specific s_fs_info data it was leaked. Fix this by freeing sb->s_fs_info in hfsplus_kill_super().
Title hfsplus: ensure sb->s_fs_info is always cleaned up
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
May 11, 2026, 9:57 PM
Reserved
Mar 17, 2026, 9:08 AM
Status
Analyzed
Published
May 6, 2026, 12:16 PM
Modified
Oct 14, 2026, 1:10 PM
Severity
Moderate
Public date
May 6, 2026, 12:00 AM