{"id":"CVE-2026-74397","state":"PUBLISHED","title":"IB/mlx5: Fix transport-domain rollback and initialize lb mutex earlier","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nIB/mlx5: Fix transport-domain rollback and initialize lb mutex earlier\n\nmlx5_ib_alloc_transport_domain() allocates a transport domain and then\nmay fail in mlx5_ib_enable_lb(). In that case, the allocated TD is leaked.\n\nFix this by deallocating the TD when mlx5_ib_enable_lb() returns an\nerror. Also return 0 explicitly in the no-loopback-capability success\nbranch, and move dev->lb.mutex initialization to mlx5_ib_stage_init_init().","publishedAt":"2026-08-15T05:59:09.329Z","updatedAt":"2026-10-30T12:29:56.424Z","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":"146d2f1af3245a10b13eef263687e54f4e253d1d","status":"affected","lessThan":"6da717ed8a0703a331295fdd5ad8b7eacec216ad","versionType":"git"},{"version":"146d2f1af3245a10b13eef263687e54f4e253d1d","status":"affected","lessThan":"2c3b2667dad69d56774b79db763acb3a1bee0fc0","versionType":"git"},{"version":"146d2f1af3245a10b13eef263687e54f4e253d1d","status":"affected","lessThan":"37fc3cc0f924fd8d0f0cf87b92672dec75a32e57","versionType":"git"},{"version":"146d2f1af3245a10b13eef263687e54f4e253d1d","status":"affected","lessThan":"65e344925fa30abf50c8de8c150b397715fa2066","versionType":"git"},{"version":"146d2f1af3245a10b13eef263687e54f4e253d1d","status":"affected","lessThan":"f88e12c95fc19f719e06ca1e9eb20fdad68ef61a","versionType":"git"},{"version":"146d2f1af3245a10b13eef263687e54f4e253d1d","status":"affected","lessThan":"e79389115b9d27287ff6230a9750675106ed7668","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/mlx5/main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.5","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","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/mlx5/main.c"]}],"references":["https://git.kernel.org/stable/c/6da717ed8a0703a331295fdd5ad8b7eacec216ad","https://git.kernel.org/stable/c/2c3b2667dad69d56774b79db763acb3a1bee0fc0","https://git.kernel.org/stable/c/37fc3cc0f924fd8d0f0cf87b92672dec75a32e57","https://git.kernel.org/stable/c/65e344925fa30abf50c8de8c150b397715fa2066","https://git.kernel.org/stable/c/f88e12c95fc19f719e06ca1e9eb20fdad68ef61a","https://git.kernel.org/stable/c/e79389115b9d27287ff6230a9750675106ed7668"],"weaknesses":[],"ingestedAt":"2026-10-30T12:48:04.825Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/74xxx/CVE-2026-74397.json","commit":"1f312381e38164a43607eebab851b151dd16861e","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-74397","state":"PUBLISHED","datePublished":"2026-08-15T05:59:09.329Z","dateUpdated":"2026-10-30T12:29:56.424Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-15T05:44:03.891Z"},"containers":{"cna":{"title":"IB/mlx5: Fix transport-domain rollback and initialize lb mutex earlier","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nIB/mlx5: Fix transport-domain rollback and initialize lb mutex earlier\n\nmlx5_ib_alloc_transport_domain() allocates a transport domain and then\nmay fail in mlx5_ib_enable_lb(). In that case, the allocated TD is leaked.\n\nFix this by deallocating the TD when mlx5_ib_enable_lb() returns an\nerror. Also return 0 explicitly in the no-loopback-capability success\nbranch, and move dev->lb.mutex initialization to mlx5_ib_stage_init_init()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"146d2f1af3245a10b13eef263687e54f4e253d1d","status":"affected","lessThan":"6da717ed8a0703a331295fdd5ad8b7eacec216ad","versionType":"git"},{"version":"146d2f1af3245a10b13eef263687e54f4e253d1d","status":"affected","lessThan":"2c3b2667dad69d56774b79db763acb3a1bee0fc0","versionType":"git"},{"version":"146d2f1af3245a10b13eef263687e54f4e253d1d","status":"affected","lessThan":"37fc3cc0f924fd8d0f0cf87b92672dec75a32e57","versionType":"git"},{"version":"146d2f1af3245a10b13eef263687e54f4e253d1d","status":"affected","lessThan":"65e344925fa30abf50c8de8c150b397715fa2066","versionType":"git"},{"version":"146d2f1af3245a10b13eef263687e54f4e253d1d","status":"affected","lessThan":"f88e12c95fc19f719e06ca1e9eb20fdad68ef61a","versionType":"git"},{"version":"146d2f1af3245a10b13eef263687e54f4e253d1d","status":"affected","lessThan":"e79389115b9d27287ff6230a9750675106ed7668","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/mlx5/main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.5","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.5","versionType":"semver"},{"version":"6.1.191","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","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/mlx5/main.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/6da717ed8a0703a331295fdd5ad8b7eacec216ad"},{"url":"https://git.kernel.org/stable/c/2c3b2667dad69d56774b79db763acb3a1bee0fc0"},{"url":"https://git.kernel.org/stable/c/37fc3cc0f924fd8d0f0cf87b92672dec75a32e57"},{"url":"https://git.kernel.org/stable/c/65e344925fa30abf50c8de8c150b397715fa2066"},{"url":"https://git.kernel.org/stable/c/f88e12c95fc19f719e06ca1e9eb20fdad68ef61a"},{"url":"https://git.kernel.org/stable/c/e79389115b9d27287ff6230a9750675106ed7668"}],"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 - Reachable only via local ibverbs syscalls (ioctl/write) on /dev/infiniband/uverbsX through mlx5_ib_alloc_ucontext() and mlx5_ib_create_qp(); not via remote RoCE/IB packet handling.\nAC:L - An attacker can reliably open uverbs and create raw-packet QPs with self-loopback flags to invoke mlx5_ib_enable_lb(); TD leaks are repeatable by looping alloc_ucontext and can force enable_lb failure via memory pressure or firmware errors.\nPR:L - Kernel creates uverbs device nodes as world-accessible (0666); alloc_ucontext and create_qp require no real root/CAP_SYS_ADMIN, only local access to the mlx5 RDMA character device on hosts with the hardware.\nUI:N - Exploitation needs only attacker-driven ibverbs calls; no victim interaction such as mounting filesystems, clicking links, or opening files is required.\nS:U - Impact stays within the host kernel mlx5 RDMA driver scope; this is not a VM escape, IOMMU/DMA boundary bypass, or other cross-security-authority compromise per kernel CVSS guidance.\nC:H - Locking an uninitialized dev->lb.mutex in mlx5_ib_enable_lb()/disable_lb is undefined behavior that can corrupt kernel memory and be leveraged for arbitrary kernel memory disclosure.\nI:H - Uninitialized mutex use during ucontext transport-domain setup or raw-packet QP creation can corrupt adjacent kernel structures and enable arbitrary write or control-flow hijack primitives.\nA:H - Invalid mutex operations can kernel panic/oops; repeated alloc_ucontext without TD rollback on mlx5_ib_enable_lb() failure exhausts transport domains and denies further RDMA context/QP creation (DoS)."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-30T12:29:56.424Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.5","versionEndExcluding":"6.1.191"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.5","versionEndExcluding":"6.6.145"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.5","versionEndExcluding":"6.12.97"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.5","versionEndExcluding":"6.18.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.5","versionEndExcluding":"7.1.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.5","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-74397","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-16T18:55:25.351057Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-16T19:05:41.192Z"}}]}}}