OESA-2025-2312

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2025-2312
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2025-2312.json
JSON Data
https://api.test.osv.dev/v1/vulns/OESA-2025-2312
Upstream
Published
2025-09-19T11:09:23Z
Modified
2026-08-18T01:19:58Z
Severity
  • 7.0 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
kernel security update
Details

The Linux Kernel, the operating system core itself.

Security Fix(es):

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'.(CVE-2025-38710)

Database specific
{
    "severity": "High"
}
References

Affected packages

openEuler:20.03-LTS-SP4 / kernel

Package

Name
kernel
Purl
pkg:rpm/openEuler/kernel&distro=openEuler-20.03-LTS-SP4

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
4.19.90-2509.5.0.0344.oe2003sp4

Ecosystem specific

{
    "aarch64": [
        "bpftool-4.19.90-2509.5.0.0344.oe2003sp4.aarch64.rpm",
        "bpftool-debuginfo-4.19.90-2509.5.0.0344.oe2003sp4.aarch64.rpm",
        "kernel-4.19.90-2509.5.0.0344.oe2003sp4.aarch64.rpm",
        "kernel-debuginfo-4.19.90-2509.5.0.0344.oe2003sp4.aarch64.rpm",
        "kernel-debugsource-4.19.90-2509.5.0.0344.oe2003sp4.aarch64.rpm",
        "kernel-devel-4.19.90-2509.5.0.0344.oe2003sp4.aarch64.rpm",
        "kernel-source-4.19.90-2509.5.0.0344.oe2003sp4.aarch64.rpm",
        "kernel-tools-4.19.90-2509.5.0.0344.oe2003sp4.aarch64.rpm",
        "kernel-tools-debuginfo-4.19.90-2509.5.0.0344.oe2003sp4.aarch64.rpm",
        "kernel-tools-devel-4.19.90-2509.5.0.0344.oe2003sp4.aarch64.rpm",
        "perf-4.19.90-2509.5.0.0344.oe2003sp4.aarch64.rpm",
        "perf-debuginfo-4.19.90-2509.5.0.0344.oe2003sp4.aarch64.rpm",
        "python2-perf-4.19.90-2509.5.0.0344.oe2003sp4.aarch64.rpm",
        "python2-perf-debuginfo-4.19.90-2509.5.0.0344.oe2003sp4.aarch64.rpm",
        "python3-perf-4.19.90-2509.5.0.0344.oe2003sp4.aarch64.rpm",
        "python3-perf-debuginfo-4.19.90-2509.5.0.0344.oe2003sp4.aarch64.rpm"
    ],
    "src": [
        "kernel-4.19.90-2509.5.0.0344.oe2003sp4.src.rpm"
    ],
    "x86_64": [
        "bpftool-4.19.90-2509.5.0.0344.oe2003sp4.x86_64.rpm",
        "bpftool-debuginfo-4.19.90-2509.5.0.0344.oe2003sp4.x86_64.rpm",
        "kernel-4.19.90-2509.5.0.0344.oe2003sp4.x86_64.rpm",
        "kernel-debuginfo-4.19.90-2509.5.0.0344.oe2003sp4.x86_64.rpm",
        "kernel-debugsource-4.19.90-2509.5.0.0344.oe2003sp4.x86_64.rpm",
        "kernel-devel-4.19.90-2509.5.0.0344.oe2003sp4.x86_64.rpm",
        "kernel-source-4.19.90-2509.5.0.0344.oe2003sp4.x86_64.rpm",
        "kernel-tools-4.19.90-2509.5.0.0344.oe2003sp4.x86_64.rpm",
        "kernel-tools-debuginfo-4.19.90-2509.5.0.0344.oe2003sp4.x86_64.rpm",
        "kernel-tools-devel-4.19.90-2509.5.0.0344.oe2003sp4.x86_64.rpm",
        "perf-4.19.90-2509.5.0.0344.oe2003sp4.x86_64.rpm",
        "perf-debuginfo-4.19.90-2509.5.0.0344.oe2003sp4.x86_64.rpm",
        "python2-perf-4.19.90-2509.5.0.0344.oe2003sp4.x86_64.rpm",
        "python2-perf-debuginfo-4.19.90-2509.5.0.0344.oe2003sp4.x86_64.rpm",
        "python3-perf-4.19.90-2509.5.0.0344.oe2003sp4.x86_64.rpm",
        "python3-perf-debuginfo-4.19.90-2509.5.0.0344.oe2003sp4.x86_64.rpm"
    ]
}

Database specific

source
"https://repo.openeuler.org/security/data/osv/OESA-2025-2312.json"