{"id":"CVE-2025-71230","state":"PUBLISHED","title":"hfs: ensure sb->s_fs_info is always cleaned up","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nhfs: ensure sb->s_fs_info is always cleaned up\n\nWhen hfs was converted to the new mount api a bug was introduced by\nchanging the allocation pattern of sb->s_fs_info. If setup_bdev_super()\nfails after a new superblock has been allocated by sget_fc(), but before\nhfs_fill_super() takes ownership of the filesystem-specific s_fs_info\ndata it was leaked.\n\nFix this by freeing sb->s_fs_info in hfs_kill_super().","publishedAt":"2026-02-18T14:53:14.519Z","updatedAt":"2026-05-11T21:56:51.030Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ffcd06b6d13b72823aba0d7c871f7e4876e7916b","status":"affected","lessThan":"46c1d56ad321fb024761abd9af61a0cb616cf2f6","versionType":"git"},{"version":"ffcd06b6d13b72823aba0d7c871f7e4876e7916b","status":"affected","lessThan":"399219831514126bc9541e8eadefe02c6fbd9166","versionType":"git"},{"version":"ffcd06b6d13b72823aba0d7c871f7e4876e7916b","status":"affected","lessThan":"05ce49a902be15dc93854cbfc20161205a9ee446","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/hfs/mdb.c","fs/hfs/super.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.13","versionType":"semver"},{"version":"6.18.11","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.1","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/hfs/mdb.c","fs/hfs/super.c"]}],"references":["https://git.kernel.org/stable/c/46c1d56ad321fb024761abd9af61a0cb616cf2f6","https://git.kernel.org/stable/c/399219831514126bc9541e8eadefe02c6fbd9166","https://git.kernel.org/stable/c/05ce49a902be15dc93854cbfc20161205a9ee446"],"weaknesses":[],"ingestedAt":"2026-10-29T20:10:04.440Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/71xxx/CVE-2025-71230.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-71230","state":"PUBLISHED","datePublished":"2026-02-18T14:53:14.519Z","dateUpdated":"2026-05-11T21:56:51.030Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-02-18T14:25:13.844Z"},"containers":{"cna":{"title":"hfs: ensure sb->s_fs_info is always cleaned up","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nhfs: ensure sb->s_fs_info is always cleaned up\n\nWhen hfs was converted to the new mount api a bug was introduced by\nchanging the allocation pattern of sb->s_fs_info. If setup_bdev_super()\nfails after a new superblock has been allocated by sget_fc(), but before\nhfs_fill_super() takes ownership of the filesystem-specific s_fs_info\ndata it was leaked.\n\nFix this by freeing sb->s_fs_info in hfs_kill_super()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ffcd06b6d13b72823aba0d7c871f7e4876e7916b","status":"affected","lessThan":"46c1d56ad321fb024761abd9af61a0cb616cf2f6","versionType":"git"},{"version":"ffcd06b6d13b72823aba0d7c871f7e4876e7916b","status":"affected","lessThan":"399219831514126bc9541e8eadefe02c6fbd9166","versionType":"git"},{"version":"ffcd06b6d13b72823aba0d7c871f7e4876e7916b","status":"affected","lessThan":"05ce49a902be15dc93854cbfc20161205a9ee446","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/hfs/mdb.c","fs/hfs/super.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.13","versionType":"semver"},{"version":"6.18.11","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.1","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/hfs/mdb.c","fs/hfs/super.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/46c1d56ad321fb024761abd9af61a0cb616cf2f6"},{"url":"https://git.kernel.org/stable/c/399219831514126bc9541e8eadefe02c6fbd9166"},{"url":"https://git.kernel.org/stable/c/05ce49a902be15dc93854cbfc20161205a9ee446"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:56:51.030Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.18.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"6.19.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.13","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}