cbcvebase.
CVE-2025-38710
published 2025-09-04

CVE-2025-38710: In the Linux kernel, the following vulnerability has been resolved: gfs2: Validate i_depth for exhash directories A fuzzer test introduced corruption that ends…

PriorityP420medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.15%
5.0th percentile
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'.

Affected

49 ranges· showing 25
VendorProductVersion rangeFixed in
debianlinux< linux 6.16.3-1 (forky)linux 6.16.3-1 (forky)
linuxlinux
linuxlinux>= 9a0045088d888c9c539c8c626a366cb52c0fbdab < 076e992752e4b24178918f748d75597c80a408d2076e992752e4b24178918f748d75597c80a408d2
linuxlinux>= 9a0045088d888c9c539c8c626a366cb52c0fbdab < 366183911b153e9b8cf758e1414e1154d7569337366183911b153e9b8cf758e1414e1154d7569337
linuxlinux>= 9a0045088d888c9c539c8c626a366cb52c0fbdab < 112bb60cd0e254a369e95aa9941a694ffeca089f112bb60cd0e254a369e95aa9941a694ffeca089f
linuxlinux>= 9a0045088d888c9c539c8c626a366cb52c0fbdab < cddea0c721106ea480371412d8de21705eb27376cddea0c721106ea480371412d8de21705eb27376
linuxlinux>= 9a0045088d888c9c539c8c626a366cb52c0fbdab < 53a0249d68a210c16e961b83adfa82f94ee0a53d53a0249d68a210c16e961b83adfa82f94ee0a53d
linuxlinux>= 9a0045088d888c9c539c8c626a366cb52c0fbdab < b5f46951e62377b6e406fadc18bc3c5bdf1632a7b5f46951e62377b6e406fadc18bc3c5bdf1632a7
linuxlinux>= 9a0045088d888c9c539c8c626a366cb52c0fbdab < 9680c58675b82348ab84d387e4fa727f7587e1a09680c58675b82348ab84d387e4fa727f7587e1a0
linuxlinux>= 9a0045088d888c9c539c8c626a366cb52c0fbdab < 557c024ca7250bb65ae60f16c02074106c2f197b557c024ca7250bb65ae60f16c02074106c2f197b
linuxlinux_kernel< 6.12.436.12.43
linuxlinux_kernel>= 0 < 6.12.43-16.12.43-1
linuxlinux_kernel>= 0 < 6.16.3-16.16.3-1
linuxlinux_kernel>= 0 < 6.8.0-100.1006.8.0-100.100
linuxlinux_kernel>= 6.13 < 6.15.116.15.11
linuxlinux_kernel>= 6.16 < 6.16.26.16.2
msrcazl3_kernel_6.6.96.2-1_on_azure_linux_3.0
msrcazl3_kernel_6.6.96.2-2_on_azure_linux_3.0
msrccbl2_kernel_5.15.186.1-1_on_cbl_mariner_2.0
ubuntulinux
ubuntulinux-aws
ubuntulinux-aws-5.15
ubuntulinux-aws-6.8
ubuntulinux-aws-fips
ubuntulinux-azure-5.15

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv5.5MEDIUM
vendor_ubuntu7.1HIGH
vendor_msrc7.0HIGH
vendor_debian5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.