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-38349

published high CVSS 3.1 · 7.8

eventpoll: don't decrement ep refcount while still holding the ep mutex

Published
18 Jul 2025, 07:53:16 UTC
Updated
03 Oct 2026, 10:55:26 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxf2451def095c1743adcfcb0cb5dadc86034e162a to < 263f5de8302a6f2f136d392e5d3f8b1edf922857 · a1f93804449d13f97dabd4b996817de4bf1ed67a to < b0821ec902d39062356cb644c16e17a705d1c9f5 · 58c9b016e12855286370dfb704c08498edbc857a to < 521e9ff0b67c66a17d6f9593dfccafaa984aae4c · 58c9b016e12855286370dfb704c08498edbc857a to < 6dee745bd0aec9d399df674256e7b1ecdb615444 · 58c9b016e12855286370dfb704c08498edbc857a to < 605c18698ecfa99165f36b7f59d3ed503e169814 · 58c9b016e12855286370dfb704c08498edbc857a to < 8c2e52ebbe885c7eeaabd3b7ddcdc1246fc400d2 · 5.15.209 to < 5.15.222 · 6.1.175 to < 6.1.178 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.4 (affected) · 0 to < 6.4 (unaffected · semver) · 5.15.222 through 5.15.* (unaffected · semver) · 6.1.178 through 6.1.* (unaffected · semver) · 6.6.99 through 6.6.* (unaffected · semver) · 6.12.39 through 6.12.* (unaffected · semver) · 6.15.7 through 6.15.* (unaffected · semver) · 6.16 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluationALAS2023-2025-1145 Fixed Not stated Amazon Linux assessment
AlmaLinux 10 kernel-abi-stablelists Advisory build 6.12.0-124.31.1.el10_1 ALSA-2026:1690
Debian trixie linux Advisory build 6.12.41-1 DSA-5975-1
Oracle Linux 10 kernelx86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 10 kernel-doc Advisory build 6.12.0-124.31.1.el10_1 ALSA-2026:1690
AlmaLinux 9 kernel Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-64k Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-core Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-debug Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-devel Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-doc Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-headers Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-modules Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-64k Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-64k-core Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-64k-debug Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-64k-debug-core Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-64k-debug-devel Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-64k-debug-modules Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-64k-debug-modules-core Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-64k-debug-modules-extra Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-64k-devel Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-64k-modules Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-64k-modules-core Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-64k-modules-extra Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-tools Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-uki-virt-addons Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-zfcpdump Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-zfcpdump-core Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-zfcpdump-devel Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-zfcpdump-devel-matched Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-zfcpdump-modules Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-zfcpdump-modules-core Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 kernel-zfcpdump-modules-extra Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 libperf Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 perf Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 python3-perf Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 rtla Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
AlmaLinux 9 rv Advisory build 5.14.0-611.26.1.el9_7 ALSA-2026:1143
Oracle Linux 10 kernel-abi-stablelistsx86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-corex86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-cross-headersaarch64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-cross-headersx86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-debugx86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-debug-corex86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-debug-develx86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-debug-devel-matchedx86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-debug-modulesx86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-debug-modules-corex86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-debug-modules-extrax86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-debug-uki-virtx86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-develx86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-devel-matchedx86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-docx86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-headersaarch64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-headersx86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-modulesx86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-modules-corex86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-modules-extrax86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-modules-extra-matchedx86_64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690
Oracle Linux 10 kernel-toolsaarch64 Advisory build 0:6.12.0-124.31.1.el10_1 ELSA-2026-1690

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

Description

