Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id EA5A32E7BC0 for ; Wed, 1 Oct 2025 11:57:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319861; cv=none; b=jkToTiLP8PKow9t0ocVtGIgTt1KqMPGMOcsNTcQL6Mhcb7qyFygSArkrrPnDMLUXYwglIXbDiA/hU0tBwQZWXvLLU2j/x3IGn0zhZDPeEqY6jA1y3ykDp0vjYfxke7R96E7T0ry94uRpWgHyeOkaxD3IMnQVx0EgitjV/XqL0Cs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319861; c=relaxed/simple; bh=wAnDKBEHYvP7/+nyQWvyYgYkkZ0DztHvi8hDKo7lpko=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LjudNgsf9IQK4KGVoP1D424DFDwzubbvpTxGaGFtcFwcSX2zoPPL+mrmTQx54YBxwfQ3peF4ju9MLSndIwNG1SwwqM0DLasKhR3aq18xPg316sCUvYd06qex+3GZ64OnKMtfoME3MrGLaqIXgNdfO09/mFhdFmwyoFXhspZoypc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PhDzXsUx; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="PhDzXsUx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70382C4CEF4; Wed, 1 Oct 2025 11:57:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319860; bh=wAnDKBEHYvP7/+nyQWvyYgYkkZ0DztHvi8hDKo7lpko=; h=From:To:Cc:Subject:Date:Reply-to:From; b=PhDzXsUxqujyVCPqnmvub9Bqnv0gJBav84aarM1AXoszitMaq9qipNXjzNDGdQwp/ dp+W/vJ6AGufloLoO7fhQ4FbV/Q1F/jX0TyFKuv6GQ4spufOiGAlnIm4GcERTEQw88 c0SC80t/3hvs94RHYW/TbtunukMif3eTtf+rXci4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53516: macvlan: add forgotten nla_policy for IFLA_MACVLAN_BC_CUTOFF Date: Wed, 1 Oct 2025 13:46:08 +0200 Message-ID: <2025100131-CVE-2023-53516-ca63@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2355; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=WfgyThQP+bbljA1tJn2zI6ETWKhEEq7qKuwaMUUUkjM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3RWIcipvc5HlYtA/ecOFbspIpRWaqXVSVweXEOy3bP +n97PzYEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABM5cohhwdTp65lPT/47Tyjb 5GvJnyqVDwVl/AyzmE9lfLkRZK0e93Z2S+GmZLmJEf/3AAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: macvlan: add forgotten nla_policy for IFLA_MACVLAN_BC_CUTOFF The previous commit 954d1fa1ac93 ("macvlan: Add netlink attribute for broadcast cutoff") added one additional attribute named IFLA_MACVLAN_BC_CUTOFF to allow broadcast cutfoff. However, it forgot to describe the nla_policy at macvlan_policy (drivers/net/macvlan.c). Hence, this suppose NLA_S32 (4 bytes) integer can be faked as empty (0 bytes) by a malicious user, which could leads to OOB in heap just like CVE-2023-3773. To fix it, this commit just completes the nla_policy description for IFLA_MACVLAN_BC_CUTOFF. This enforces the length check and avoids the potential OOB read. The Linux kernel CVE team has assigned CVE-2023-53516 to this issue. Affected and fixed versions =========================== Issue introduced in 6.4 with commit 954d1fa1ac93aa8a66f7d9a9ba545cf7f020d348 and fixed in 6.4.8 with commit 79f44709aa7a744fbfbadd4aef678443290c6991 Issue introduced in 6.4 with commit 954d1fa1ac93aa8a66f7d9a9ba545cf7f020d348 and fixed in 6.5 with commit 55cef78c244d0d076f5a75a35530ca63c92f4426 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2023-53516 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/net/macvlan.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/79f44709aa7a744fbfbadd4aef678443290c6991 https://git.kernel.org/stable/c/55cef78c244d0d076f5a75a35530ca63c92f4426