{"id":"CVE-2026-143163","state":"PUBLISHED","title":"net/mlx5e: Fix queue stats access to queues without stats","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: Fix queue stats access to queues without stats\n\nI am seeing the following mlx5e crash in the Meta fleet:\n\n  pc : mlx5e_get_queue_stats_rx+0x4c/0xc8\n  Call trace:\n   mlx5e_get_queue_stats_rx+0x4c/0xc8 (P)\n   netdev_stat_queue_sum+0x78/0x480\n   netdev_nl_qstats_get_dump_one+0xf0/0x268\n   netdev_nl_qstats_get_dumpit+0x7c/0x1f8\n\nWhen dumping device-wide qstats, the core calls the per-queue callbacks\nfor every queue below real_num_{rx,tx}_queues, regardless of whether the\nnetdev is up. Some of those queues have no stats behind them:\n\n - RX stats live in priv->channel_stats[], which only has entries for\n   channels that have been opened (stats_nch). real_num_rx_queues can\n   be larger, for example after the channel count is raised while the\n   netdev is down, or after opening the channels failed part way.\n\n - TX stats are looked up in priv->txq2sq_stats[], which is NULL for\n   SQs that were never activated and for HTB queues while the channels\n   are closed.\n\nIn both cases the callback dereferences a NULL pointer. The dump needs\nno privileges, so any user can trigger it.\n\nReturn early for RX queues at or above stats_nch and for TX queues\nwithout SQ stats.","publishedAt":"2026-12-03T09:20:01.731Z","updatedAt":"2026-12-03T09:20:01.731Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7b66ae536a78216f9c4892533db2d76a8b60a81d","status":"affected","lessThan":"5722c41774b1c4d6d0ecd43d494ff5fdffd0a0c8","versionType":"git"},{"version":"7b66ae536a78216f9c4892533db2d76a8b60a81d","status":"affected","lessThan":"bae3442c750ffe5aaca0cf1e03dc541742376403","versionType":"git"},{"version":"7b66ae536a78216f9c4892533db2d76a8b60a81d","status":"affected","lessThan":"9a24799e219b1699bb1c144248c8c500b9504db5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/en_main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","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/en_main.c"]}],"references":["https://git.kernel.org/stable/c/5722c41774b1c4d6d0ecd43d494ff5fdffd0a0c8","https://git.kernel.org/stable/c/bae3442c750ffe5aaca0cf1e03dc541742376403","https://git.kernel.org/stable/c/9a24799e219b1699bb1c144248c8c500b9504db5"],"weaknesses":[],"ingestedAt":"2026-12-03T09:40:06.136Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143163.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143163","state":"PUBLISHED","datePublished":"2026-12-03T09:20:01.731Z","dateUpdated":"2026-12-03T09:20:01.731Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.356Z"},"containers":{"cna":{"title":"net/mlx5e: Fix queue stats access to queues without stats","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: Fix queue stats access to queues without stats\n\nI am seeing the following mlx5e crash in the Meta fleet:\n\n  pc : mlx5e_get_queue_stats_rx+0x4c/0xc8\n  Call trace:\n   mlx5e_get_queue_stats_rx+0x4c/0xc8 (P)\n   netdev_stat_queue_sum+0x78/0x480\n   netdev_nl_qstats_get_dump_one+0xf0/0x268\n   netdev_nl_qstats_get_dumpit+0x7c/0x1f8\n\nWhen dumping device-wide qstats, the core calls the per-queue callbacks\nfor every queue below real_num_{rx,tx}_queues, regardless of whether the\nnetdev is up. Some of those queues have no stats behind them:\n\n - RX stats live in priv->channel_stats[], which only has entries for\n   channels that have been opened (stats_nch). real_num_rx_queues can\n   be larger, for example after the channel count is raised while the\n   netdev is down, or after opening the channels failed part way.\n\n - TX stats are looked up in priv->txq2sq_stats[], which is NULL for\n   SQs that were never activated and for HTB queues while the channels\n   are closed.\n\nIn both cases the callback dereferences a NULL pointer. The dump needs\nno privileges, so any user can trigger it.\n\nReturn early for RX queues at or above stats_nch and for TX queues\nwithout SQ stats."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"7b66ae536a78216f9c4892533db2d76a8b60a81d","status":"affected","lessThan":"5722c41774b1c4d6d0ecd43d494ff5fdffd0a0c8","versionType":"git"},{"version":"7b66ae536a78216f9c4892533db2d76a8b60a81d","status":"affected","lessThan":"bae3442c750ffe5aaca0cf1e03dc541742376403","versionType":"git"},{"version":"7b66ae536a78216f9c4892533db2d76a8b60a81d","status":"affected","lessThan":"9a24799e219b1699bb1c144248c8c500b9504db5","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/en_main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.11","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc3","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/en_main.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/5722c41774b1c4d6d0ecd43d494ff5fdffd0a0c8"},{"url":"https://git.kernel.org/stable/c/bae3442c750ffe5aaca0cf1e03dc541742376403"},{"url":"https://git.kernel.org/stable/c/9a24799e219b1699bb1c144248c8c500b9504db5"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:20:01.731Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11","versionEndExcluding":"7.4-rc3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}