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 BF14A2F12C3 for ; Tue, 9 Dec 2025 01:32:48 +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=1765243968; cv=none; b=Y7cEx83ub9SmeNSaxOp8CtgRrnD2G8MhE2Pp4waZrPnBANN23Gw3nnIh+ar7UgF/vx1lgNvG/U6aJ774Fq4OO6gPG9bNyDOB7Ulz/mJIy8GhX1Sz3vxVa+Y1fWe/jFKsCQ3d5vNbCfdV8vcgQqd6YyfH6d7nVDtxyDQGvLzaLMQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765243968; c=relaxed/simple; bh=nhp7hvmEnWjT9Cu7514mmd46mN02mDSQNAYGNTr7yyU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=qLvPi9O6hTh1Eh0w1BzQGnRUSDlkHYSjdvywQoZXbAC7Bl/3SUkydqUXaP9C6wC5OVcPpSh2WJArAPndyVIyhP7KSWpZNRue2AvySfEJ5R/GmO6AzhgkwcnyDkIUANwFstyz5gfqpKN9ef4fO3QBYbGGZVen517PxLZKiA4b1+w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=LH5e2h7W; 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="LH5e2h7W" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5A46AC4CEF1; Tue, 9 Dec 2025 01:32:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765243968; bh=nhp7hvmEnWjT9Cu7514mmd46mN02mDSQNAYGNTr7yyU=; h=From:To:Cc:Subject:Date:Reply-To:From; b=LH5e2h7W4WwQ5FSaa3xlBjFqgQMSn4teyF/HWCwKOcyhDsugZm+f5foL0ogMQ4Ojz 4clM3w9yeCrjmY97fHlsK2NoN8xPOQI5sTYyowU/yLV9agLaMcRjkkY38stdVGty0Y 9150edyVv7q/oZf8NqVgGa+Ed9nT80gb2kq895hI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53843: net: openvswitch: reject negative ifindex Date: Tue, 9 Dec 2025 10:31:27 +0900 Message-ID: <2025120958-CVE-2023-53843-195d@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3417; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wjZQhPHhV2tCEfwV/RwW2oBvK6DkFYaDRVF7h5jatwI=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnm1Ze8vd43C6S+Cu+u27HOrOAW29okIXa9NRvqePYpv +9OuFjaEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABP58pZhfvHDwHItrsTa9wuu it/dmccu77gulmEOV9eciVmr1e2Tj+3ed+Nx0I3VH3OdAQ== 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: net: openvswitch: reject negative ifindex Recent changes in net-next (commit 759ab1edb56c ("net: store netdevs in an xarray")) refactored the handling of pre-assigned ifindexes and let syzbot surface a latent problem in ovs. ovs does not validate ifindex, making it possible to create netdev ports with negative ifindex values. It's easy to repro with YNL: $ ./cli.py --spec netlink/specs/ovs_datapath.yaml \ --do new \ --json '{"upcall-pid": 1, "name":"my-dp"}' $ ./cli.py --spec netlink/specs/ovs_vport.yaml \ --do new \ --json '{"upcall-pid": "00000001", "name": "some-port0", "dp-ifindex":3,"ifindex":4294901760,"type":2}' $ ip link show -65536: some-port0: mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000 link/ether 7a:48:21:ad:0b:fb brd ff:ff:ff:ff:ff:ff ... Validate the inputs. Now the second command correctly returns: $ ./cli.py --spec netlink/specs/ovs_vport.yaml \ --do new \ --json '{"upcall-pid": "00000001", "name": "some-port0", "dp-ifindex":3,"ifindex":4294901760,"type":2}' lib.ynl.NlError: Netlink error: Numerical result out of range nl_len = 108 (92) nl_flags = 0x300 nl_type = 2 error: -34 extack: {'msg': 'integer out of range', 'unknown': [[type:4 len:36] b'\x0c\x00\x02\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0c\x00\x03\x00\xff\xff\xff\x7f\x00\x00\x00\x00\x08\x00\x01\x00\x08\x00\x00\x00'], 'bad-attr': '.ifindex'} Accept 0 since it used to be silently ignored. The Linux kernel CVE team has assigned CVE-2023-53843 to this issue. Affected and fixed versions =========================== Issue introduced in 6.1 with commit 54c4ef34c4b6f9720fded620e2893894f9f2c554 and fixed in 6.1.47 with commit c965a58376146dcfdda186819462e8eb3aadef3a Issue introduced in 6.1 with commit 54c4ef34c4b6f9720fded620e2893894f9f2c554 and fixed in 6.4.12 with commit 881faff9e548a7ddfb11595be7c1c649217d27db Issue introduced in 6.1 with commit 54c4ef34c4b6f9720fded620e2893894f9f2c554 and fixed in 6.5 with commit a552bfa16bab4ce901ee721346a28c4e483f4066 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-53843 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: net/openvswitch/datapath.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/c965a58376146dcfdda186819462e8eb3aadef3a https://git.kernel.org/stable/c/881faff9e548a7ddfb11595be7c1c649217d27db https://git.kernel.org/stable/c/a552bfa16bab4ce901ee721346a28c4e483f4066