Description
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
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
0d65fc13042fce6a2d6de58ff0dc9531e8523c07 to < 3fbeaa8ecd144ad593f9fa1ab4b40a780ad3700baffected0d65fc13042fce6a2d6de58ff0dc9531e8523c07 to < 99ff5b0083eae6f774360c4ea6874604e6c9b553affected0d65fc13042fce6a2d6de58ff0dc9531e8523c07 to < 9bf2d6eea26a226f8ebab7baea6f2b018f914560affected0d65fc13042fce6a2d6de58ff0dc9531e8523c07 to < 8b3350eacd9df0597bfe36a594df7b9def0b3edfaffected0d65fc13042fce6a2d6de58ff0dc9531e8523c07 to < 1cf8a1af42b1f12a30b7abd34fe4fc23b3170e7eaffected0d65fc13042fce6a2d6de58ff0dc9531e8523c07 to < 2d8b3c3e129973a51ae924bdcf6993a76b828814affected0d65fc13042fce6a2d6de58ff0dc9531e8523c07 to < cab468c3c03f4bcd7530ce2783a4140da14efb7baffected0d65fc13042fce6a2d6de58ff0dc9531e8523c07 to < 41c8c1d65b32beacd8d916a22457b4f6e47f45afaffected
Linux Linux
Default version status: affected
4.5affected0 to < 4.5unaffected5.10.266 to ≤ 5.10.*unaffected5.15.217 to ≤ 5.15.*unaffected6.1.184 to ≤ 6.1.*unaffected6.6.145 to ≤ 6.6.*unaffected6.12.97 to ≤ 6.12.*unaffected6.18.40 to ≤ 6.18.*unaffected7.1.5 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/3fbeaa8ecd144ad593f9fa1ab4b40a780ad3700b ↗
- https://git.kernel.org/stable/c/99ff5b0083eae6f774360c4ea6874604e6c9b553 ↗
- https://git.kernel.org/stable/c/9bf2d6eea26a226f8ebab7baea6f2b018f914560 ↗
- https://git.kernel.org/stable/c/8b3350eacd9df0597bfe36a594df7b9def0b3edf ↗
- https://git.kernel.org/stable/c/1cf8a1af42b1f12a30b7abd34fe4fc23b3170e7e ↗
- https://git.kernel.org/stable/c/2d8b3c3e129973a51ae924bdcf6993a76b828814 ↗
- https://git.kernel.org/stable/c/cab468c3c03f4bcd7530ce2783a4140da14efb7b ↗
- https://git.kernel.org/stable/c/41c8c1d65b32beacd8d916a22457b4f6e47f45af ↗