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

published high CVSS 3.1 · 7.8

RDMA/rxe: Fix race in do_task() when draining

Published
28 Oct 2025, 11:48:33 UTC
Updated
15 Oct 2026, 22:02:37 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux9b4b7c1f9f54120940e243251e2b1407767b3381 to < 85288bcf7ffe11e7b036edf91937bc62fd384076 · 9b4b7c1f9f54120940e243251e2b1407767b3381 to < 52edccfb555142678c836c285bf5b4ec760bd043 · 9b4b7c1f9f54120940e243251e2b1407767b3381 to < 660b6959c4170637f5db2279d1f71af33a49e49b · 9b4b7c1f9f54120940e243251e2b1407767b3381 to < 8ca7eada62fcfabf6ec1dc7468941e791c1d8729 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.5 (affected) · 0 to < 6.5 (unaffected · semver) · 6.6.112 through 6.6.* (unaffected · semver) · 6.12.53 through 6.12.* (unaffected · semver) · 6.17.3 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 Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Oracle Linux 10 kernel-uekaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uekx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-corex86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Oracle Linux 10 kernel-uek-debugaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debugx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-deprecatedaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-deprecatedx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-desktopaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-desktopx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-extraaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-extrax86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-usbaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-usbx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-wirelessaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-debug-modules-wirelessx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-develaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-develx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-docx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modulesaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modulesx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-corex86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-deprecatedaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-deprecatedx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-desktopaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-desktopx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-extraaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-extrax86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-usbaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-usbx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-wirelessaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-modules-wirelessx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-toolsaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek-toolsx86_64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64kaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-develaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-modulesaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-modules-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-modules-deprecatedaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-modules-desktopaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-modules-extraaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-modules-usbaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 10 kernel-uek64k-modules-wirelessaarch64 Advisory build 0:6.12.0-106.55.4.1.el10uek ELSA-2025-28040
Oracle Linux 9 kernel-uekaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uekx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-corex86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debugaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debugx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-corex86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-develaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-develx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modulesaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modulesx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-corex86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-deprecatedaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-deprecatedx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-desktopaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-desktopx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-extraaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-extrax86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-usbaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-usbx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-wirelessaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-debug-modules-wirelessx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-develaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-develx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-docx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modulesaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modulesx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-coreaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-corex86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-deprecatedaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-deprecatedx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-desktopaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-desktopx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-extraaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-extrax86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-extra-netfilteraarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-extra-netfilterx86_64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040
Oracle Linux 9 kernel-uek-modules-usbaarch64 Advisory build 0:6.12.0-106.55.4.1.el9uek ELSA-2025-28040

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

Description

In the Linux kernel, the following vulnerability has been resolved: RDMA/rxe: Fix race in do_task() when draining When do_task() exhausts its iteration budget (!ret), it sets the state to TASK_STATE_IDLE to reschedule, without a secondary check on the current task->state. This can overwrite the TASK_STATE_DRAINING state set by a concurrent call to rxe_cleanup_task() or rxe_disable_task(). While state changes are protected by a spinlock, both rxe_cleanup_task() and rxe_disable_task() release the lock while waiting for the task to finish draining in the while(!is_done(task)) loop. The race occurs if do_task() hits its iteration limit and acquires the lock in this window. The cleanup logic may then proceed while the task incorrectly reschedules itself, leading to a potential use-after-free. This bug was introduced during the migration from tasklets to workqueues, where the special handling for the draining case was lost. Fix this by restoring the original pre-migration behavior. If the state is TASK_STATE_DRAINING when iterations are exhausted, set cont to 1 to force a new loop iteration. This allows the task to finish its work, so that a subsequent iteration can reach the switch statement and correctly transition the state to TASK_STATE_DRAINED, stopping the task as intended.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

33

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 - Both sides of the race are driven through local verbs calls on /dev/infiniband/uverbsN — posting work requests to exhaust the 1024-iteration budget and concurrently issuing modify_qp(RESET)/destroy_qp. Remote RoCE packets can feed the responder task, but the draining half (rxe_disable_task/rxe_cleanup_task) is only reachable from a local ioctl/write on the uverbs device. AC:L - The attacker controls both racers: one thread posts more than RXE_MAX_ITERATIONS work items so do_task deterministically hits the `!ret` branch, while another thread calls modify_qp(RESET) or destroy_qp to set TASK_STATE_DRAINING. The window can be retried unboundedly across many QPs and widened with CPU contention, so no condition lies outside the attacker's influence. PR:L - The kernel's uverbs_devnode() publishes /dev/infiniband/uverbsN with mode 0666, so any unprivileged local account can allocate a PD/CQ/QP and drive the race with no capabilities. Only the one-time creation of the rdma_rxe link requires CAP_NET_ADMIN, which is administrator setup rather than a privilege the attacker must hold. UI:N - The attacker performs every step itself from its own process; no victim action, mount, or file open is involved. S:U - The corruption is confined to kernel objects owned by the same kernel security authority (rxe QP, queues, CQs, MRs); no VM, IOMMU, or sandbox boundary is crossed. C:H - Clobbering DRAINING lets a work item run rxe_responder/rxe_requester against a QP whose send/receive queues have been vfree'd or memset and whose MRs and CQs have been put, giving use-after-free reads of freed kernel memory that are copied into userspace-mapped completion queues and onto the wire. I:H - The same use-after-free is a write primitive: the re-scheduled responder writes CQ entries, WQE state, and RDMA payloads into freed queue and MR memory, and duplicated rxe_put() calls underflow object refcounts, enabling heap grooming toward control-flow hijack. A:H - The race trips WARN_ON(task->num_done != task->num_sched) and dereferences freed rxe_queue, CQ, MR, and socket objects, reliably producing an oops or panic and taking down the machine.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 9b4b7c1f9f54120940e243251e2b1407767b3381 to < 85288bcf7ffe11e7b036edf91937bc62fd384076 (affected · git)9b4b7c1f9f54120940e243251e2b1407767b3381 to < 52edccfb555142678c836c285bf5b4ec760bd043 (affected · git)9b4b7c1f9f54120940e243251e2b1407767b3381 to < 660b6959c4170637f5db2279d1f71af33a49e49b (affected · git)9b4b7c1f9f54120940e243251e2b1407767b3381 to < 8ca7eada62fcfabf6ec1dc7468941e791c1d8729 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.5 (affected)0 to < 6.5 (unaffected · semver)6.6.112 through 6.6.* (unaffected · semver)6.12.53 through 6.12.* (unaffected · semver)6.17.3 through 6.17.* (unaffected · semver)6.18 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

4

Provider assertions

2

Linux · cna

RDMA/rxe: Fix race in do_task() when draining

CISA-ADP · adp

CISA ADP Vulnrichment

Provenance

Schema
5.2
Searchable
yes
Content hash
7dde8c8214043e962f7bcdf327ca71b9c59e2ed2994b2d596d3a03ed9419836b
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