# CVE-2025-71230: hfs: ensure sb->s_fs_info is always cleaned up

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-02-18T14:53:14.519Z
- Modified: 2026-06-17T10:03:54.903Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from ffcd06b6d13b72823aba0d7c871f7e4876e7916b before 46c1d56ad321fb024761abd9af61a0cb616cf2f6; from ffcd06b6d13b72823aba0d7c871f7e4876e7916b before 399219831514126bc9541e8eadefe02c6fbd9166; from ffcd06b6d13b72823aba0d7c871f7e4876e7916b before 05ce49a902be15dc93854cbfc20161205a9ee446; 6.13 (not affected: before 6.13; from 6.18.11 up to 6.18.*; from 6.19.1 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.13 before 6.18.11; from 6.19 before 6.19.1

## References

- <https://git.kernel.org/stable/c/46c1d56ad321fb024761abd9af61a0cb616cf2f6> (patch)
- <https://git.kernel.org/stable/c/399219831514126bc9541e8eadefe02c6fbd9166> (patch)
- <https://git.kernel.org/stable/c/05ce49a902be15dc93854cbfc20161205a9ee446> (patch)

## Sources

- CVE List: [CVE-2025-71230](https://www.cve.org/CVERecord?id=CVE-2025-71230), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-71230](https://nvd.nist.gov/vuln/detail/CVE-2025-71230), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-71230 · Whole record: https://cve.day/CVE-2025-71230.json · Rebuilt by cve.day 2026-11-25T22:59:11.272Z
