Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2025-40242

published high CVSS 3.1 · 7.0

gfs2: Fix unlikely race in gdlm_put_lock

Published
04 Dec 2025, 15:31:31 UTC
Updated
15 Oct 2026, 22:02:41 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxd1340f80f0b8066321b499a376780da00560e857 to < 5fdc1474e678eea1700aa266c0b7c2c96f81dd0d · d1340f80f0b8066321b499a376780da00560e857 to < 4913592a3358f6ec366b8346b733d5e2360b08e1 · d1340f80f0b8066321b499a376780da00560e857 to < 279bde3bbb0ac0bad5c729dfa85983d75a5d7641 · d1340f80f0b8066321b499a376780da00560e857 to < 64c61b4ac645222fa7b724cef616c1f862a72a40 · d1340f80f0b8066321b499a376780da00560e857 to < 28c4d9bc0708956c1a736a9e49fee71b65deee81 · 6aa628c45875e7b8cca81ed9447a12a0e8f3504a · a97e75203733be0a4263a78fb7b29352be150c1c · 3554b46204e67333e1fb8be0e93936fb08267c80 · 5cff77b9827a956d076168b56775aad23bce87e4 · 8deedce385d220f90e435f534d71d27526273515 · 2225a5cd2fbc2ef0e0f78e585db3844f60416a39 · 02e838963fdaa6ce8570b5389aecdc6cf1fb40b0 · 01eb3106f43335fdc02111358dae80a5c3fd324d · 4.4.284 to < 4.5 · 4.9.283 to < 4.10 · 4.14.247 to < 4.15 · 4.19.207 to < 4.20 · 5.4.148 to < 5.5 · 5.10.67 to < 5.11 · 5.13.19 to < 5.14 · 5.14.6 to < 5.15 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 6.1.168 through 6.1.* (unaffected · semver) · 6.6.131 through 6.6.* (unaffected · semver) · 6.12.56 through 6.12.* (unaffected · semver) · 6.17.6 through 6.17.* (unaffected · semver) · 6.18 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected; No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
AlmaLinux 8 bpftool Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
Debian bookworm linux Advisory build 6.1.170-1 DSA-6243-1
Oracle Linux 10 kernel-uekaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
AlmaLinux 8 kernel Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 8 kernel-abi-stablelists Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-core Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-cross-headers Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-debug Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-debug-core Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-debug-devel Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-debug-modules Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-debug-modules-extra Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-devel Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-doc Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-headers Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-modules Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-modules-extra Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-rt Advisory build 4.18.0-553.171.1.rt7.512.el8_10 ALSA-2026:75746
AlmaLinux 8 kernel-rt-core Advisory build 4.18.0-553.171.1.rt7.512.el8_10 ALSA-2026:75746
AlmaLinux 8 kernel-rt-debug Advisory build 4.18.0-553.171.1.rt7.512.el8_10 ALSA-2026:75746
AlmaLinux 8 kernel-rt-debug-core Advisory build 4.18.0-553.171.1.rt7.512.el8_10 ALSA-2026:75746
AlmaLinux 8 kernel-rt-debug-devel Advisory build 4.18.0-553.171.1.rt7.512.el8_10 ALSA-2026:75746
AlmaLinux 8 kernel-rt-debug-modules Advisory build 4.18.0-553.171.1.rt7.512.el8_10 ALSA-2026:75746
AlmaLinux 8 kernel-rt-debug-modules-extra Advisory build 4.18.0-553.171.1.rt7.512.el8_10 ALSA-2026:75746
AlmaLinux 8 kernel-rt-devel Advisory build 4.18.0-553.171.1.rt7.512.el8_10 ALSA-2026:75746
AlmaLinux 8 kernel-rt-modules Advisory build 4.18.0-553.171.1.rt7.512.el8_10 ALSA-2026:75746
AlmaLinux 8 kernel-rt-modules-extra Advisory build 4.18.0-553.171.1.rt7.512.el8_10 ALSA-2026:75746
AlmaLinux 8 kernel-tools Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-tools-libs Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-tools-libs-devel Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-zfcpdump Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-zfcpdump-core Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-zfcpdump-devel Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-zfcpdump-modules Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 kernel-zfcpdump-modules-extra Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 perf Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
AlmaLinux 8 python3-perf Advisory build 4.18.0-553.171.1.el8_10 ALSA-2026:75747
Debian bullseye linux-6.1 Advisory build 6.1.170-1~deb11u1 DLA-4561-1
Oracle Linux 10 kernel-uekx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-coreaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-corex86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debugaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debugx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-deprecatedaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-deprecatedx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-desktopaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-desktopx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-extraaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-extrax86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-usbaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-usbx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-wirelessaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-debug-modules-wirelessx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-develaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-develx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-docx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modulesaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modulesx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-coreaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-corex86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-deprecatedaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-deprecatedx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-desktopaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-desktopx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-extraaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-extrax86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-usbaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-usbx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-wirelessaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-modules-wirelessx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-toolsaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek-toolsx86_64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64kaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-coreaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-develaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-modulesaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-modules-coreaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-modules-deprecatedaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-modules-desktopaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-modules-extraaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-modules-usbaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 10 kernel-uek64k-modules-wirelessaarch64 Advisory build 0:6.12.0-107.59.3.2.el10uek ELSA-2026-50006
Oracle Linux 8 bpftoolaarch64 Advisory build 0:4.18.0-553.171.1.el8_10 ELSA-2026-75747
Oracle Linux 8 bpftoolx86_64 Advisory build 0:4.18.0-553.171.1.el8_10 ELSA-2026-75747
Oracle Linux 8 kernelx86_64 Advisory build 0:4.18.0-553.171.1.el8_10 ELSA-2026-75747
Oracle Linux 8 kernel-abi-stablelistsx86_64 Advisory build 0:4.18.0-553.171.1.el8_10 ELSA-2026-75747
Oracle Linux 8 kernel-corex86_64 Advisory build 0:4.18.0-553.171.1.el8_10 ELSA-2026-75747

