hfs/hfsplus: avoid WARN_ON() for sanity check, use proper error handling

Summary

CVECVE-2023-54130
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2025-12-24 13:16:14 UTC
Updated2026-08-04 10:19:30 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: hfs/hfsplus: avoid WARN_ON() for sanity check, use proper error handling Commit 55d1cbbbb29e ("hfs/hfsplus: use WARN_ON for sanity check") fixed a build warning by turning a comment into a WARN_ON(), but it turns out that syzbot then complains because it can trigger said warning with a corrupted hfs image. The warning actually does warn about a bad situation, but we are much better off just handling it as the error it is. So rather than warn about us doing bad things, stop doing the bad things and return -EIO. While at it, also fix a memory leak that was introduced by an earlier fix for a similar syzbot warning situation, and add a check for one case that historically wasn't handled at all (ie neither comment nor subsequent WARN_ON).

Risk And Classification

Primary CVSS: v3.1 7.8 HIGH from 416baaa9-dc9f-4396-8d5f-8c081fb06d67

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

EPSS: 0.001440000 probability, percentile 0.041390000 (date 2026-08-06)


VersionSourceTypeScoreSeverityVector
3.1416baaa9-dc9f-4396-8d5f-8c081fb06d67Secondary7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
3.1CNADECLARED7.8HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected c886c10a6eddb99923b315f42bf63f448883ef9a cc2164ada548addfa8ee215196661c3afe0c5154 git Not specified
CNA Linux Linux affected 2344f17c0a89c181ab1a9fef57fd8c3bddfd6e30 82725be426bce0a425cc5e26fbad61ffd29cff03 git Not specified
CNA Linux Linux affected 90103ccb6e60aa4efe48993d23d6a528472f2233 da23752d9660ba7a8ca6c5768fd8776f67f59ee7 git Not specified
CNA Linux Linux affected 4fd3a11804c8877ff11fec59c5c53f1635331e3e be01f35efa876eb81cebab2cb0add068b7280ef4 git Not specified
CNA Linux Linux affected 48d9e2e6de01ed35e965eb549758a837c07b601d f10defb0be6ac42fb6a97b45920d32da6bd6fde8 git Not specified
CNA Linux Linux affected 55d1cbbbb29e6656c662ee8f73ba1fc4777532eb 90e019006644dad35862cb4aa270f561b0732066 git Not specified
CNA Linux Linux affected 55d1cbbbb29e6656c662ee8f73ba1fc4777532eb 45917be9f0af339a45b4619f31c902d37b8aed59 git Not specified
CNA Linux Linux affected 55d1cbbbb29e6656c662ee8f73ba1fc4777532eb cb7a95af78d29442b8294683eca4897544b8ef46 git Not specified
CNA Linux Linux affected 8c40f2dbae603ef0bd21e87c63f54ec59fd88256 git Not specified
CNA Linux Linux affected 367296925c7625c3969d2a78d7a3e1dee161beb5 git Not specified
CNA Linux Linux affected 4.9.337 4.10 semver Not specified
CNA Linux Linux affected 5.16 Not specified
CNA Linux Linux unaffected 5.16 semver Not specified
CNA Linux Linux unaffected 6.0.19 6.0.* semver Not specified
CNA Linux Linux unaffected 6.1.5 6.1.* semver Not specified
CNA Linux Linux unaffected 6.2 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/45917be9f0af339a45b4619f31c902d37b8aed59 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/82725be426bce0a425cc5e26fbad61ffd29cff03 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/90e019006644dad35862cb4aa270f561b0732066 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/da23752d9660ba7a8ca6c5768fd8776f67f59ee7 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/cc2164ada548addfa8ee215196661c3afe0c5154 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f10defb0be6ac42fb6a97b45920d32da6bd6fde8 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/cb7a95af78d29442b8294683eca4897544b8ef46 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/be01f35efa876eb81cebab2cb0add068b7280ef4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report