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-19T13:13:22Z
Modified
2025-09-19T15:31:58.361888Z
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 direread(), causing an undefined shift by 32 at:

index = hash >> (32 - dip->i_depth);

As calculated in an open-coded way in dirmakeexhash(), the minimum depth for an exhash directory is ilog2(sdp->sdhashptrs) and 0 is invalid as sdp->sdhashptrs 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 gfs2dinodein(). Values greater than the maximum are already being checked for there.

Also switch the calculation in dirmakeexhash() 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
0Unknown 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"
    ],
    "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"
    ],
    "src": [
        "kernel-4.19.90-2509.5.0.0344.oe2003sp4.src.rpm"
    ]
}