CVE-2025-71271 hfsplus: ensure sb->s_fs_info is always cleaned up

Medium 5.5 Published Updated

A memory leak in the Linux kernel HFS+ filesystem driver can lead to resource exhaustion and denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-71271?

CVE-2025-71271 is a medium-severity memory corruption vulnerability in Linux kernel, published on 6 May 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official 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().

Which versions are affected by CVE-2025-71271?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-71271?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-71271 being exploited?

There is no known exploitation of CVE-2025-71271 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-71271, DEBIAN-CVE-2025-71271, GHSA-89mq-48rx-7w6j, UBUNTU-CVE-2025-71271.

Is CVE-2025-71271 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free