# CVE-2025-71271: hfsplus: 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.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-06T11:27:05.321Z
- Modified: 2026-10-14T13:10:00.187Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 432f7c78cb000a3151fa0d39585b000312f50d7e before 0bcfebb83b5460d5be4e5c9dfb19cdaf3d4cb1db; from 432f7c78cb000a3151fa0d39585b000312f50d7e before 1e38d32bb04d85a2c81204a85a34878a497128c8; from 432f7c78cb000a3151fa0d39585b000312f50d7e before 126fb0ce99431126b44a6c360192668c818f641f; 6.13 (not affected: before 6.13; from 6.18.16 up to 6.18.*; from 6.19.6 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.13 before 6.18.16; from 6.19 before 6.19.6

## References

- <https://git.kernel.org/stable/c/0bcfebb83b5460d5be4e5c9dfb19cdaf3d4cb1db> (patch)
- <https://git.kernel.org/stable/c/1e38d32bb04d85a2c81204a85a34878a497128c8> (patch)
- <https://git.kernel.org/stable/c/126fb0ce99431126b44a6c360192668c818f641f> (patch)

## Sources

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

---

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