A buffer overflow issue was addressed with improved memory handling. This issue is fixed in macOS Ventura 13.2. Mounting a maliciously crafted Samba network share may lead to arbitrary code execution.
https://www.talosintelligence.com/vulnerability_reports/TALOS-2022-1659