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

published high CVSS 3.1 · 7.8

RDMA/hns: Pin CQ buffer writable to match device DMA write access

Published
30 Nov 2026, 13:36:14 UTC
Updated
01 Dec 2026, 05:42:54 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux744b7bdfa79edb30bb7d5f9ae43b65e0d147533a to < f3c538a464e8c9c77844dbaa6aa62ba81f23b3d5 · 744b7bdfa79edb30bb7d5f9ae43b65e0d147533a to < 149ed0680f70ca2fcddb1917de1c3781c4f8860a · 744b7bdfa79edb30bb7d5f9ae43b65e0d147533a to < d1dde136b712ff5c0220f5a33175e01bd6b9e9bf · 744b7bdfa79edb30bb7d5f9ae43b65e0d147533a to < 15b14c77c1cd7289ec365fabf40fd867b478950e · 744b7bdfa79edb30bb7d5f9ae43b65e0d147533a to < 39c0b6196a3c157e3ce08165cfeddbbb54f67004 · 744b7bdfa79edb30bb7d5f9ae43b65e0d147533a to < 3757b8d50dc93ffd9aede64eeda136c1b8169b03 · 744b7bdfa79edb30bb7d5f9ae43b65e0d147533a to < 5afa562683a0fec2b427941cbe39e0a14ea79ada · 744b7bdfa79edb30bb7d5f9ae43b65e0d147533a to < ce29f6e741844a78ad1977f2a550ede27ecf95f8 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.8 (affected) · 0 to < 5.8 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (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: RDMA/hns: Pin CQ buffer writable to match device DMA write access alloc_cq_buf() leaves user_access zero-initialized, but the device writes CQEs into the CQ buffer. Set IB_ACCESS_LOCAL_WRITE so the buffer is pinned writable, matching the device's write access.

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:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:L - Reached via the local uverbs CREATE_CQ command on /dev/infiniband/uverbsN: hns_roce_create_cq() passes the user's ucmd.buf_addr to alloc_cq_buf(), whose hns_roce_mtr_create()/ib_umem_get() pins it with user_access=0. No packet supplies the bad state; the local process picks the buffer. AC:L - The attacker does every step: mmap a world-readable file PROT_READ/MAP_SHARED, pass that address as buf_addr, then generate CQEs with their own QPs (signalled sends, receives with immediate data, flush). No race is involved. On 6.2+ gup_must_unshare() skips unsharing for non-COW mappings, so the file's own page-cache page is pinned every time. PR:L - uverbs_devnode() creates the uverbs node 0666. alloc_ucontext, create_cq and create_qp check no capability. ib_umem_get only needs can_do_mlock() and a one-page RLIMIT_MEMLOCK budget, both available to any ordinary local user on a host with hns RoCE hardware. UI:N - The attacker's own process opens the file, maps it, creates the CQ and triggers the completions. No administrator or other user has to do anything. S:U - The device writes into pages owned by the same kernel (the page cache of local files). The result is a local privilege escalation within one security authority; no VM or hypervisor boundary is crossed. C:H - Writing into the cached text of a root-run setuid binary or a shared library (e.g. /usr/bin/su, libc) runs attacker code as root, which can then read any file or kernel memory. I:H - Since 6.2, ib_umem_get() pins without FOLL_WRITE but still maps the pages DMA_BIDIRECTIONAL. The CQE engine then writes attacker-chosen immtdata, byte_cnt, wqe_idx and CQE-inline payload into page-cache pages of a file the attacker can only read (e.g. /etc/passwd or a setuid ELF). The pages are unpinned without being dirtied, a Dirty-Pipe-class write. A:H - Overwriting cached pages of libc, the loader or /etc/passwd with CQE data crashes every process that maps them or breaks logins system-wide, and the attacker can repeat it at will.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 744b7bdfa79edb30bb7d5f9ae43b65e0d147533a to < f3c538a464e8c9c77844dbaa6aa62ba81f23b3d5 (affected · git)744b7bdfa79edb30bb7d5f9ae43b65e0d147533a to < 149ed0680f70ca2fcddb1917de1c3781c4f8860a (affected · git)744b7bdfa79edb30bb7d5f9ae43b65e0d147533a to < d1dde136b712ff5c0220f5a33175e01bd6b9e9bf (affected · git)744b7bdfa79edb30bb7d5f9ae43b65e0d147533a to < 15b14c77c1cd7289ec365fabf40fd867b478950e (affected · git)744b7bdfa79edb30bb7d5f9ae43b65e0d147533a to < 39c0b6196a3c157e3ce08165cfeddbbb54f67004 (affected · git)744b7bdfa79edb30bb7d5f9ae43b65e0d147533a to < 3757b8d50dc93ffd9aede64eeda136c1b8169b03 (affected · git)744b7bdfa79edb30bb7d5f9ae43b65e0d147533a to < 5afa562683a0fec2b427941cbe39e0a14ea79ada (affected · git)744b7bdfa79edb30bb7d5f9ae43b65e0d147533a to < ce29f6e741844a78ad1977f2a550ede27ecf95f8 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.8 (affected)0 to < 5.8 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (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

8

Provider assertions

1

Linux · cna

RDMA/hns: Pin CQ buffer writable to match device DMA write access

Provenance

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