CVE-2025-40242

gfs2: Fix unlikely race in gdlm_put_lock

7.0 high EPSS 0.16%

Published 4 Dec 2025 Updated 15 Oct 2026 CNA: Linux

Check your servers for CVE-2025-40242

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-40242 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.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

gfs2: Fix unlikely race in gdlm_put_lock

In gdlm_put_lock(), there is a small window of time in which the DFL_UNMOUNT flag has been set but the lockspace hasn't been released, yet. In that window, dlm may still call gdlm_ast() and gdlm_bast(). To prevent it from dereferencing freed glock objects, only free the glock if the lockspace has actually been released.

Severity (CVSS)

7.0 high CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:L/AC:H/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
high: an attack depends on conditions outside the control of the attacker, such as a race
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.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 4.97% 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.

ProductVersions
Linux
affected from d1340f80f0b8066321b499a376780da00560e857, before 5fdc1474e678eea1700aa266c0b7c2c96f81dd0d
affected from d1340f80f0b8066321b499a376780da00560e857, before 4913592a3358f6ec366b8346b733d5e2360b08e1
affected from d1340f80f0b8066321b499a376780da00560e857, before 279bde3bbb0ac0bad5c729dfa85983d75a5d7641
affected from d1340f80f0b8066321b499a376780da00560e857, before 64c61b4ac645222fa7b724cef616c1f862a72a40
affected from d1340f80f0b8066321b499a376780da00560e857, before 28c4d9bc0708956c1a736a9e49fee71b65deee81
affected 6aa628c45875e7b8cca81ed9447a12a0e8f3504a
affected a97e75203733be0a4263a78fb7b29352be150c1c
affected 3554b46204e67333e1fb8be0e93936fb08267c80
affected 5cff77b9827a956d076168b56775aad23bce87e4
affected 8deedce385d220f90e435f534d71d27526273515
affected 2225a5cd2fbc2ef0e0f78e585db3844f60416a39
affected 02e838963fdaa6ce8570b5389aecdc6cf1fb40b0
affected 01eb3106f43335fdc02111358dae80a5c3fd324d
affected from 4.4.284, before 4.5
affected from 4.9.283, before 4.10
affected from 4.14.247, before 4.15
affected from 4.19.207, before 4.20
affected from 5.4.148, before 5.5
affected from 5.10.67, before 5.11
affected from 5.13.19, before 5.14
affected from 5.14.6, before 5.15
Other versions: unaffected
Linux
affected 5.15
unaffected before 5.15
unaffected from 6.1.168 up to and including 6.1.*
unaffected from 6.6.131 up to and including 6.6.*
unaffected from 6.12.56 up to and including 6.12.*
unaffected from 6.17.6 up to and including 6.17.*
unaffected 6.18 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-40242 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40242

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-40242
trivy image --scanners vuln IMAGE | grep CVE-2025-40242

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

Source: the record CVE-2025-40242 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.