In the Linux kernel, the following vulnerability has been resolved: eventpoll: don't decrement ep refcount while still holding the ep mutex Jann Horn points out that epoll is decrementing the ep refcount and then doing a mutex_unlock(&ep->mtx); afterwards. That's very wrong, because it can lead to a use-after-free. That pattern is actually fine for the very last reference, because the code in question will delay the actual call to "ep_free(ep)" until after it has unlocked the mutex. But it's wrong for the much subtler "next to last" case when somebody *else* may also be dropping their reference and free the ep while we're still using the mutex. Note that this is true even if that other user is also using the same ep mutex: mutexes, unlike spinlocks, can not be used for object ownership, even if they guarantee mutual exclusion. A mutex "unlock" operation is not atomic, and as one user is still accessing the mutex as part of unlocking it, another user can come in and get the now released mutex and free the data structure while the first user is still cleaning up. See our mutex documentation in Documentation/locking/mutex-design.rst, in particular the section [1] about semantics: "mutex_unlock() may access the mutex structure even after it has internally released the lock already - so it's not safe for another context to acquire the mutex and assume that the mutex_unlock() context is not using the structure anymore" So if we drop our ep ref before the mutex unlock, but we weren't the last one, we may then unlock the mutex, another user comes in, drops _their_ reference and releases the 'ep' as it now has no users - all while the mutex_unlock() is still accessing it. Fix this by simply moving the ep refcount dropping to outside the mutex: the refcount itself is atomic, and doesn't need mutex protection (that's the whole _point_ of refcounts: unlike mutexes, they are inherently about object lifetimes).

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

65

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
7.8 / 10
Severity
high
Provider
Linux · cna
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - The vulnerability is reached purely through local syscalls — `epoll_create1()`/`epoll_ctl()` to build the epoll set and concurrent `close()` calls to trigger the release paths. No remote or adjacent network input is involved. AC:L - The attacker creates and controls both sides of the race, closing the epoll fd in one thread while closing a monitored file in another (pinnable to separate CPUs), and a lost attempt is completely benign so the race can be retried indefinitely until won. PR:L - Only the ability to issue ordinary syscalls as any unprivileged user is required; epoll needs no capability and is permitted even inside restrictive seccomp sandboxes and containers. UI:N - The attacker performs every step itself in its own threads; no victim action, mount, or file open by another user is needed. S:U - The corrupted `struct eventpoll` and the resulting compromise are both within the kernel of the same system, the standard local privilege-escalation scope. C:H - The use-after-free on a `kmalloc-256` object lets the attacker reclaim the freed `eventpoll` with a chosen object and have the racing `mutex_unlock()` dereference attacker-controlled `wait_list`/`owner` fields, yielding a read primitive usable for arbitrary kernel memory disclosure. I:H - The in-flight `mutex_unlock()` performs spinlock and list writes into the freed-and-reallocated object and feeds an attacker-controlled `next->task` pointer into `wake_q_add()`/`try_to_wake_up()`, giving write and control-flow-hijack primitives suitable for privilege escalation. A:H - Even unweaponized, the use-after-free on `ep->mtx` corrupts slab memory and reliably produces a kernel oops/panic, and it can be triggered repeatedly by any local user.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux f2451def095c1743adcfcb0cb5dadc86034e162a to < 263f5de8302a6f2f136d392e5d3f8b1edf922857 (affected · git)a1f93804449d13f97dabd4b996817de4bf1ed67a to < b0821ec902d39062356cb644c16e17a705d1c9f5 (affected · git)58c9b016e12855286370dfb704c08498edbc857a to < 521e9ff0b67c66a17d6f9593dfccafaa984aae4c (affected · git)58c9b016e12855286370dfb704c08498edbc857a to < 6dee745bd0aec9d399df674256e7b1ecdb615444 (affected · git)58c9b016e12855286370dfb704c08498edbc857a to < 605c18698ecfa99165f36b7f59d3ed503e169814 (affected · git)58c9b016e12855286370dfb704c08498edbc857a to < 8c2e52ebbe885c7eeaabd3b7ddcdc1246fc400d2 (affected · git)5.15.209 to < 5.15.222 (affected · semver)6.1.175 to < 6.1.178 (affected · semver)Default: unaffected Linux · cna
Linux Linux 6.4 (affected)0 to < 6.4 (unaffected · semver)5.15.222 through 5.15.* (unaffected · semver)6.1.178 through 6.1.* (unaffected · semver)6.6.99 through 6.6.* (unaffected · semver)6.12.39 through 6.12.* (unaffected · semver)6.15.7 through 6.15.* (unaffected · semver)6.16 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

7

Provider assertions

2

Linux · cna

eventpoll: don't decrement ep refcount while still holding the ep mutex

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
48fa8e7bcfc4e442c9624ad0a25ec35a3a6649a5ad6e0ce94bbc88e3b7d15633
Ingested
03 Oct 2026, 11:47:00 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