CVE-2025-71230 hfs: 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-71230?

CVE-2025-71230 is a medium-severity memory corruption vulnerability in Linux kernel, published on 18 Feb 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:

hfs: ensure sb->s_fs_info is always cleaned up

When hfs 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 hfs_fill_super() takes ownership of the filesystem-specific s_fs_info data it was leaked.

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

Which versions are affected by CVE-2025-71230?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2025-71230?

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-71230 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2025-71230, DEBIAN-CVE-2025-71230, GHSA-6xrx-3vj8-2rjc, ROOT-OS-DEBIAN-11-CVE-2025-71230, ROOT-OS-DEBIAN-12-CVE-2025-71230, ROOT-OS-DEBIAN-13-CVE-2025-71230 and 1 more.

Is CVE-2025-71230 in your software?

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

Check your SBOMs for free