Nixpkgs security tracker

Login with GitHub
⚠️ You are using a production deployment that is still only suitable for demo purposes. Any work done in this might be wiped later without notice.

Suggestion detail

Dismissed
(max. allowed matches exceeded)
created 3 weeks, 4 days ago Activity log
  • Created & dismissed (max. allowed matches exceeded) suggestion
mlxsw: fix refcount leak in mlxsw_sp_port_lag_join()

In the Linux kernel, the following vulnerability has been resolved: mlxsw: fix refcount leak in mlxsw_sp_port_lag_join() When mlxsw_sp_port_lag_index_get() fails, mlxsw_sp_port_lag_join() returns an error without releasing the lag reference obtained by the earlier mlxsw_sp_lag_get(). All other error paths in the function jump to the cleanup label that ends with mlxsw_sp_lag_put(), so this is a single missed release. Fix the leak by replacing the bare 'return err' with a goto to the existing error cleanup label, which will drop the reference safely.

Affected products

Linux
  • <cab468c3c03f4bcd7530ce2783a4140da14efb7b
  • <1cf8a1af42b1f12a30b7abd34fe4fc23b3170e7e
  • =<6.6.*
  • =<*
  • <8b3350eacd9df0597bfe36a594df7b9def0b3edf
  • <2d8b3c3e129973a51ae924bdcf6993a76b828814
  • <4.5
  • =<6.18.*
  • =<6.12.*
  • =<7.1.*
  • <41c8c1d65b32beacd8d916a22457b4f6e47f45af
  • ==4.5