CVE-2024-42073 is a medium severity vulnerability in the Linux kernel's mlxsw driver for Spectrum-4 systems. It involves memory corruption caused by incorrect handling of port numbers in shared buffer operations. The driver incorrectly uses absolute port numbers instead of relative ones, leading to use-after-free errors detected by Kernel Address Sanitizer (KASAN). This flaw affects the devlink shared buffer occupancy snapshot and clearmax operations. No confidentiality or integrity impact is reported, but availability can be affected due to memory corruption.