{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-43468","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-05-01T14:12:56.011Z","datePublished":"2026-05-08T14:22:28.889Z","dateUpdated":"2026-05-11T22:25:11.471Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-05-11T22:25:11.471Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5: Fix deadlock between devlink lock and esw->wq\n\nesw->work_queue executes esw_functions_changed_event_handler ->\nesw_vfs_changed_event_handler and acquires the devlink lock.\n\n.eswitch_mode_set (acquires devlink lock in devlink_nl_pre_doit) ->\nmlx5_devlink_eswitch_mode_set -> mlx5_eswitch_disable_locked ->\nmlx5_eswitch_event_handler_unregister -> flush_workqueue deadlocks\nwhen esw_vfs_changed_event_handler executes.\n\nFix that by no longer flushing the work to avoid the deadlock, and using\na generation counter to keep track of work relevance. This avoids an old\nhandler manipulating an esw that has undergone one or more mode changes:\n- the counter is incremented in mlx5_eswitch_event_handler_unregister.\n- the counter is read and passed to the ephemeral mlx5_host_work struct.\n- the work handler takes the devlink lock and bails out if the current\n  generation is different than the one it was scheduled to operate on.\n- mlx5_eswitch_cleanup does the final draining before destroying the wq.\n\nNo longer flushing the workqueue has the side effect of maybe no longer\ncancelling pending vport_change_handler work items, but that's ok since\nthose are disabled elsewhere:\n- mlx5_eswitch_disable_locked disables the vport eq notifier.\n- mlx5_esw_vport_disable disarms the HW EQ notification and marks\n  vport->enabled under state_lock to false to prevent pending vport\n  handler from doing anything.\n- mlx5_eswitch_cleanup destroys the workqueue and makes sure all events\n  are disabled/finished."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/eswitch.c","drivers/net/ethernet/mellanox/mlx5/core/eswitch.h","drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c"],"versions":[{"version":"f1bc646c9a06f09aad5d8bacb87103b5573ee45e","lessThan":"0de867f6e34eae6907b367fd152c55e61cb98608","status":"affected","versionType":"git"},{"version":"f1bc646c9a06f09aad5d8bacb87103b5573ee45e","lessThan":"957d2a58f7f8ebcbdd0a85935e0d2675134b890d","status":"affected","versionType":"git"},{"version":"f1bc646c9a06f09aad5d8bacb87103b5573ee45e","lessThan":"3c7313cb41b1b427078440364d2f042c276a1c0b","status":"affected","versionType":"git"},{"version":"f1bc646c9a06f09aad5d8bacb87103b5573ee45e","lessThan":"4a7838bebc38374f74baaf88bf2cf8d439a92923","status":"affected","versionType":"git"},{"version":"f1bc646c9a06f09aad5d8bacb87103b5573ee45e","lessThan":"90e7e5d14d0bd25ffd019a3aa39d9f1c05fedbe1","status":"affected","versionType":"git"},{"version":"f1bc646c9a06f09aad5d8bacb87103b5573ee45e","lessThan":"aed763abf0e905b4b8d747d1ba9e172961572f57","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/eswitch.c","drivers/net/ethernet/mellanox/mlx5/core/eswitch.h","drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c"],"versions":[{"version":"6.0","status":"affected"},{"version":"0","lessThan":"6.0","status":"unaffected","versionType":"semver"},{"version":"6.1.167","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.130","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.78","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.19","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"6.19.9","lessThanOrEqual":"6.19.*","status":"unaffected","versionType":"semver"},{"version":"7.0","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.1.167"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.6.130"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.12.78"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.18.19"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.19.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"7.0"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/0de867f6e34eae6907b367fd152c55e61cb98608"},{"url":"https://git.kernel.org/stable/c/957d2a58f7f8ebcbdd0a85935e0d2675134b890d"},{"url":"https://git.kernel.org/stable/c/3c7313cb41b1b427078440364d2f042c276a1c0b"},{"url":"https://git.kernel.org/stable/c/4a7838bebc38374f74baaf88bf2cf8d439a92923"},{"url":"https://git.kernel.org/stable/c/90e7e5d14d0bd25ffd019a3aa39d9f1c05fedbe1"},{"url":"https://git.kernel.org/stable/c/aed763abf0e905b4b8d747d1ba9e172961572f57"}],"title":"net/mlx5: Fix deadlock between devlink lock and esw->wq","x_generator":{"engine":"bippy-1.2.0"}}}}