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-2024-38540

published medium CVSS 3.1 · 4.4

bnxt_re: avoid shift undefined behavior in bnxt_qplib_alloc_init_hwq

Published
19 Jun 2024, 13:35:15 UTC
Updated
11 May 2026, 20:18:38 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux0c4dcd602817502bb3dced7a834a13ef717d65a4 to < 66a9937187ac9b5c5ffff07b8b284483e56804d1 · 0c4dcd602817502bb3dced7a834a13ef717d65a4 to < 84d2f29152184f0d72ed7c9648c4ee6927df4e59 · 0c4dcd602817502bb3dced7a834a13ef717d65a4 to < a658f011d89dd20cf2c7cb4760ffd79201700b98 · 0c4dcd602817502bb3dced7a834a13ef717d65a4 to < 627493443f3a8458cb55cdae1da254a7001123bc · 0c4dcd602817502bb3dced7a834a13ef717d65a4 to < 8b799c00cea6fcfe5b501bbaeb228c8821acb753 · 0c4dcd602817502bb3dced7a834a13ef717d65a4 to < 78cfd17142ef70599d6409cbd709d94b3da58659 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.7 (affected) · 0 to < 5.7 (unaffected · semver) · 5.15.181 through 5.15.* (unaffected · semver) · 6.1.117 through 6.1.* (unaffected · semver) · 6.6.33 through 6.6.* (unaffected · semver) · 6.8.12 through 6.8.* (unaffected · semver) · 6.9.3 through 6.9.* (unaffected · semver) · 6.10 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
AlmaLinux 8 bpftool Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
Debian bookworm linux Advisory build 6.1.119-1 DSA-5818-1
Oracle Linux 8 bpftoolaarch64 Advisory build 0:4.18.0-553.27.1.el8_10 ELSA-2024-8856
AlmaLinux 8 kernel Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
Show 96 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
AlmaLinux 8 kernel-abi-stablelists Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-core Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-cross-headers Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-debug Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-debug-core Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-debug-devel Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-debug-modules Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-debug-modules-extra Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-devel Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-doc Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-headers Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-modules Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-modules-extra Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-rt Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-rt-core Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-rt-debug Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-rt-debug-core Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-rt-debug-devel Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-rt-debug-modules Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-rt-debug-modules-extra Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-rt-devel Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-rt-modules Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-rt-modules-extra Advisory build 4.18.0-553.27.1.rt7.368.el8_10 ALSA-2024:8870
AlmaLinux 8 kernel-tools Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-tools-libs Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-tools-libs-devel Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-zfcpdump Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-zfcpdump-core Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-zfcpdump-devel Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-zfcpdump-modules Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 kernel-zfcpdump-modules-extra Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 perf Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 8 python3-perf Advisory build 4.18.0-553.27.1.el8_10 ALSA-2024:8856
AlmaLinux 9 bpftool Advisory build 7.3.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-64k Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-64k-core Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-64k-debug Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-64k-debug-core Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-64k-debug-devel Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-64k-debug-devel-matched Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-64k-debug-modules Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-64k-debug-modules-core Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-64k-debug-modules-extra Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-64k-devel Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-64k-devel-matched Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-64k-modules Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-64k-modules-core Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-64k-modules-extra Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-abi-stablelists Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-core Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-cross-headers Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-debug Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-debug-core Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-debug-devel Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-debug-devel-matched Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-debug-modules Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-debug-modules-core Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-debug-modules-extra Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-debug-uki-virt Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-devel Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-devel-matched Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-doc Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-headers Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-modules Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-modules-core Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-modules-extra Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-rt Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-rt-core Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-rt-debug Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-rt-debug-core Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-rt-debug-devel Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-rt-debug-modules Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-rt-debug-modules-core Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-rt-debug-modules-extra Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-rt-devel Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-rt-modules Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-rt-modules-core Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-rt-modules-extra Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-tools Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-tools-libs Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-tools-libs-devel Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-uki-virt Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-zfcpdump Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-zfcpdump-core Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-zfcpdump-devel Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-zfcpdump-devel-matched Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-zfcpdump-modules Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-zfcpdump-modules-core Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 kernel-zfcpdump-modules-extra Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 libperf Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 perf Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 python3-perf Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 rtla Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
AlmaLinux 9 rv Advisory build 5.14.0-427.33.1.el9_4 ALSA-2024:5928
Debian bullseye linux-6.1 Advisory build 6.1.119-1~deb11u1 DLA-4008-1

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: bnxt_re: avoid shift undefined behavior in bnxt_qplib_alloc_init_hwq Undefined behavior is triggered when bnxt_qplib_alloc_init_hwq is called with hwq_attr->aux_depth != 0 and hwq_attr->aux_stride == 0. In that case, "roundup_pow_of_two(hwq_attr->aux_stride)" gets called. roundup_pow_of_two is documented as undefined for 0. Fix it in the one caller that had this combination. The undefined behavior was detected by UBSAN: UBSAN: shift-out-of-bounds in ./include/linux/log2.h:57:13 shift exponent 64 is too large for 64-bit type 'long unsigned int' CPU: 24 PID: 1075 Comm: (udev-worker) Not tainted 6.9.0-rc6+ #4 Hardware name: Abacus electric, s.r.o. - [email protected] Super Server/H12SSW-iN, BIOS 2.7 10/25/2023 Call Trace: <TASK> dump_stack_lvl+0x5d/0x80 ubsan_epilogue+0x5/0x30 __ubsan_handle_shift_out_of_bounds.cold+0x61/0xec __roundup_pow_of_two+0x25/0x35 [bnxt_re] bnxt_qplib_alloc_init_hwq+0xa1/0x470 [bnxt_re] bnxt_qplib_create_qp+0x19e/0x840 [bnxt_re] bnxt_re_create_qp+0x9b1/0xcd0 [bnxt_re] ? srso_alias_return_thunk+0x5/0xfbef5 ? srso_alias_return_thunk+0x5/0xfbef5 ? __kmalloc+0x1b6/0x4f0 ? create_qp.part.0+0x128/0x1c0 [ib_core] ? __pfx_bnxt_re_create_qp+0x10/0x10 [bnxt_re] create_qp.part.0+0x128/0x1c0 [ib_core] ib_create_qp_kernel+0x50/0xd0 [ib_core] create_mad_qp+0x8e/0xe0 [ib_core] ? __pfx_qp_event_handler+0x10/0x10 [ib_core] ib_mad_init_device+0x2be/0x680 [ib_core] add_client_context+0x10d/0x1a0 [ib_core] enable_device_and_get+0xe0/0x1d0 [ib_core] ib_register_device+0x53c/0x630 [ib_core] ? srso_alias_return_thunk+0x5/0xfbef5 bnxt_re_probe+0xbd8/0xe50 [bnxt_re] ? __pfx_bnxt_re_probe+0x10/0x10 [bnxt_re] auxiliary_bus_probe+0x49/0x80 ? driver_sysfs_add+0x57/0xc0 really_probe+0xde/0x340 ? pm_runtime_barrier+0x54/0x90 ? __pfx___driver_attach+0x10/0x10 __driver_probe_device+0x78/0x110 driver_probe_device+0x1f/0xa0 __driver_attach+0xba/0x1c0 bus_for_each_dev+0x8f/0xe0 bus_add_driver+0x146/0x220 driver_register+0x72/0xd0 __auxiliary_driver_register+0x6e/0xd0 ? __pfx_bnxt_re_mod_init+0x10/0x10 [bnxt_re] bnxt_re_mod_init+0x3e/0xff0 [bnxt_re] ? __pfx_bnxt_re_mod_init+0x10/0x10 [bnxt_re] do_one_initcall+0x5b/0x310 do_init_module+0x90/0x250 init_module_from_file+0x86/0xc0 idempotent_init_module+0x121/0x2b0 __x64_sys_finit_module+0x5e/0xb0 do_syscall_64+0x82/0x160 ? srso_alias_return_thunk+0x5/0xfbef5 ? syscall_exit_to_user_mode_prepare+0x149/0x170 ? srso_alias_return_thunk+0x5/0xfbef5 ? syscall_exit_to_user_mode+0x75/0x230 ? srso_alias_return_thunk+0x5/0xfbef5 ? do_syscall_64+0x8e/0x160 ? srso_alias_return_thunk+0x5/0xfbef5 ? __count_memcg_events+0x69/0x100 ? srso_alias_return_thunk+0x5/0xfbef5 ? count_memcg_events.constprop.0+0x1a/0x30 ? srso_alias_return_thunk+0x5/0xfbef5 ? handle_mm_fault+0x1f0/0x300 ? srso_alias_return_thunk+0x5/0xfbef5 ? do_user_addr_fault+0x34e/0x640 ? srso_alias_return_thunk+0x5/0xfbef5 ? srso_alias_return_thunk+0x5/0xfbef5 entry_SYSCALL_64_after_hwframe+0x76/0x7e RIP: 0033:0x7f4e5132821d Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d e3 db 0c 00 f7 d8 64 89 01 48 RSP: 002b:00007ffca9c906a8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139 RAX: ffffffffffffffda RBX: 0000563ec8a8f130 RCX: 00007f4e5132821d RDX: 0000000000000000 RSI: 00007f4e518fa07d RDI: 000000000000003b RBP: 00007ffca9c90760 R08: 00007f4e513f6b20 R09: 00007ffca9c906f0 R10: 0000563ec8a8faa0 R11: 0000000000000246 R12: 00007f4e518fa07d R13: 0000000000020000 R14: 0000563ec8409e90 R15: 0000563ec8a8fa60 </TASK> ---[ end trace ]---

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

