cve.bz

CVE-2024-26766 Off-by-one Error

5.5 mediumEPSS 0.3%Fix available

Medium (5.5). EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
In the Linux kernel, the following vulnerability has been resolved: IB/hfi1: Fix sdma.h tx->num_descs off-by-one error Unfortunately the commit `fd8958efe877` introduced another error causing the `descs` array to overflow. This reults in further crashes easily reproducible by `sendmsg` system call. [ 1080.836473] general protection fault, probably for non-canonical address 0x400300015528b00a: 0000 [#1] PREEMPT SMP PTI [ 1080.869326] RIP: 0010:hfi1_ipoib_build_ib_tx_headers.constprop.0+0xe1/0x2b0 [hfi1] -- [ 1080.974535] Call Trace: [ 1080.976990] <TASK> [ 1081.021929] hfi1_ipoib_send_dma_common+0x7a/0x2e0 [hfi1] [ 1081.027364] hfi1_ipoib_send_dma_list+0x62/0x270 [hfi1] [ 1081.032633] hfi1_ipoib_send+0x112/0x300 [hfi1] [ 1081.042001] ipoib_start_xmit+0x2a9/0x2d0 [ib_ipoib] [ 1081.046978] dev_hard_start_xmit+0xc4/0x210 -- [ 1081.148347] __sys_sendmsg+0x59/0xa0 crash> ipoib_txreq 0xffff9cfeba229f00 struct ipoib_txreq { txreq = { list = { next = 0xffff9cfeba229f00, prev = 0xffff9cfeba229f00 }, descp = 0xffff9cfeba229f40, coalesce_buf = 0x0, wait = 0xffff9cfea4e69a48, complete = 0xffffffffc0fe0760 <hfi1_ipoib_sdma_complete>, packet_len = 0x46d, tlen = 0x0, num_desc = 0x0, desc_limit = 0x6, next_descq_idx = 0x45c, coalesce_idx = 0x0, flags = 0x0, descs = {{ qw = {0x8024000120dffb00, 0x4} # SDMA_DESC0_FIRST_DESC_FLAG (bit 63) }, { qw = { 0x3800014231b108, 0x4} }, { qw = { 0x310000e4ee0fcf0, 0x8} }, { qw = { 0x3000012e9f8000, 0x8} }, { qw = { 0x59000dfb9d0000, 0x8} }, { qw = { 0x78000e02e40000, 0x8} }} }, sdma_hdr = 0x400300015528b000, <<< invalid pointer in the tx request structure sdma_status = 0x0, SDMA_DESC0_LAST_DESC_FLAG (bit 62) complete = 0x0, priv = 0x0, txq = 0xffff9cfea4e69880, skb = 0xffff9d099809f400 } If an SDMA send consists of exactly 6 descriptors and requires dword padding (in the 7th descriptor), the sdma_txreq descriptor array is not properly expanded and the packet will overflow into the container structure. This results in a panic when the send completion runs. The exact panic varies depending on what elements of the container structure get corrupted. The fix is to use the correct expression in _pad_sdma_tx_descs() to test the need to expand the descriptor array. With this patch the crashes are no longer reproducible and the machine is stable.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 19th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-04-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-193 Off-by-one Error
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-26766 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-26766?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-26766?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-26766 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Linuxfrom 4.19.291 before 4.19.308
Linuxfrom 5.4.251 before 5.4.270
Linuxfrom 5.10.188 before 5.10.211
Linuxfrom 5.15.99 before 5.15.150
Linuxfrom 6.1.16 before 6.1.80
Linuxfrom 6.2.3 before 6.3
Linux6.3 and later

Fixed in

ProductRelease lineFixed in
Linux4.194.19.308
Linux5.45.4.270
Linux5.105.10.211
Linux5.155.15.150
Linux6.16.1.80
Linux6.66.6.19
Linux6.76.7.7
Linuxlater releases6.8

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10linux4.19.316-1DLA-3840-1
Debian10linux-5.105.10.216-1~deb10u1DLA-3842-1
Debian11linux5.10.216-1DSA-5681-1
Debian12linux6.1.82-1DEBIAN-CVE-2024-26766
Debian13, 14linux6.7.7-1DEBIAN-CVE-2024-26766
Ubuntu16.04:LTSlinux-hwe-edgeno fix listedUBUNTU-CVE-2024-26766
Ubuntu18.04:LTSlinux-gcp, linux-hwe, linux-oem and 11 moreno fix listedUBUNTU-CVE-2024-26766
Ubuntu20.04:LTSlinux5.4.0-186.206UBUNTU-CVE-2024-26766 USN-6831-1
Ubuntu20.04:LTSlinux-aws5.4.0-1126.136UBUNTU-CVE-2024-26766 USN-6831-1
Ubuntu20.04:LTSlinux-aws-5.155.15.0-1063.69~20.04.1UBUNTU-CVE-2024-26766 USN-6821-3
Ubuntu20.04:LTSlinux-azure5.4.0-1131.138UBUNTU-CVE-2024-26766 USN-6831-1
Ubuntu20.04:LTSlinux-azure-5.155.15.0-1065.74~20.04.1UBUNTU-CVE-2024-26766
Ubuntu20.04:LTSlinux-bluefield5.4.0-1086.93UBUNTU-CVE-2024-26766 USN-6867-1
Ubuntu20.04:LTSlinux-gcp5.4.0-1130.139UBUNTU-CVE-2024-26766 USN-6831-1
Ubuntu20.04:LTSlinux-gcp-5.155.15.0-1062.70~20.04.1UBUNTU-CVE-2024-26766 USN-6820-1
Ubuntu20.04:LTSlinux-gke, linux-riscv, linux-raspi2 and 24 moreno fix listedUBUNTU-CVE-2024-26766
Ubuntu20.04:LTSlinux-gkeop5.4.0-1093.97UBUNTU-CVE-2024-26766 USN-6831-1
52 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:8::baseosperf, kernel, bpftool and 30 more0:4.18.0-553.100.1.el8_10RHSA-2026:1662
Red Hatenterprise_linux:8::crbperf-debuginfo, kernel-debuginfo, bpftool-debuginfo and 7 more0:4.18.0-553.100.1.el8_10RHSA-2026:1662
Red Hatenterprise_linux:8::nfvkernel-rt, kernel-rt-kvm, kernel-rt-core and 12 more0:4.18.0-553.100.1.rt7.441.el8_10RHSA-2026:1661
Red Hatenterprise_linux:8::realtimekernel-rt, kernel-rt-core, kernel-rt-debug and 10 more0:4.18.0-553.100.1.rt7.441.el8_10RHSA-2026:1661
SUSELinux Enterprise High Availability Extension 15 SP4, Linux Enterprise Live Patching 15 SP4, Linux Enterprise Micro 5.3 and 1 morekernel-default5.14.21-150400.24.119.1SUSE-SU-2024:1641-1
SUSELinux Enterprise High Availability Extension 15 SP5, Linux Enterprise Live Patching 15 SP5, Linux Enterprise Micro 5.5 and 2 morekernel-default5.14.21-150500.55.62.2SUSE-SU-2024:1659-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSSkernel-64kb, kernel-docs, kernel-syms and 3 more5.14.21-150400.24.119.1SUSE-SU-2024:1641-1
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise Micro 5.3 and 5 morekernel-default-base5.14.21-150400.24.119.1.150400.24.56.1SUSE-SU-2024:1641-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_1214-150400.2.1SUSE-SU-2024:1748-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_1411-150400.2.1SUSE-SU-2024:1726-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_198-150400.2.1SUSE-SU-2024:1757-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_207-150400.2.1SUSE-SU-2024:1739-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_217-150400.2.1SUSE-SU-2024:1740-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_2310-150400.9.8.1SUSE-SU-2024:3793-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_2311-150400.9.8.1SUSE-SU-2024:4234-1
SUSELinux Enterprise Live Patching 15 SP4kernel-livepatch-SLE15-SP4_Update_2312-150400.9.8.1SUSE-SU-2025:0107-1
70 more for SUSE in the JSON and on SUSE's page.
openSUSELeap 15.5dtb-aarch64, kernel-syms, kernel-obs-qa5.14.21-150500.55.62.1SUSE-SU-2024:1659-1
openSUSELeap 15.5kernel-64kb, kernel-docs, kernel-debug and 5 more5.14.21-150500.55.62.2SUSE-SU-2024:1659-1
openSUSELeap 15.5kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150500.33.48.1SUSE-SU-2024:1490-1
openSUSELeap 15.5kernel-azure, kernel-syms-azure, kernel-source-azure5.14.21-150500.33.51.1SUSE-SU-2024:1644-1
openSUSELeap 15.5kernel-default-base5.14.21-150500.55.62.2.150500.6.27.2SUSE-SU-2024:1659-1
openSUSELeap 15.5kernel-rt, kernel-syms-rt, kernel-rt_debug and 1 more5.14.21-150500.13.52.1SUSE-SU-2024:1663-1
openSUSELeap Micro 5.3, Leap Micro 5.4kernel-default5.14.21-150400.24.119.1SUSE-SU-2024:1641-1
openSUSELeap Micro 5.3, Leap Micro 5.4kernel-default-base5.14.21-150400.24.119.1.150400.24.56.1SUSE-SU-2024:1641-1
openSUSELeap Micro 5.3, Leap Micro 5.4kernel-rt5.14.21-150400.15.79.1SUSE-SU-2024:1647-1
AlmaLinux8kernel-rt, kernel-rt-core, kernel-rt-debug and 7 more4.18.0-553.100.1.rt7.441.el8_10ALSA-2026:1661
AlmaLinux8perf, kernel, bpftool and 22 more4.18.0-553.100.1.el8_10ALSA-2026:1662
Rocky Linux8kernel0:4.18.0-553.100.1.el8_10RLSA-2026:1662
Rocky Linux8kernel-rt0:4.18.0-553.100.1.rt7.441.el8_10RLSA-2026:1661
Alpaquita23linux-lts6.1.81-r0BELL-CVE-2024-26766
Alpaquita25, streamlinux-lts6.12.41-r0BELL-CVE-2024-26766

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

None of the products shipped by Red Hat are affected by this vulnerability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8kernel-rt-0:4.18.0-553.100.1.rt7.441.el8_10Fixed 2026-02-02RHSA-2026:1661
Red Hat Enterprise Linux 8kernel-0:4.18.0-553.100.1.el8_10Fixed 2026-02-02RHSA-2026:1662
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 7kernelNot affected
Red Hat Enterprise Linux 7kernel-rtNot affected
Red Hat Enterprise Linux 9kernelNot affected
Red Hat Enterprise Linux 9kernel-rtNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2024-26766.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-25-226-15Siemens SINEC OS2025-08-12Critical Manufacturing, Transportation Systems, Energy, Healthcare and Public Health, Financial Services, Government Services and Facilitiesnone listednone listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON