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-2026-139352

published high CVSS 3.1 · 7.8

IB/mlx4: Avoid requeueing executing CM timeout work

Published
30 Nov 2026, 13:33:58 UTC
Updated
01 Dec 2026, 05:42:23 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxfa09adf4231f6c19caa9f52c1a707e0da54cd94e to < a66b4a19f3437fcba9a1fa21c052ff8183fb17b0 · fa09adf4231f6c19caa9f52c1a707e0da54cd94e to < 9bcf45bfcaf83aed81b5fb12f0edf4c16e73e02e · Other versions: unaffected Affected Not stated Linux
Linux — Linux7.3 (affected) · 0 to < 7.3 (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 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

Description

In the Linux kernel, the following vulnerability has been resolved: IB/mlx4: Avoid requeueing executing CM timeout work id->scheduled_delete is set by schedule_delayed() itself. It is used in two cases after the RTU timeout support was added: * A new id_map_entry is created, and a 60-second RTU timeout is scheduled. * DREQ or REJ is received for an existing entry, and the normal 30-second teardown timeout is scheduled or adjusted. The following race is possible when the RTU timeout expires while a DREQ or REJ is handled: CPU 0: timeout work CPU 1: DREQ/REJ handler -------------------- ----------------------- RTU timer expires timeout callback starts waits for id_map_lock takes id_map_lock calls schedule_delayed() calls mod_delayed_work() drops id_map_lock takes id_map_lock removes mapping frees id_map_entry requeued timeout runs accesses freed id_map_entry mod_delayed_work() may requeue the work after the timeout callback has started. The original timeout callback then frees the id_map_entry, leaving the requeued work with a dangling delayed_work pointer. When a timeout is already scheduled, first cancel its pending work. A successful cancellation means the callback has not started and the timeout can safely be scheduled again. If cancellation fails, the callback is executing and will free the entry after id_map_lock is released; do not requeue it. cancel_delayed_work() is deliberately used instead of cancel_delayed_work_sync(), because the timeout callback may be waiting for id_map_lock, which is held by the caller.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

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:H/PR:L/UI:N/S:C/C:H/I:H/A:H
Scenarios
en: AV:L - The attacker is a VM using an mlx4 VF. Its CM MADs reach the host PF through the tunnel QP: mlx4_ib_tunnel_comp_worker -> mlx4_ib_multiplex_mad -> mlx4_ib_multiplex_cm_handler -> schedule_delayed(). This is guest-to-host traffic inside the HCA, not routed. The remote-fabric DREQ via mlx4_ib_demux_mad would be AV:A, and VFs have RoCEv2 masked, so AV:N has no support. AC:H - The guest arms the 60s RTU (or 30s teardown) timer and picks when to send DREQ/REJ. The bug only fires if mod_delayed_work() runs while id_map_ent_timeout() has already left PENDING but is still spinning on id_map_lock — about a microsecond, against a timer-wheel expiry the attacker can't pin. A DREQ that arrives early just reschedules the timer. PR:L - No capability is needed inside the guest. An unprivileged user calls rdma_connect() through /dev/infiniband/rdma_cm (a REQ, which creates the id_map_entry), then rdma_destroy_id() in REQ_SENT (a REJ(TIMEOUT), which hits schedule_delayed()). mlx4_ib_multiplex_mad accepts every CM-class method from the slave's proxy QP without checks. The attacker only needs a low-privileged tenant VM. UI:N - No host or other-tenant action is involved: the attacker produces both the id_map_entry creation and the triggering REJ/DREQ from its own VF, and the PF processes them automatically in the tunnel worker. S:C - mlx4_ib_multiplex_cm_handler is the PF-side paravirtualisation layer that rewrites VF CM IDs. Data from the guest corrupts host kernel memory (the freed id_map_entry, its armed timer_list in the timer wheel, cm_list), so the impact crosses from the guest VM's authority into the hypervisor host and every other VF on the device. C:H - After id_map_ent_timeout() kfree()s the entry, the requeued delayed_work fires on freed kmalloc memory. delayed_work_timer_fn takes dwork->wq/cpu and the kworker calls work.func from the reclaimed object, so reallocating that slot gives control-flow hijack and arbitrary host kernel read. I:H - The second id_map_ent_timeout() run does list_del() on stale list pointers, xa_erase() of a stale pv_cm_id and a double kfree(). Reusing the slot for a new id_map_entry also re-initialises a timer that is still linked in the timer wheel. All of this is a write primitive into host kernel memory. A:H - Even if not exploited, the freed id_map_entry holding a pending timer corrupts the timer wheel and slab (double free, list_del on freed memory), crashing the host and taking down every VM that uses the HCA.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux fa09adf4231f6c19caa9f52c1a707e0da54cd94e to < a66b4a19f3437fcba9a1fa21c052ff8183fb17b0 (affected · git)fa09adf4231f6c19caa9f52c1a707e0da54cd94e to < 9bcf45bfcaf83aed81b5fb12f0edf4c16e73e02e (affected · git)Default: unaffected Linux · cna
Linux Linux 7.3 (affected)0 to < 7.3 (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

2

Provider assertions

1

Linux · cna

IB/mlx4: Avoid requeueing executing CM timeout work

Provenance

Schema
5.2
Searchable
yes
Content hash
286b1206ea87a9597739eff5143f01e3f2267e963d39bdb475f7e64b59c573b2
Ingested
01 Dec 2026, 05:47:22 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