{"id":"CVE-2026-139136","state":"PUBLISHED","title":"net/mlx5: Only set num_doorbells on a fully initialized SF","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: Only set num_doorbells on a fully initialized SF\n\nThe validation for the num_doorbells devlink param rejects values\ngreater than num_channels. For lightweight SFs, this ends up accessing\na NULL priv->eq_table, leading to a crash.\n\nFix that by rejecting setting num_doorbells on uninitialized SFs.","publishedAt":"2026-11-30T13:31:54.905Z","updatedAt":"2026-11-30T13:31:54.905Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"11bbcfb7668c6f4d97260f7caaefea22678bc31e","status":"affected","lessThan":"3338ecb532c27af28c7c41eaaab4b0b7795f6a0f","versionType":"git"},{"version":"11bbcfb7668c6f4d97260f7caaefea22678bc31e","status":"affected","lessThan":"2dbe2d06ec09a8cc06186cc052217f666f45e9d1","versionType":"git"},{"version":"11bbcfb7668c6f4d97260f7caaefea22678bc31e","status":"affected","lessThan":"fa503935c2d6603856dafff0a0852631ab6e9503","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/devlink.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/devlink.c"]}],"references":["https://git.kernel.org/stable/c/3338ecb532c27af28c7c41eaaab4b0b7795f6a0f","https://git.kernel.org/stable/c/2dbe2d06ec09a8cc06186cc052217f666f45e9d1","https://git.kernel.org/stable/c/fa503935c2d6603856dafff0a0852631ab6e9503"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139136.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139136","state":"PUBLISHED","datePublished":"2026-11-30T13:31:54.905Z","dateUpdated":"2026-11-30T13:31:54.905Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.916Z"},"containers":{"cna":{"title":"net/mlx5: Only set num_doorbells on a fully initialized SF","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: Only set num_doorbells on a fully initialized SF\n\nThe validation for the num_doorbells devlink param rejects values\ngreater than num_channels. For lightweight SFs, this ends up accessing\na NULL priv->eq_table, leading to a crash.\n\nFix that by rejecting setting num_doorbells on uninitialized SFs."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"11bbcfb7668c6f4d97260f7caaefea22678bc31e","status":"affected","lessThan":"3338ecb532c27af28c7c41eaaab4b0b7795f6a0f","versionType":"git"},{"version":"11bbcfb7668c6f4d97260f7caaefea22678bc31e","status":"affected","lessThan":"2dbe2d06ec09a8cc06186cc052217f666f45e9d1","versionType":"git"},{"version":"11bbcfb7668c6f4d97260f7caaefea22678bc31e","status":"affected","lessThan":"fa503935c2d6603856dafff0a0852631ab6e9503","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/devlink.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/devlink.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/3338ecb532c27af28c7c41eaaab4b0b7795f6a0f"},{"url":"https://git.kernel.org/stable/c/2dbe2d06ec09a8cc06186cc052217f666f45e9d1"},{"url":"https://git.kernel.org/stable/c/fa503935c2d6603856dafff0a0852631ab6e9503"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:31:54.905Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}