CVE-2025-38710
gfs2: Validate i_depth for exhash directories
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'.
INFO
Published Date :
Sept. 4, 2025, 4:15 p.m.
Last Modified :
Oct. 19, 2026, 9:10 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | |||||
| CVSS 3.1 | MEDIUM | [email protected] | ||||
| CVSS 3.1 | HIGH | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
Solution
- Apply the provided Linux kernel patches.
- Ensure directory depth validation is implemented.
- Test with syzkaller and xfstests.
- Rebuild and deploy the kernel.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-38710.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-38710 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-38710
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-38710 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-38710 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Translated by [email protected]
Oct. 19, 2026
Action Type Old Value New Value Added Translation Title: Linux, Description: En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: gfs2: Validar i_depth para directorios exhash Una prueba de fuzzer introdujo corrupción que resulta en una profundidad de 0 en dir_e_read(), causando un desplazamiento indefinido de 32 en: index = hash >> (32 - dip->i_depth); Según se calcula de forma abierta en dir_make_exhash(), la profundidad mínima para un directorio exhash es ilog2(sdp->sd_hash_ptrs) y 0 no es válido ya que sdp->sd_hash_ptrs se fija como sdp->bsize / 16 en el momento del montaje. Así podemos evitar el comportamiento indefinido comprobando los valores de profundidad inferiores al mínimo en gfs2_dinode_in(). Los valores mayores que el máximo ya se están comprobando allí. También cambiar el cálculo en dir_make_exhash() para usar ilog2() para clarificar cómo se calcula la profundidad. Probado con syzkaller repro.c y xfstests '-g quick'. -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Oct. 15, 2026
Action Type Old Value New Value Added SSVC {'id': 'CVE-2025-38710', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'none'}, {'automatable': 'no'}, {'technicalImpact': 'total'}], 'version': '2.0.3', 'timestamp': '2026-10-15T21:52:51.698031Z'} -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 15, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/076e992752e4b24178918f748d75597c80a408d2 Added Reference https://git.kernel.org/stable/c/112bb60cd0e254a369e95aa9941a694ffeca089f Added Reference https://git.kernel.org/stable/c/366183911b153e9b8cf758e1414e1154d7569337 Added Reference https://git.kernel.org/stable/c/53a0249d68a210c16e961b83adfa82f94ee0a53d Added Reference https://git.kernel.org/stable/c/557c024ca7250bb65ae60f16c02074106c2f197b Added Reference https://git.kernel.org/stable/c/9680c58675b82348ab84d387e4fa727f7587e1a0 Added Reference https://git.kernel.org/stable/c/b5f46951e62377b6e406fadc18bc3c5bdf1632a7 Added Reference https://git.kernel.org/stable/c/cddea0c721106ea480371412d8de21705eb27376 Removed Reference https://git.kernel.org/stable/c/076e992752e4b24178918f748d75597c80a408d2 Removed Reference https://git.kernel.org/stable/c/112bb60cd0e254a369e95aa9941a694ffeca089f Removed Reference https://git.kernel.org/stable/c/366183911b153e9b8cf758e1414e1154d7569337 Removed Reference https://git.kernel.org/stable/c/53a0249d68a210c16e961b83adfa82f94ee0a53d Removed Reference https://git.kernel.org/stable/c/557c024ca7250bb65ae60f16c02074106c2f197b Removed Reference https://git.kernel.org/stable/c/9680c58675b82348ab84d387e4fa727f7587e1a0 Removed Reference https://git.kernel.org/stable/c/b5f46951e62377b6e406fadc18bc3c5bdf1632a7 Removed Reference https://git.kernel.org/stable/c/cddea0c721106ea480371412d8de21705eb27376 Removed Reference Type https://git.kernel.org/stable/c/53a0249d68a210c16e961b83adfa82f94ee0a53d Types: Patch Removed Reference Type https://git.kernel.org/stable/c/557c024ca7250bb65ae60f16c02074106c2f197b Types: Patch Removed Reference Type https://git.kernel.org/stable/c/9680c58675b82348ab84d387e4fa727f7587e1a0 Types: Patch Removed Reference Type https://git.kernel.org/stable/c/b5f46951e62377b6e406fadc18bc3c5bdf1632a7 Types: Patch -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jul. 30, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 17, 2026
Action Type Old Value New Value Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '9a0045088d888c9c539c8c626a366cb52c0fbdab', 'lessThan': '076e992752e4b24178918f748d75597c80a408d2', 'versionType': 'git'}, {'status': 'affected', 'version': '9a0045088d888c9c539c8c626a366cb52c0fbdab', 'lessThan': '366183911b153e9b8cf758e1414e1154d7569337', 'versionType': 'git'}, {'status': 'affected', 'version': '9a0045088d888c9c539c8c626a366cb52c0fbdab', 'lessThan': '112bb60cd0e254a369e95aa9941a694ffeca089f', 'versionType': 'git'}, {'status': 'affected', 'version': '9a0045088d888c9c539c8c626a366cb52c0fbdab', 'lessThan': 'cddea0c721106ea480371412d8de21705eb27376', 'versionType': 'git'}, {'status': 'affected', 'version': '9a0045088d888c9c539c8c626a366cb52c0fbdab', 'lessThan': '53a0249d68a210c16e961b83adfa82f94ee0a53d', 'versionType': 'git'}, {'status': 'affected', 'version': '9a0045088d888c9c539c8c626a366cb52c0fbdab', 'lessThan': 'b5f46951e62377b6e406fadc18bc3c5bdf1632a7', 'versionType': 'git'}, {'status': 'affected', 'version': '9a0045088d888c9c539c8c626a366cb52c0fbdab', 'lessThan': '9680c58675b82348ab84d387e4fa727f7587e1a0', 'versionType': 'git'}, {'status': 'affected', 'version': '9a0045088d888c9c539c8c626a366cb52c0fbdab', 'lessThan': '557c024ca7250bb65ae60f16c02074106c2f197b', 'versionType': 'git'}], 'programFiles': ['fs/gfs2/dir.c', 'fs/gfs2/glops.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '2.6.26'}, {'status': 'unaffected', 'version': '0', 'lessThan': '2.6.26', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.258', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.209', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.175', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.134', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.43', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.15.11', 'versionType': 'semver', 'lessThanOrEqual': '6.15.*'}, {'status': 'unaffected', 'version': '6.16.2', 'versionType': 'semver', 'lessThanOrEqual': '6.16.*'}, {'status': 'unaffected', 'version': '6.17', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['fs/gfs2/dir.c', 'fs/gfs2/glops.c'], 'defaultStatus': 'affected'}] -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jun. 01, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/076e992752e4b24178918f748d75597c80a408d2 Added Reference https://git.kernel.org/stable/c/112bb60cd0e254a369e95aa9941a694ffeca089f Added Reference https://git.kernel.org/stable/c/366183911b153e9b8cf758e1414e1154d7569337 -
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Apr. 11, 2026
Action Type Old Value New Value Added Reference https://git.kernel.org/stable/c/cddea0c721106ea480371412d8de21705eb27376 -
Initial Analysis by [email protected]
Nov. 25, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.15.11 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.16 up to (excluding) 6.16.2 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions up to (excluding) 6.12.43 Added Reference Type kernel.org: https://git.kernel.org/stable/c/53a0249d68a210c16e961b83adfa82f94ee0a53d Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/557c024ca7250bb65ae60f16c02074106c2f197b Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/9680c58675b82348ab84d387e4fa727f7587e1a0 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/b5f46951e62377b6e406fadc18bc3c5bdf1632a7 Types: Patch -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Sep. 04, 2025
Action Type Old Value New Value Added 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'. Added Reference https://git.kernel.org/stable/c/53a0249d68a210c16e961b83adfa82f94ee0a53d Added Reference https://git.kernel.org/stable/c/557c024ca7250bb65ae60f16c02074106c2f197b Added Reference https://git.kernel.org/stable/c/9680c58675b82348ab84d387e4fa727f7587e1a0 Added Reference https://git.kernel.org/stable/c/b5f46951e62377b6e406fadc18bc3c5bdf1632a7