FKIE_CVE-2026-143209

Vulnerability from fkie_nvd - Published: 2026-12-03 10:17 - Updated: 2026-12-03 10:17
Severity
Summary
In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Fix E-Switch races in uplink unbind Unbinding the uplink Ethernet auxiliary driver in switchdev mode with offloaded IPsec policies deadlocks on the esw->mode_lock semaphore: mlx5_eswitch_safe_aux_devs_remove() mlx5_esw_hold() down_read_trylock(&esw->mode_lock) (*) mlx5_core_reps_aux_devs_remove() ... mlx5e_vport_uplink_rep_unload() unregister_netdev() xfrm_dev_unregister() xfrm_dev_policy_flush() xfrm_policy_kill() xfrm_dev_policy_delete() mlx5e_xfrm_del_policy() mlx5e_accel_ipsec_fs_del_pol() rx_ft_put_policy() rx_put() mlx5_eswitch_unblock_mode() down_write(&esw->mode_lock) (BOOM) Another deadlock with IPsec states: mlx5_eswitch_safe_aux_devs_remove() mlx5_esw_hold() down_read_trylock(&esw->mode_lock) (*) mlx5_core_reps_aux_devs_remove() ... mlx5e_vport_uplink_rep_unload() unregister_netdev() xfrm_dev_unregister() xfrm_dev_state_flush() xfrm_dev_state_free() mlx5e_xfrm_free_state() mlx5e_accel_ipsec_fs_del_rule() rx_ft_put() rx_put() rx_destroy() mlx5_eswitch_unblock_encap() down_write(&esw->mode_lock) (BOOM) To fix these, first refactor initiators of eswitch operations so they no longer step on each other's toes. The active/inactive toggle and setting the inline/encap mode now use the new mlx5_esw_lock_wait(), which waits for an operation in progress to finish. They all hold devl_lock, so the only operation they can find in progress is an uplink unbind, which doesn't need devl_lock. Setting the esw mode keeps using mlx5_esw_try_lock(), which also rejects the change while eswitch users exist and bails out with -EBUSY. mlx5_eswitch_safe_aux_devs_remove() now also waits for an operation in progress with the same mlx5_esw_lock_wait() before initiating one, dropping mode_lock and then removing representors. The deadlocks are avoided. Finishing an operation in progress now requires mlx5_esw_unlock() to wake up any waiters instead of plain up_write(&mode_lock). As a side effect, the timeout in mlx5_eswitch_safe_aux_devs_remove() is gone, which fixes another scary corner case, of representor devs not being removed on timeout but leaked instead. The timeout hid the SD deadlock fixed in the previous patch. Now that that's gone, no reason for the timeout to stay. This was found by internal testing and reproduced on HW. It was independently found by Sashiko during analysis of another patch in this series.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "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"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "a73906f469f85a1147d5b5d31ca57e2d8443327f",
              "status": "affected",
              "version": "2ae8c7edea87f54609bda30963a099cd3c64b0bb",
              "versionType": "git"
            },
            {
              "lessThan": "5eaf9931c8af41b1f0de6dc0589efa698784157c",
              "status": "affected",
              "version": "2ae8c7edea87f54609bda30963a099cd3c64b0bb",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "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"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.19"
            },
            {
              "lessThan": "6.19",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.7",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc3",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: Fix E-Switch races in uplink unbind\n\nUnbinding the uplink Ethernet auxiliary driver in switchdev mode with\noffloaded IPsec policies deadlocks on the esw-\u003emode_lock semaphore:\nmlx5_eswitch_safe_aux_devs_remove()\n  mlx5_esw_hold()\n    down_read_trylock(\u0026esw-\u003emode_lock)                 (*)\n  mlx5_core_reps_aux_devs_remove()\n    ...\n    mlx5e_vport_uplink_rep_unload()\n      unregister_netdev()\n        xfrm_dev_unregister()\n          xfrm_dev_policy_flush()\n            xfrm_policy_kill()\n              xfrm_dev_policy_delete()\n                mlx5e_xfrm_del_policy()\n                  mlx5e_accel_ipsec_fs_del_pol()\n                    rx_ft_put_policy()\n                      rx_put()\n                        mlx5_eswitch_unblock_mode()\n                          down_write(\u0026esw-\u003emode_lock)  (BOOM)\n\nAnother deadlock with IPsec states:\nmlx5_eswitch_safe_aux_devs_remove()\n  mlx5_esw_hold()\n    down_read_trylock(\u0026esw-\u003emode_lock)                (*)\n  mlx5_core_reps_aux_devs_remove()\n    ...\n    mlx5e_vport_uplink_rep_unload()\n      unregister_netdev()\n        xfrm_dev_unregister()\n          xfrm_dev_state_flush()\n            xfrm_dev_state_free()\n              mlx5e_xfrm_free_state()\n                mlx5e_accel_ipsec_fs_del_rule()\n                  rx_ft_put()\n                    rx_put()\n                      rx_destroy()\n                        mlx5_eswitch_unblock_encap()\n                          down_write(\u0026esw-\u003emode_lock)  (BOOM)\n\nTo fix these, first refactor initiators of eswitch operations so they no\nlonger step on each other\u0027s toes.\n\nThe active/inactive toggle and setting the inline/encap mode now use the\nnew mlx5_esw_lock_wait(), which waits for an operation in progress to\nfinish. They all hold devl_lock, so the only operation they can find in\nprogress is an uplink unbind, which doesn\u0027t need devl_lock.\nSetting the esw mode keeps using mlx5_esw_try_lock(), which also rejects\nthe change while eswitch users exist and bails out with -EBUSY.\n\nmlx5_eswitch_safe_aux_devs_remove() now also waits for an operation in\nprogress with the same mlx5_esw_lock_wait() before initiating one,\ndropping mode_lock and then removing representors.\nThe deadlocks are avoided.\n\nFinishing an operation in progress now requires mlx5_esw_unlock() to\nwake up any waiters instead of plain up_write(\u0026mode_lock).\n\nAs a side effect, the timeout in mlx5_eswitch_safe_aux_devs_remove() is\ngone, which fixes another scary corner case, of representor devs not\nbeing removed on timeout but leaked instead. The timeout hid the SD\ndeadlock fixed in the previous patch. Now that that\u0027s gone, no reason\nfor the timeout to stay.\n\nThis was found by internal testing and reproduced on HW.\nIt was independently found by Sashiko during analysis of another patch\nin this series."
    }
  ],
  "id": "CVE-2026-143209",
  "lastModified": "2026-12-03T10:17:58.717",
  "metrics": {},
  "published": "2026-12-03T10:17:58.717",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/5eaf9931c8af41b1f0de6dc0589efa698784157c"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/a73906f469f85a1147d5b5d31ca57e2d8443327f"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.