CVE-2024-38540 — Out-of-bounds Read in Linux
Severity
4.4MEDIUMNVD
OSV8.8OSV6.5
EPSS
0.0%
top 99.16%
CISA KEV
Not in KEV
Exploit
No known exploits
Affected products
Timeline
PublishedJun 19
Latest updateSep 2
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:
UBSA…
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:HExploitability: 0.8 | Impact: 3.6
Affected Packages7 packages
▶CVEListV5linux/linux0c4dcd602817502bb3dced7a834a13ef717d65a4 — 66a9937187ac9b5c5ffff07b8b284483e56804d1+6