hfsplus: ensure sb->s_fs_info is always cleaned up
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().
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.18.16, 6.19.6
- CVEs
- CVE-2025-71271
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 20:32 UTC · Revision 1
Source evidence
hfsplus: ensure sb->s_fs_info is always cleaned up
core-osv · Original sourcePublished 6 May 2026, 11:27 UTC
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().
osv:CVE-2025-71271
Kernel
Fixed versions: 6.18.16, 6.19.6
Complete source record
{
"id": "04b66dc5edc15d9b78c4d6a7ad63a903b782ec3089c151e1fe1cad8b5c0b6efa",
"url": "https://osv.dev/vulnerability/CVE-2025-71271",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "hfsplus: ensure sb->s_fs_info is always cleaned up",
"summary": "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().",
"evidence": "osv:CVE-2025-71271",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.18.16",
"evidence": "/affected/1/ranges"
},
{
"value": "6.19.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2025-71271",
"aliases": [
"CVE-2025-71271"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "432f7c78cb000a3151fa0d39585b000312f50d7e"
},
{
"fixed": "0bcfebb83b5460d5be4e5c9dfb19cdaf3d4cb1db"
},
{
"fixed": "1e38d32bb04d85a2c81204a85a34878a497128c8"
},
{
"fixed": "126fb0ce99431126b44a6c360192668c818f641f"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-71271.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.16"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "6.19.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-71271.json"
}
}
],
"modified": "2026-10-28T02:30:23.663171142Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/0bcfebb83b5460d5be4e5c9dfb19cdaf3d4cb1db",
"https://git.kernel.org/stable/c/126fb0ce99431126b44a6c360192668c818f641f",
"https://git.kernel.org/stable/c/1e38d32bb04d85a2c81204a85a34878a497128c8",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71271.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-71271",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/71xxx/CVE-2025-71271.json"
}
},
"related_cves": [
{
"value": "CVE-2025-71271",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 489903,
"published_at": "2026-05-06T11:27:05.321+00:00"
}