2025-12-09 01:30:05
Linux
PUBLISHED
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. Its 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: