ACK/Cmt: [SRU][F/J][PATCH 0/1] CVE-2024-26595
Magali Lemes
magali.lemes at canonical.com
Mon Nov 18 15:39:26 UTC 2024
On 14/11/2024 02:53, Jian Hui Lee wrote:
> [Impact]
>
> mlxsw: spectrum_acl_tcam: Fix NULL Pointer dereference in error path
>
> When calling mlxsw_sp_acl_tcam_region_destroy() from an error path after
> failing to attach the region to an ACL group, we hit a NULL pointer
> dereference.
>
> Fix by retrieving the 'tcam' pointer using mlxsw_sp_acl_to_tcam().
>
> [Fix]
>
> noble: not affected
> jammy: backported from linux-stable
> focal: backported from linux-stable
> bionic: backported from linux-stable. sent to esm
> xenial: not affected
>
> [Test Case]
>
> Compile and boot tested.
>
> [Where problems could occur]
>
> The fix affects mellanox ethernet switch driver. An issue with this fix
> may lead to kernel crashes or system instability after destroying tcam
> region.
>
> Ido Schimmel (1):
> mlxsw: spectrum_acl_tcam: Fix NULL pointer dereference in error path
>
In both F and J patches, `linux-stable` was added as part of the
`backported from` line. Since the commit comes from mainline, I think
that part can be omitted. I'm not sure this warrants a v2, so for now
Acked-by: Magali Lemes <magali.lemes at canonical.com>
> drivers/net/ethernet/mellanox/mlxsw/spectrum.h | 1 +
> drivers/net/ethernet/mellanox/mlxsw/spectrum_acl.c | 5 +++++
> drivers/net/ethernet/mellanox/mlxsw/spectrum_acl_tcam.c | 4 ++--
> 3 files changed, 8 insertions(+), 2 deletions(-)
>
More information about the kernel-team
mailing list