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().
Published: 2026-05-06
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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 yet.

History

Tue, 12 May 2026 21:30:00 +0000

Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo

Thu, 07 May 2026 04:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-400
CWE-404

Thu, 07 May 2026 00:15:00 +0000

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


Wed, 06 May 2026 14:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-400
CWE-404

Wed, 06 May 2026 12:15:00 +0000

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

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-05-11T21:57:10.064Z

Reserved: 2026-03-17T09:08:18.458Z

Link: CVE-2025-71271

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-05-06T12:16:27.090

Modified: 2026-05-12T21:25:25.097

Link: CVE-2025-71271

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-05-06T00:00:00Z

Links: CVE-2025-71271 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-12T23:45:25Z

Weaknesses