CVE-2025-38710
gfs2: Validate i_depth for exhash directories
Check your servers for CVE-2025-38710
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-38710 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:
gfs2: Validate i_depth for exhash directories
A fuzzer test introduced corruption that ends up with a depth of 0 in dir_e_read(), causing an undefined shift by 32 at:
index = hash >> (32 - dip->i_depth);
As calculated in an open-coded way in dir_make_exhash(), the minimum depth for an exhash directory is ilog2(sdp->sd_hash_ptrs) and 0 is invalid as sdp->sd_hash_ptrs is fixed as sdp->bsize / 16 at mount time.
So we can avoid the undefined behaviour by checking for depth values lower than the minimum in gfs2_dinode_in(). Values greater than the maximum are already being checked for there.
Also switch the calculation in dir_make_exhash() to use ilog2() to clarify how the depth is calculated.
Tested with the syzkaller repro.c and xfstests '-g quick'.
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.24% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 15 Oct 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 9a0045088d888c9c539c8c626a366cb52c0fbdab, before 076e992752e4b24178918f748d75597c80a408d2 affected from 9a0045088d888c9c539c8c626a366cb52c0fbdab, before 366183911b153e9b8cf758e1414e1154d7569337 affected from 9a0045088d888c9c539c8c626a366cb52c0fbdab, before 112bb60cd0e254a369e95aa9941a694ffeca089f affected from 9a0045088d888c9c539c8c626a366cb52c0fbdab, before cddea0c721106ea480371412d8de21705eb27376 affected from 9a0045088d888c9c539c8c626a366cb52c0fbdab, before 53a0249d68a210c16e961b83adfa82f94ee0a53d affected from 9a0045088d888c9c539c8c626a366cb52c0fbdab, before b5f46951e62377b6e406fadc18bc3c5bdf1632a7 affected from 9a0045088d888c9c539c8c626a366cb52c0fbdab, before 9680c58675b82348ab84d387e4fa727f7587e1a0 affected from 9a0045088d888c9c539c8c626a366cb52c0fbdab, before 557c024ca7250bb65ae60f16c02074106c2f197b
Other versions: unaffected
|
| Linux |
affected 2.6.26 unaffected before 2.6.26 unaffected from 5.10.258 up to and including 5.10.* unaffected from 5.15.209 up to and including 5.15.* unaffected from 6.1.175 up to and including 6.1.* unaffected from 6.6.134 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-38710 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38710
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-38710
trivy image --scanners vuln IMAGE | grep CVE-2025-38710
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/076e992752e4b24178918f748d75597c80a408d2 git.kernel.org
- https://git.kernel.org/stable/c/366183911b153e9b8cf758e1414e1154d7569337 git.kernel.org
- https://git.kernel.org/stable/c/112bb60cd0e254a369e95aa9941a694ffeca089f git.kernel.org
- https://git.kernel.org/stable/c/cddea0c721106ea480371412d8de21705eb27376 git.kernel.org
- https://git.kernel.org/stable/c/53a0249d68a210c16e961b83adfa82f94ee0a53d git.kernel.org
- https://git.kernel.org/stable/c/b5f46951e62377b6e406fadc18bc3c5bdf1632a7 git.kernel.org
- https://git.kernel.org/stable/c/9680c58675b82348ab84d387e4fa727f7587e1a0 git.kernel.org
- https://git.kernel.org/stable/c/557c024ca7250bb65ae60f16c02074106c2f197b git.kernel.org
Source: the record CVE-2025-38710 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse