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

published critical CVSS 3.1 · 9.8

nvmet-rdma: fix out-of-bounds write in nvmet_rdma_map_sgl_inline()

Published
30 Nov 2026, 13:17:43 UTC
Updated
01 Dec 2026, 05:43:50 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 to < 23352a849f3de89fa72da56e0bdd894d9110c099 · 0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 to < 61f65766d779a9d048280fd589df3f36a7df0878 · 0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 to < 2282aac58d857bc2197d5b50f13d7e577a4eedfe · 0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 to < e2ab52b61e79841c6b1ddf9a9014792c71f32713 · 0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 to < e9e33234547ac2a2ff583813862bc39caac782d8 · 0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 to < cfccc5133007373ce8f2a1b856ad7f6d4969858b · 0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 to < 6ce60c9226ca583b2b94be63728f3612204f9952 · 0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 to < d1512773a0d539669440bd9f6d050b8e12923b5f · Other versions: unaffected Affected Not stated Linux
Linux — Linux4.19 (affected) · 0 to < 4.19 (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.118 through 6.12.* (unaffected · semver) · 6.18.64 through 6.18.* (unaffected · semver) · 7.3.4 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 Pending Fix; Not Affected Not stated 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: nvmet-rdma: fix out-of-bounds write in nvmet_rdma_map_sgl_inline() nvmet_rdma_map_sgl_inline() bounds the host-supplied in-capsule SGL offset with "off + len > inline_data_size", evaluated in 64-bit arithmetic. off is taken straight from the host SGL descriptor (le64_to_cpu(sgl->addr)) and len is promoted to 64-bit, so the sum wraps: an off within len of 2^64 makes it small and the check passes. off is then used as page_idx = off / PAGE_SIZE to index the fixed-size rsp->cmd->inline_sg[] array (NVMET_RDMA_MAX_INLINE_SGE entries), so a crafted offset yields an out-of-bounds scatterlist index that is written through in nvmet_rdma_use_inline_sg(). The mapping runs while handling a received capsule, before the command executes, so a remote RDMA peer can reach it (the Connect capsule is a write and takes this path on a queue that has no controller yet). The host controls only the low bits of the resulting displacement, so the expected impact is an out-of-bounds write that faults the target (remote denial of service). This wrap was reported, with a KASAN reproduction, on linux-nvme in May, and the check below was suggested in that thread. The fix that was applied, 48c0162f647b, reworked how the offset is mapped but kept the original check, and its page index turns a wrapped offset into an out-of-bounds index into inline_sg[]. Reject the offset before it can wrap. Found independently by static analysis with AI assistance, not reproduced at runtime.

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
9.8 / 10
Severity
critical
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:N - nvmet_rdma_map_sgl_inline() takes off from dptr.sgl.addr of a capsule the remote host sends as an RDMA SEND (nvmet_rdma_recv_done -> nvmet_rdma_handle_command -> nvmet_rdma_map_sgl). The malformed value arrives in the NVMe Connect capsule over RoCEv2 (UDP/IP) or iWARP (TCP), which are routable transports, matching the published nvmet-rdma records. AC:L - The host chooses off = 2^64-k with k <= len, so "off + len" wraps below inline_data_size. This is deterministic, with no race or timing, and works at the default inline_data_size (PAGE_SIZE). The host picks qid in the nvme_rdma_cm_req private data, so it also chooses an I/O-queue cmd with inline pages. PR:N - nvmet_parse_connect_cmd accepts Connect (opcode 0x7f, a write) on an sq with no ctrl, and map_sgl runs before req->execute. That is before nvmet_host_allowed() or DH-HMAC-CHAP. nvmet_rdma_queue_connect accepts any RDMA CM request with recfmt 1.0. UI:N - No victim action is needed beyond a configured nvmet-rdma port; the attacker opens the RDMA CM connection and sends the crafted Connect capsule itself. S:U - The heap overwrite and the crash both stay inside the target host kernel; no guest/host or IOMMU security boundary is crossed. C:H - In releases before the 48c0162f647b backport (4.19 up to 6.1.177, 6.12.96, etc.), sg[0].offset becomes 2^32-k, so the backend reads about 4 GiB past the inline page. The overflow into the adjacent nvmet_rdma_cmd also corrupts the pointers and DMA addresses used for receive buffers. I:H - Pre-48c0162f647b code loops num_pages(len) times with no cap, writing past inline_sg[4] (offset 120 of the 272-byte nvmet_rdma_cmd). It zeroes cmd->queue and overwrites the next kvzalloc'd cmd's sge[1].addr receive DMA address and its cqe.done function pointer. On 7.2+, &inline_sg[page_idx] is about 2^57 bytes away and only faults. A:H - A pre-auth capsule deterministically oopses the target. On 7.2+, sg_mark_end takes a GPF on the non-canonical inline_sg[page_idx]. Older code dereferences the zeroed cmd->queue as NULL in nvmet_rdma_post_recv. Both crash in the CQ completion worker, and the attack can be repeated on every reconnect.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 to < 23352a849f3de89fa72da56e0bdd894d9110c099 (affected · git)0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 to < 61f65766d779a9d048280fd589df3f36a7df0878 (affected · git)0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 to < 2282aac58d857bc2197d5b50f13d7e577a4eedfe (affected · git)0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 to < e2ab52b61e79841c6b1ddf9a9014792c71f32713 (affected · git)0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 to < e9e33234547ac2a2ff583813862bc39caac782d8 (affected · git)0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 to < cfccc5133007373ce8f2a1b856ad7f6d4969858b (affected · git)0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 to < 6ce60c9226ca583b2b94be63728f3612204f9952 (affected · git)0d5ee2b2ab4f6776c361bc975c2323bc8b5cf349 to < d1512773a0d539669440bd9f6d050b8e12923b5f (affected · git)Default: unaffected Linux · cna
Linux Linux 4.19 (affected)0 to < 4.19 (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.118 through 6.12.* (unaffected · semver)6.18.64 through 6.18.* (unaffected · semver)7.3.4 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

nvmet-rdma: fix out-of-bounds write in nvmet_rdma_map_sgl_inline()

Provenance

Schema
5.2
Searchable
yes
Content hash
12acfd76c5e580abaec24f3fa43ddade104bd961cadfff4cf2462043ce9fd1d0
Ingested
01 Dec 2026, 05:47:23 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