Package entries are limited to the first 100 builds and 100 linked advisories.

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

43

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.0 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The window is opened by a local umount or a local filesystem withdraw, and the glock free is performed by local filesystem activity (inode eviction, glock shrinker, `glock_work_func`); the DLM bast that dereferences the freed object comes from an authenticated cluster peer on a private interconnect and cannot by itself create the dangling pointer. There is no network-facing service path into `gdlm_put_lock()`. AC:H - Exploitation requires winning a race whose opening the attacker does not control — `DFL_UNMOUNT` is set only by a root-driven umount or an error-driven withdraw — and additionally requires a DLM ast/bast for that exact resource to arrive after the free but before `dlm_release_lockspace()` completes, plus slab reuse after the RCU grace period. The author explicitly characterises it as an "unlikely race" in a "small window of time". PR:L - Once the teardown window is open (via administrator umount, cluster-manager failover, or a withdraw provoked by storage errors), an ordinary unprivileged user with access to the GFS2 mount drives the vulnerable side: normal file operations force glock disposal through `__gfs2_glock_put → lm_put_lock`, and creating inodes sprays `gfs2_glock_cachep` to groom the freed object. No capability check exists anywhere on that path. UI:N - The attacker only performs ordinary file operations on an already-mounted GFS2 filesystem; no victim must open a file, mount media, or take any deliberate action. The privileged unmount/withdraw is an environmental system state, accounted for in Attack Complexity rather than user interaction. S:U - The freed `struct gfs2_glock`, the DLM callback that writes into it, and any resulting corruption all live in the host kernel's own security authority. No hypervisor, IOMMU, or sandbox boundary is crossed. C:H - This is a use-after-free on a slab object whose contents the attacker can groom by reallocating glocks, and `gdlm_ast()` reads `gl->gl_flags`, `gl->gl_dstamp`, `gl->gl_name.ln_type` and the `gl->gl_name.ln_sbd` pointer out of the freed memory before the dead-lockref guard, using `ln_sbd` as a dereference target — giving an attacker-steerable kernel read primitive. I:H - Three distinct writes hit the freed object: DLM's `lksb->sb_status`/`sb_flags` stores, `clear_bit(GLF_BLOCKING, &gl->gl_flags)`, and `gfs2_update_stats(&gl->gl_stats, ...)`; worse, `this_cpu_ptr(gl->gl_name.ln_sbd->sd_lkstats)` turns a groomed pointer in the freed object into the destination of a read-modify-write, and a surviving lockref check leads into `gfs2_glock_complete()` and `gl->gl_ops` indirect calls — a control-flow hijack path. A:H - Dereferencing a freed glock from the DLM callback workqueue produces KASAN splats, oopses on garbage `ln_sbd`/`gl_ops` pointers, and `BUG()` in `gdlm_bast()` on an unrecognised mode, panicking the node. On a clustered filesystem, crashing the node also triggers fencing and cluster-wide recovery.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux d1340f80f0b8066321b499a376780da00560e857 to < 5fdc1474e678eea1700aa266c0b7c2c96f81dd0d (affected · git)d1340f80f0b8066321b499a376780da00560e857 to < 4913592a3358f6ec366b8346b733d5e2360b08e1 (affected · git)d1340f80f0b8066321b499a376780da00560e857 to < 279bde3bbb0ac0bad5c729dfa85983d75a5d7641 (affected · git)d1340f80f0b8066321b499a376780da00560e857 to < 64c61b4ac645222fa7b724cef616c1f862a72a40 (affected · git)d1340f80f0b8066321b499a376780da00560e857 to < 28c4d9bc0708956c1a736a9e49fee71b65deee81 (affected · git)6aa628c45875e7b8cca81ed9447a12a0e8f3504a (affected · git)a97e75203733be0a4263a78fb7b29352be150c1c (affected · git)3554b46204e67333e1fb8be0e93936fb08267c80 (affected · git)5cff77b9827a956d076168b56775aad23bce87e4 (affected · git)8deedce385d220f90e435f534d71d27526273515 (affected · git)2225a5cd2fbc2ef0e0f78e585db3844f60416a39 (affected · git)02e838963fdaa6ce8570b5389aecdc6cf1fb40b0 (affected · git)01eb3106f43335fdc02111358dae80a5c3fd324d (affected · git)4.4.284 to < 4.5 (affected · semver)4.9.283 to < 4.10 (affected · semver)4.14.247 to < 4.15 (affected · semver)4.19.207 to < 4.20 (affected · semver)5.4.148 to < 5.5 (affected · semver)5.10.67 to < 5.11 (affected · semver)5.13.19 to < 5.14 (affected · semver)5.14.6 to < 5.15 (affected · semver)Default: unaffected Linux · cna
Linux Linux 5.15 (affected)0 to < 5.15 (unaffected · semver)6.1.168 through 6.1.* (unaffected · semver)6.6.131 through 6.6.* (unaffected · semver)6.12.56 through 6.12.* (unaffected · semver)6.17.6 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

5

Provider assertions

2

Linux · cna

gfs2: Fix unlikely race in gdlm_put_lock

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
cc81e6246f3637fdbf539ae1e6f30d4769a2899960e90c79ed73178efaf31a1c
Ingested
15 Oct 2026, 23:29:36 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected