# CVE-2023-1668: Other in openvswitch

> Open vSwitch incorrectly handles IP packets with protocol 0, causing potential misrouting of other IP packets due to wildcarded flow matching.

- **Severity:** High 8.2 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 10 Apr 2023
- **Updated:** 23 Apr 2025
- **Also known as:** AZL-26031, AZL-35088, DEBIAN-CVE-2023-1668, DLA-3410-1, DSA-5387-1, GHSA-w6wj-g5cv-fh4w, OESA-2023-1234, RHSA-2023:1765, RHSA-2023:1766, RHSA-2023:1769, RHSA-2023:1770, RHSA-2023:1823, RHSA-2023:1824, SUSE-SU-2023:2296-1, SUSE-SU-2023:2536-1, SUSE-SU-2023:2621-1, UBUNTU-CVE-2023-1668, USN-6068-1, openSUSE-SU-2024:12942-1

## What is CVE-2023-1668?

CVE-2023-1668 is a high-severity vulnerability in Debian Debian Linux, published on 10 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

A flaw was found in openvswitch (OVS). When processing an IP packet with protocol 0, OVS will install the datapath flow without the action modifying the IP header. This issue results (for both kernel and userspace datapath) in installing a datapath flow matching all IP protocols (nw_proto is wildcarded) for this flow, but with an incorrect action, possibly causing incorrect handling of other IP packets with a != 0 IP protocol that matches this dp flow.

Weakness: CWE-670 (Always-Incorrect Control Flow Implementation)

## Which versions are affected by CVE-2023-1668?

It affects 6 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `network-scripts-openvswitch2.13` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.13.0-214.el8fdp |
| `network-scripts-openvswitch2.15` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.15.0-136.el8fdp |
| `network-scripts-openvswitch2.17` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.17.0-88.el8fdp |
| `network-scripts-openvswitch3.1` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:3.1.0-17.el8fdp |
| `openvswitch2.13` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.13.0-214.el8fdp |
| `openvswitch2.13-debuginfo` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.13.0-214.el8fdp |
| `openvswitch2.13-debugsource` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.13.0-214.el8fdp |
| `openvswitch2.13-devel` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.13.0-214.el8fdp |
| `openvswitch2.13-ipsec` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.13.0-214.el8fdp |
| `openvswitch2.13-test` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.13.0-214.el8fdp |
| `openvswitch2.15` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.15.0-136.el8fdp |
| `openvswitch2.15-debuginfo` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.15.0-136.el8fdp |
| `openvswitch2.15-debugsource` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.15.0-136.el8fdp |
| `openvswitch2.15-devel` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.15.0-136.el8fdp |
| `openvswitch2.15-ipsec` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.15.0-136.el8fdp |
| `openvswitch2.15-test` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.15.0-136.el8fdp |
| `openvswitch2.17` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.17.0-88.el8fdp |
| `openvswitch2.17-debuginfo` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.17.0-88.el8fdp |
| `openvswitch2.17-debugsource` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.17.0-88.el8fdp |
| `openvswitch2.17-devel` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.17.0-88.el8fdp |
| `openvswitch2.17-ipsec` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.17.0-88.el8fdp |
| `openvswitch2.17-test` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.17.0-88.el8fdp |
| `openvswitch3.1` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:3.1.0-17.el8fdp |
| `openvswitch3.1-debuginfo` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:3.1.0-17.el8fdp |
| `openvswitch3.1-debugsource` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:3.1.0-17.el8fdp |
| `openvswitch3.1-devel` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:3.1.0-17.el8fdp |
| `openvswitch3.1-ipsec` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:3.1.0-17.el8fdp |
| `openvswitch3.1-test` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:3.1.0-17.el8fdp |
| `python3-openvswitch2.13` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.13.0-214.el8fdp |
| `python3-openvswitch2.13-debuginfo` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.13.0-214.el8fdp |
| `python3-openvswitch2.15` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.15.0-136.el8fdp |
| `python3-openvswitch2.15-debuginfo` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.15.0-136.el8fdp |
| `python3-openvswitch2.17` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.17.0-88.el8fdp |
| `python3-openvswitch2.17-debuginfo` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:2.17.0-88.el8fdp |
| `python3-openvswitch3.1` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:3.1.0-17.el8fdp |
| `python3-openvswitch3.1-debuginfo` | Red Hat:enterprise_linux:8::fastdatapath | All versions | 0:3.1.0-17.el8fdp |
| `openvswitch2.17` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:2.17.0-77.el9fdp |
| `openvswitch2.17-debuginfo` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:2.17.0-77.el9fdp |
| `openvswitch2.17-debugsource` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:2.17.0-77.el9fdp |
| `openvswitch2.17-devel` | Red Hat:enterprise_linux:9::fastdatapath | All versions | 0:2.17.0-77.el9fdp |

Products: Cloudbase Open Vswitch, Debian Debian Linux, Redhat Fast Datapath, Redhat Openshift Container Platform, Redhat Openstack Platform, Redhat Virtualization.

## How do I fix CVE-2023-1668?

Apply the vendor's patch.

## Is CVE-2023-1668 being exploited?

There is no known exploitation of CVE-2023-1668 in the wild and no public exploit code.

## Other vulnerabilities in Debian Debian Linux

- [CVE-2022-32166](https://insights.sbomify.com/CVE-2022-32166/): ovs - buffer over-read (medium 6.1)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-1668 and fix it if it is affected.

What it is: CVE-2023-1668 is a high-severity vulnerability in Debian Debian Linux, published on 10 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2023-1668 in the wild and no public exploit code.

Affected product: Debian Debian Linux. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-1668/ (Markdown: https://insights.sbomify.com/CVE-2023-1668/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-1668
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-1668
- OSV: https://osv.dev/vulnerability/CVE-2023-1668

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-1668/
Summaries are generated and may contain mistakes; the official description above is the record.
