{"id":"CVE-2026-93037","state":"PUBLISHED","title":"RDMA/hfi1: Propagate sdma_txinit_ahg() errors","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/hfi1: Propagate sdma_txinit_ahg() errors\n\nset_txreq_header_ahg() ignores the return value of sdma_txinit_ahg().\n\nIf sdma_txinit_ahg() fails, it returns before initializing tx->txreq.\nHowever, set_txreq_header_ahg() ignores the error and returns the AHG\nchange count, causing the caller to continue processing the request as\nthough initialization had succeeded.\n\nPropagate sdma_txinit_ahg() failures to the caller and abort request\nprocessing when initialization fails.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE.","publishedAt":"2026-09-17T16:10:31.452Z","updatedAt":"2026-10-19T09:04:32.386Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e3304b7cc4f14d365f46d6847a35563ae8b017f7","status":"affected","lessThan":"cb73c2fe6e9cf563c99f22b7c8bca0d5f70d603e","versionType":"git"},{"version":"e3304b7cc4f14d365f46d6847a35563ae8b017f7","status":"affected","lessThan":"122a730675565ff2ad210537c3fc3afb8291d482","versionType":"git"},{"version":"e3304b7cc4f14d365f46d6847a35563ae8b017f7","status":"affected","lessThan":"bf974994150cfd14bfc599748925f4d426e00d90","versionType":"git"},{"version":"e3304b7cc4f14d365f46d6847a35563ae8b017f7","status":"affected","lessThan":"fd6dee13f3857259b6b2ddd28e1ed95fd94ae2f9","versionType":"git"},{"version":"e3304b7cc4f14d365f46d6847a35563ae8b017f7","status":"affected","lessThan":"5b7cefffd15d87c8103865f887cdcf9077d8094b","versionType":"git"},{"version":"e3304b7cc4f14d365f46d6847a35563ae8b017f7","status":"affected","lessThan":"3416db552eb378e54cb2f2ce0db5f0df88654bda","versionType":"git"},{"version":"e3304b7cc4f14d365f46d6847a35563ae8b017f7","status":"affected","lessThan":"ca99431820e8cac19f6a091c04da54cbe8d64f52","versionType":"git"},{"version":"e3304b7cc4f14d365f46d6847a35563ae8b017f7","status":"affected","lessThan":"091c6162c022cbdfb64219708a71728cfd1d4600","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/hfi1/user_sdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.14","versionType":"semver"},{"version":"5.10.270","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.221","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/hfi1/user_sdma.c"]}],"references":["https://git.kernel.org/stable/c/cb73c2fe6e9cf563c99f22b7c8bca0d5f70d603e","https://git.kernel.org/stable/c/122a730675565ff2ad210537c3fc3afb8291d482","https://git.kernel.org/stable/c/bf974994150cfd14bfc599748925f4d426e00d90","https://git.kernel.org/stable/c/fd6dee13f3857259b6b2ddd28e1ed95fd94ae2f9","https://git.kernel.org/stable/c/5b7cefffd15d87c8103865f887cdcf9077d8094b","https://git.kernel.org/stable/c/3416db552eb378e54cb2f2ce0db5f0df88654bda","https://git.kernel.org/stable/c/ca99431820e8cac19f6a091c04da54cbe8d64f52","https://git.kernel.org/stable/c/091c6162c022cbdfb64219708a71728cfd1d4600"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:34.582Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/93xxx/CVE-2026-93037.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-93037","state":"PUBLISHED","datePublished":"2026-09-17T16:10:31.452Z","dateUpdated":"2026-10-19T09:04:32.386Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-17T15:57:05.656Z"},"containers":{"cna":{"title":"RDMA/hfi1: Propagate sdma_txinit_ahg() errors","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/hfi1: Propagate sdma_txinit_ahg() errors\n\nset_txreq_header_ahg() ignores the return value of sdma_txinit_ahg().\n\nIf sdma_txinit_ahg() fails, it returns before initializing tx->txreq.\nHowever, set_txreq_header_ahg() ignores the error and returns the AHG\nchange count, causing the caller to continue processing the request as\nthough initialization had succeeded.\n\nPropagate sdma_txinit_ahg() failures to the caller and abort request\nprocessing when initialization fails.\n\nFound by Linux Verification Center (linuxtesting.org) with SVACE."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e3304b7cc4f14d365f46d6847a35563ae8b017f7","status":"affected","lessThan":"cb73c2fe6e9cf563c99f22b7c8bca0d5f70d603e","versionType":"git"},{"version":"e3304b7cc4f14d365f46d6847a35563ae8b017f7","status":"affected","lessThan":"122a730675565ff2ad210537c3fc3afb8291d482","versionType":"git"},{"version":"e3304b7cc4f14d365f46d6847a35563ae8b017f7","status":"affected","lessThan":"bf974994150cfd14bfc599748925f4d426e00d90","versionType":"git"},{"version":"e3304b7cc4f14d365f46d6847a35563ae8b017f7","status":"affected","lessThan":"fd6dee13f3857259b6b2ddd28e1ed95fd94ae2f9","versionType":"git"},{"version":"e3304b7cc4f14d365f46d6847a35563ae8b017f7","status":"affected","lessThan":"5b7cefffd15d87c8103865f887cdcf9077d8094b","versionType":"git"},{"version":"e3304b7cc4f14d365f46d6847a35563ae8b017f7","status":"affected","lessThan":"3416db552eb378e54cb2f2ce0db5f0df88654bda","versionType":"git"},{"version":"e3304b7cc4f14d365f46d6847a35563ae8b017f7","status":"affected","lessThan":"ca99431820e8cac19f6a091c04da54cbe8d64f52","versionType":"git"},{"version":"e3304b7cc4f14d365f46d6847a35563ae8b017f7","status":"affected","lessThan":"091c6162c022cbdfb64219708a71728cfd1d4600","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/hfi1/user_sdma.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.14","versionType":"semver"},{"version":"5.10.270","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.221","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.188","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.157","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.110","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/hfi1/user_sdma.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/cb73c2fe6e9cf563c99f22b7c8bca0d5f70d603e"},{"url":"https://git.kernel.org/stable/c/122a730675565ff2ad210537c3fc3afb8291d482"},{"url":"https://git.kernel.org/stable/c/bf974994150cfd14bfc599748925f4d426e00d90"},{"url":"https://git.kernel.org/stable/c/fd6dee13f3857259b6b2ddd28e1ed95fd94ae2f9"},{"url":"https://git.kernel.org/stable/c/5b7cefffd15d87c8103865f887cdcf9077d8094b"},{"url":"https://git.kernel.org/stable/c/3416db552eb378e54cb2f2ce0db5f0df88654bda"},{"url":"https://git.kernel.org/stable/c/ca99431820e8cac19f6a091c04da54cbe8d64f52"},{"url":"https://git.kernel.org/stable/c/091c6162c022cbdfb64219708a71728cfd1d4600"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The attacker-controlled bytes are the sdma_req_info/header/iovecs copy_from_user()'d in hfi1_user_sdma_process_request(), reached only from hfi1_write_iter() on the hfi1 user cdev. A remote Omni-Path peer does not supply that request; kernel verbs already check sdma_txinit_ahg() and are not this bug.\nAC:L - On the AHG path (npkts>1 and HFI1_CAP_IS_USET(SDMA_AHG) so ahg_idx>=0), the attacker sets a later packet's datalen to 0 or info.fragsize>MAX_SDMA_PKT_SIZE so sdma_txinit_ahg() returns -ENODATA/-EMSGSIZE. set_txreq_header_ahg() still returns the AHG index count, and user_sdma_send_pkts() continues with no race.\nPR:L - hfi1_user_devnode() creates /dev/hfi1_N with mode 0666, and hfi1_file_open()/assign_ctxt() perform no capability checks, so an ordinary unprivileged local user can assign a context and writev() the crafted SDMA request.\nUI:N - Exploitation is the attacker's own open, HFI1_IOCTL_ASSIGN_CTXT, and writev() of a multi-packet user SDMA request; no other user must mount media, open a file, or otherwise interact.\nS:U - The uninitialized user_sdma_txreq.txreq is consumed by make_tx_sdma_desc() and submit_tx() inside the host hfi1 driver; impact is host-kernel memory/DMA corruption, not a guest-to-host, IOMMU, or other authority-boundary escape.\nC:H - user_sdma_send_pkts() still calls hfi1_add_pages_to_sdma_packet() after the failed sdma_txinit_ahg(), and make_tx_sdma_desc() reads/writes through uninitialized tx->descp. A recycled txreq_cache object whose extended descp was kfree'd in __sdma_txclean() is a use-after-free, enabling kernel info disclosure.\nI:H - make_tx_sdma_desc() writes DMA address and length through that uninitialized/dangling descp, and submit_tx() copies those descriptors into the SDMA ring. That is an arbitrary kernel write and hardware DMA of attacker-influenced descriptors, enabling control-flow hijack.\nA:H - submit_tx() always loads descp->qw[0] even when num_desc is 0, so a NULL descp from an uninitialized txreq is a kernel NULL-deref oops; garbage num_desc/descriptors also crash or halt the SDMA engine."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T09:04:32.386Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"5.10.270"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"5.15.221"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.1.188"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.6.157"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.12.110"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"6.18.52"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"7.2.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.14","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}