CVE-2025-38712

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

No CVSS score yet EPSS 0.18%

Published 4 Sep 2025 Updated 12 May 2026 CNA: Linux

Check your servers for CVE-2025-38712

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38712 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 8.00% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 95e0d7dbb9b28ab0dfad7c7316066b05e1f1d4cd, before bb0eea8e375677f586ad11c12e2525ed3fc698c2
affected from 95e0d7dbb9b28ab0dfad7c7316066b05e1f1d4cd, before 9046566fa692f88954dac8c510f37ee17a15fdb7
affected from 95e0d7dbb9b28ab0dfad7c7316066b05e1f1d4cd, before 03cd1db1494cf930e2fa042c9c13e32bffdb4eba
affected from 95e0d7dbb9b28ab0dfad7c7316066b05e1f1d4cd, before dee5c668ad71ddbcb4b48d95e8a4f371314ad41d
affected from 95e0d7dbb9b28ab0dfad7c7316066b05e1f1d4cd, before b3359392b75395a31af739a761f48f4041148226
affected from 95e0d7dbb9b28ab0dfad7c7316066b05e1f1d4cd, before 1bb8da27ff15e346d4bc9e248e819c9a88ebf9d6
affected from 95e0d7dbb9b28ab0dfad7c7316066b05e1f1d4cd, before d768e3ed430e89a699bf89d3214dcbbf4648c939
affected from 95e0d7dbb9b28ab0dfad7c7316066b05e1f1d4cd, before ce5e387f396cbb5c061d9837abcac731e9e06f4d
affected from 95e0d7dbb9b28ab0dfad7c7316066b05e1f1d4cd, before c7c6363ca186747ebc2df10c8a1a51e66e0e32d9
Other versions: unaffected
Linux
affected 3.13
unaffected before 3.13
unaffected from 5.4.297 up to and including 5.4.*
unaffected from 5.10.241 up to and including 5.10.*
unaffected from 5.15.190 up to and including 5.15.*
unaffected from 6.1.149 up to and including 6.1.*
unaffected from 6.6.103 up to and including 6.6.*
unaffected from 6.12.43 up to and including 6.12.*
unaffected from 6.15.11 up to and including 6.15.*
unaffected from 6.16.2 up to and including 6.16.*
unaffected 6.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38712 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38712

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-38712
trivy image --scanners vuln IMAGE | grep CVE-2025-38712

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-38712 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.