CVE-2023-54130
hfs/hfsplus: avoid WARN_ON() for sanity check, use proper error handling
Check your servers for CVE-2023-54130
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-2023-54130 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.
Description
In 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).
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
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 7.71% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from c886c10a6eddb99923b315f42bf63f448883ef9a, before cc2164ada548addfa8ee215196661c3afe0c5154 affected from 2344f17c0a89c181ab1a9fef57fd8c3bddfd6e30, before 82725be426bce0a425cc5e26fbad61ffd29cff03 affected from 90103ccb6e60aa4efe48993d23d6a528472f2233, before da23752d9660ba7a8ca6c5768fd8776f67f59ee7 affected from 4fd3a11804c8877ff11fec59c5c53f1635331e3e, before be01f35efa876eb81cebab2cb0add068b7280ef4 affected from 48d9e2e6de01ed35e965eb549758a837c07b601d, before f10defb0be6ac42fb6a97b45920d32da6bd6fde8 affected from 55d1cbbbb29e6656c662ee8f73ba1fc4777532eb, before 90e019006644dad35862cb4aa270f561b0732066 affected from 55d1cbbbb29e6656c662ee8f73ba1fc4777532eb, before 45917be9f0af339a45b4619f31c902d37b8aed59 affected from 55d1cbbbb29e6656c662ee8f73ba1fc4777532eb, before cb7a95af78d29442b8294683eca4897544b8ef46 affected 8c40f2dbae603ef0bd21e87c63f54ec59fd88256 affected 367296925c7625c3969d2a78d7a3e1dee161beb5 affected from 4.9.337, before 4.10
Other versions: unaffected
|
| Linux |
affected 5.16 unaffected before 5.16 unaffected from 6.0.19 up to and including 6.0.* unaffected from 6.1.5 up to and including 6.1.* unaffected 6.2 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-2023-54130 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2023-54130
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-2023-54130
trivy image --scanners vuln IMAGE | grep CVE-2023-54130
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
- https://git.kernel.org/stable/c/cc2164ada548addfa8ee215196661c3afe0c5154 git.kernel.org
- https://git.kernel.org/stable/c/82725be426bce0a425cc5e26fbad61ffd29cff03 git.kernel.org
- https://git.kernel.org/stable/c/da23752d9660ba7a8ca6c5768fd8776f67f59ee7 git.kernel.org
- https://git.kernel.org/stable/c/be01f35efa876eb81cebab2cb0add068b7280ef4 git.kernel.org
- https://git.kernel.org/stable/c/f10defb0be6ac42fb6a97b45920d32da6bd6fde8 git.kernel.org
- https://git.kernel.org/stable/c/90e019006644dad35862cb4aa270f561b0732066 git.kernel.org
- https://git.kernel.org/stable/c/45917be9f0af339a45b4619f31c902d37b8aed59 git.kernel.org
- https://git.kernel.org/stable/c/cb7a95af78d29442b8294683eca4897544b8ef46 git.kernel.org
Source: the record CVE-2023-54130 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.
Vulnpocalypse