# CVE-2025-38712: hfsplus: don't use BUG_ON() in hfsplus_create_attributes_file()

- 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.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-09-04T15:33:02.530Z
- Modified: 2026-10-19T21:10:00.160Z
- Weaknesses: CWE-617
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

hfsplus: don't use BUG_ON() in hfsplus_create_attributes_file()

When the volume header contains erroneous values that do not reflect
the actual state of the filesystem, hfsplus_fill_super() assumes that
the attributes file is not yet created, which later results in hitting
BUG_ON() when hfsplus_create_attributes_file() is called. Replace this
BUG_ON() with -EIO error with a message to suggest running fsck tool.

(As written by CVE List.)

## Affected

- Linux Linux: from 95e0d7dbb9b28ab0dfad7c7316066b05e1f1d4cd before bb0eea8e375677f586ad11c12e2525ed3fc698c2; from 95e0d7dbb9b28ab0dfad7c7316066b05e1f1d4cd before 9046566fa692f88954dac8c510f37ee17a15fdb7; from 95e0d7dbb9b28ab0dfad7c7316066b05e1f1d4cd before 03cd1db1494cf930e2fa042c9c13e32bffdb4eba; from 95e0d7dbb9b28ab0dfad7c7316066b05e1f1d4cd before dee5c668ad71ddbcb4b48d95e8a4f371314ad41d; from 95e0d7dbb9b28ab0dfad7c7316066b05e1f1d4cd before b3359392b75395a31af739a761f48f4041148226; from 95e0d7dbb9b28ab0dfad7c7316066b05e1f1d4cd before 1bb8da27ff15e346d4bc9e248e819c9a88ebf9d6; from 95e0d7dbb9b28ab0dfad7c7316066b05e1f1d4cd before d768e3ed430e89a699bf89d3214dcbbf4648c939; from 95e0d7dbb9b28ab0dfad7c7316066b05e1f1d4cd before ce5e387f396cbb5c061d9837abcac731e9e06f4d; from 95e0d7dbb9b28ab0dfad7c7316066b05e1f1d4cd before c7c6363ca186747ebc2df10c8a1a51e66e0e32d9; 3.13 (not affected: before 3.13; from 5.4.297 up to 5.4.*; from 5.10.241 up to 5.10.*; from 5.15.190 up to 5.15.*; from 6.1.149 up to 6.1.*; from 6.6.103 up to 6.6.*; from 6.12.43 up to 6.12.*; from 6.15.11 up to 6.15.*; from 6.16.2 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 3.13 before 5.4.297; from 5.5 before 5.10.241; from 5.11 before 5.15.190; from 5.16 before 6.1.149; from 6.2 before 6.6.103; from 6.7 before 6.12.43; from 6.13 before 6.15.11; from 6.16 before 6.16.2
- debian debian_linux: 11.0

## References

- <https://git.kernel.org/stable/c/bb0eea8e375677f586ad11c12e2525ed3fc698c2> (patch)
- <https://git.kernel.org/stable/c/9046566fa692f88954dac8c510f37ee17a15fdb7> (patch)
- <https://git.kernel.org/stable/c/03cd1db1494cf930e2fa042c9c13e32bffdb4eba> (patch)
- <https://git.kernel.org/stable/c/dee5c668ad71ddbcb4b48d95e8a4f371314ad41d> (patch)
- <https://git.kernel.org/stable/c/b3359392b75395a31af739a761f48f4041148226> (patch)
- <https://git.kernel.org/stable/c/1bb8da27ff15e346d4bc9e248e819c9a88ebf9d6> (patch)
- <https://git.kernel.org/stable/c/d768e3ed430e89a699bf89d3214dcbbf4648c939> (patch)
- <https://git.kernel.org/stable/c/ce5e387f396cbb5c061d9837abcac731e9e06f4d> (patch)
- <https://git.kernel.org/stable/c/c7c6363ca186747ebc2df10c8a1a51e66e0e32d9> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html> (mailing-list, third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-032379.html>

## Sources

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

---

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