{"id":"CVE-2026-74297","summary":"RDMA/mlx5: Fix undefined shift of user RQ WQE size","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/mlx5: Fix undefined shift of user RQ WQE size\n\nset_rq_size() computes the RQ WQE size as \"1 \u003c\u003c rq_wqe_shift\" based on\nthe user-provided rq_wqe_shift, which is only checked to be greater than\n32, so shifts of 32 are still accepted. A shift of 31 also overflows a\nsigned integer, leading to undefined behavior.\n\nUse check_shl_overflow() to compute the RQ WQE size and reject any\ninvalid values.","modified":"2026-08-18T03:56:28.488093606Z","published":"2026-08-15T05:58:01.414Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74297.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/42f3d2c8c18b92ea33e506a38b64f1a8986c2823"},{"type":"WEB","url":"https://git.kernel.org/stable/c/4b87a2497276a72fd63028e7419abf0fb7ed837b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/6fc874fdfb366bfb11c62e6af9a831c8be59ddda"},{"type":"WEB","url":"https://git.kernel.org/stable/c/9fff54929cc00849d738faa99f06c32399aeb026"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b732db02a2b04cde393638df19de6251ce62a74e"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b746f949c2ac2b041102836095d6d4a2ef21fa75"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c1dbf52d24a8cb1aa56780ba51b72e7d495f258c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d881d60223aac8fdc12b227d89c76e131e92a9cd"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/74xxx/CVE-2026-74297.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-74297"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"e126ba97dba9edeb6fafa3665b5f8497fc9cdf8c"},{"fixed":"9fff54929cc00849d738faa99f06c32399aeb026"},{"fixed":"b746f949c2ac2b041102836095d6d4a2ef21fa75"},{"fixed":"c1dbf52d24a8cb1aa56780ba51b72e7d495f258c"},{"fixed":"6fc874fdfb366bfb11c62e6af9a831c8be59ddda"},{"fixed":"42f3d2c8c18b92ea33e506a38b64f1a8986c2823"},{"fixed":"4b87a2497276a72fd63028e7419abf0fb7ed837b"},{"fixed":"b732db02a2b04cde393638df19de6251ce62a74e"},{"fixed":"d881d60223aac8fdc12b227d89c76e131e92a9cd"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74297.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.11.0"},{"fixed":"5.10.261"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.212"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.178"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.145"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.97"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.40"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.1.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-74297.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}