50

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
4.4 / 10
Severity
medium
Provider
CISA-ADP · adp
Vector string
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 0c4dcd602817502bb3dced7a834a13ef717d65a4 to < 66a9937187ac9b5c5ffff07b8b284483e56804d1 (affected · git)0c4dcd602817502bb3dced7a834a13ef717d65a4 to < 84d2f29152184f0d72ed7c9648c4ee6927df4e59 (affected · git)0c4dcd602817502bb3dced7a834a13ef717d65a4 to < a658f011d89dd20cf2c7cb4760ffd79201700b98 (affected · git)0c4dcd602817502bb3dced7a834a13ef717d65a4 to < 627493443f3a8458cb55cdae1da254a7001123bc (affected · git)0c4dcd602817502bb3dced7a834a13ef717d65a4 to < 8b799c00cea6fcfe5b501bbaeb228c8821acb753 (affected · git)0c4dcd602817502bb3dced7a834a13ef717d65a4 to < 78cfd17142ef70599d6409cbd709d94b3da58659 (affected · git)Default: unaffected Linux · cna
Linux Linux 5.7 (affected)0 to < 5.7 (unaffected · semver)5.15.181 through 5.15.* (unaffected · semver)6.1.117 through 6.1.* (unaffected · semver)6.6.33 through 6.6.* (unaffected · semver)6.8.12 through 6.8.* (unaffected · semver)6.9.3 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

1
  • CWE-noinfo Not enough information (CISA-ADP · adp)

References

7

Provider assertions

3

Linux · cna

bnxt_re: avoid shift undefined behavior in bnxt_qplib_alloc_init_hwq

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
691c10a986107573b7af020139f4306fe5661aff1c36f1417335bebe61afaa48
Ingested
23 Sep 2026, 08:24:49 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